Quantcast
Channel: Adobe Community : Popular Discussions - CQ5 (read only)
Viewing all 12476 articles
Browse latest View live

How can you re-size an image on the fly in CQ?

$
0
0

How can you re-size an image on the fly in CQ?  I have a few components that are using the image associated with a page, but all the components require a different size but same aspect ratio of the same image.  I don't want to have the DAM create the sizes on upload.


No cache invalidation when statsfilelevel > 0 and JCR Resource Resolver URL Mapping being used

$
0
0

IF  :

  • JCR Resource Resolver [1] is used to allow requests missing the initial /content

       AND

  • Dispatcher has a /statsfilelevel greater than 0

 

THEN

 

     It is impossible for dispatcher to invalidate the cache.

 

 

EXAMPLE:

 

  1. Content in CRX has /content/mysite/mylanguage/mypage
  2. Request comes in to dispatcher for /mylanguage/mypage.html
  3. CQ serves /mylanguage/mypage.html successfully
  4. Dispatcher saves the cache at /mylanguage/mypage.html
  5. Author server sends activation request for /content/mysite/mylanguage/mypage
  6. Dispatcher recieves the activation request and touches stat file at :
    1. /content
    2. /content/mysite
    3. /content/mysite/mylanguage
  7. Request comes in to dispatcher for /mylanguage/mypage.html
  8. The stat file at /mylanguage has never been touched, and statsfilelevel > 0, so /mylanguage/mypage.html is considered valid
  9. Dispatcher returns the cached file at /mylanguage/mypage.html

 

I have seen this suggestion from DAYCARE [2], but it says to rewrite the URL so that the cache is still stored in full context. We can't do this for multiple technical reasons, and so I'm wondering if, instead, there is a way to make the {path} variable in the extended replication agent options [3] intelligent enough to strip activation path URI based on URL Mappings, the same way the Link Rewriter rewrites links based on these exact settings. We really need the activation path to change rather than the request path in the web server.

 

 

[1]: Go to http://localhost:4502/system/console/configMgr and click Apache Sling JCR Resource Resolver. Then add a URL Mapping such as /content/mysite/-/

 

[2]: http://dev.day.com/content/kb/home/cq5/CQ5SystemAdministration/HowToFlushMappedContent.htm l

 

[3]: Go to http://localhost:4502/etc/replication/agents.author/flush.html , click edit, and go to Extended tab

How to add a document to the JCR Repository via Java API

$
0
0

I'm trying to get started with the JCR 2.0 " Content Repository Java Technology API Specification" It's really a great document but I miss a minimum of examples to visualize how it is all fits together.

For a start I want to add a pdf-document to my local CRX repository. Form the book I see, that I must add a Node and add the Properties.

 

File file = new File("/mypath/mydocument.pdf");
FileInputStream is = new FileInputStream(file);
ValueFactory valueFactory = session.getValueFactory();
Binary myBinary = valFact.createBinary(is);
Value valueFactory =valFact.createValue(myBinary);
Node nodeCarl=content.addNode("Carl", "nt:file");
Property pCarl=nodeCarl.setProperty("jcr:data", myBinary);

The program fails with:

javax.jcr.nodetype.ConstraintViolationException: no matching property definition found for {http://www.jcp.org/jcr/1.0}data in the lastt cited line.

I don't know, why this comes up with ..jcr/1.0; The Classpath consists of JCR-2.0.jar and jackrabbit-standalone-2.2.13.jar.

 

Any hint to get this stored is appreciated.

Ulrich

Send Email - ${payload.email}

$
0
0

Hi all,

In my workflow i am using "Send Email " step to send emails using custom
templates.

I done following steps in my execution

1 .  Added properties to email , userId, password and fullname with values
to "/content/geometrixx/en/jcr:content"

https://lh6.googleusercontent.com/-kXybosRoO_0/UJpL22Xw-QI/AAAAAAAAAVg/aH8QcNEo32E/s1600/Payload.png

2 .  Created "test workflow"  with "Send Email " workflow step and selected
the template "/etc/workflow/geometrixx/email/welcome.txt"
3.    Started "test workflow" for /content/geometrixx/en .

EMail is not working

error.log

07.11.2012 17:14:42.533 *INFO* [127.0.0.1 [1352288682531] POST
/bin/workflow/inbox HTTP/1.1] com.day.cq.workflow.impl.CQWorkflowSession
Attempting to complete work item with ID:
/etc/workflow/instances/2012-11-07/model_7535626098811/workItems/node1_etc_ workflow_instances_2012-11-07_model_7535626098811
07.11.2012 17:14:42.607 *INFO* [JobHandler:
/etc/workflow/instances/2012-11-07/model_7535626098811:/content/geometrixx/ en]
com.day.cq.workflow.impl.job.JobHandler Start processing:
/etc/workflow/instances/2012-11-07/model_7535626098811:/content/geometrixx/ en
07.11.2012 17:14:42.608 *WARN* [JobHandler:
/etc/workflow/instances/2012-11-07/model_7535626098811:/content/geometrixx/ en]
com.day.cq.collab.commons.SendEmailProcess cannot send email:
org.apache.commons.mail.EmailException: Missing final '@domain'
at org.apache.commons.mail.Email.createInternetAddress(Email.java:605)
at org.apache.commons.mail.Email.addTo(Email.java:727)
at org.apache.commons.mail.Email.addTo(Email.java:710)
at
com.day.cq.collab.commons.SendEmailProcess.createEmail(SendEmailProcess.jav a:190)
at
com.day.cq.collab.commons.SendEmailProcess.execute(SendEmailProcess.java:11 6)
at
com.day.cq.workflow.impl.job.HandlerBase.executeProcess(HandlerBase.java:18 4)
at com.day.cq.workflow.impl.job.JobHandler.process(JobHandler.java:112)
at org.apache.sling.event.jobs.JobUtil$1.run(JobUtil.java:272)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.mail.internet.AddressException: Missing final '@domain' in
string ``${payload.email}''
at
javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java:915)
at javax.mail.internet.InternetAddress.validate(InternetAddress.java:856)
at org.apache.commons.mail.Email.createInternetAddress(Email.java:601)
... 10 more

Configuring DAM and Dispatcher - shorten URL

$
0
0

Hello all,

 

I'm trying to configure CQ DAM with Apache 2.2 and Dispatcher, to serve only assets.

 

I've successfully configured them, as when I upload a new asset, it automatically replicates in Publish instance and perfom the cache. Thus I can access the new image via:

 

Author: localhost:4502/content/dam/NEWFOLDER/image.jpg

Publish: localhost:4503/content/dam/NEWFOLDER/image.jpg

Dispatcher: localhost/content/dam/NEWFOLDER/image.jpg

 

However I would like to use a shorten URL to this image, for example:

localhost/NEWFOLDER/image.jpg

 

In other words, remove the /content/dam piece from the request URL.

 

I've checked the following threads:

http://www.wemblog.com/2012/07/how-to-use-dispatcher-with-mapped.html

http://helpx.adobe.com/cq/kb/HowToFlushMappedContent.html

 

But as far as I understand I don't need to configure the /etc/map in the Publish instance, as I'm only using DAM and configuring mod_rewrite at Apache server would be enough.

 

So, in the httpd.conf I wrote the following rule:

RewriteEngine On

RewriteRule ^/(.*)$ /content/dam/$1 [PT]

 

And Dispatcher.any is the default one.

 

The point is, when I disable the Dispatcher, I'm able to type the shorten URL and get the image. But this is not happening otherwise, when the Dispatcher is on I get the Not Found error: /image.jpg as it's looking for the image at root directory.

 

So, any clues on how I can achieve this?

 

Thanks in advance!

osgi workflowprocess gives classnotfound exception when osgi bundle is activated

$
0
0

I did create an osgi service that extends workflowprocess interrface using eclipse. I install the bundle that contains this service and then deploy and activate the bundle in day cq. However, on activation I receive an error stating that my class is not found. Please note that both this service and the referenced service(twitterservice that I created) gets registered and the bundle is activated, however, its unable to find the class SendMessageProcessAction on the activation of the bundle. Hope someone could assist.

 

-------------------------------------------------------------------

POST /system/console/bundles/246 HTTP/1.1] com.day.twitter.workflow [com.day.twitter.service.impl.SendMessageProcessAction] Error during instantiation of the implementation object (java.lang.ClassNotFoundException: com.day.twitter.service.impl.SendMessageProcessAction not found by com.day.twitter.workflow [246]) java.lang.ClassNotFoundException: com.day.twitter.service.impl.SendMessageProcessAction not found by com.day.twitter.workflow [246]

    at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:787 )

    at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71)

 

-------------------------------------------------------------------

package com.day.twitter.service.impl;

 

 

import javax.jcr.RepositoryException;

import javax.jcr.Session;

 

import org.apache.felix.scr.annotations.Component;

import org.apache.felix.scr.annotations.Properties;

import org.apache.felix.scr.annotations.Property;

import org.apache.felix.scr.annotations.Reference;

import org.apache.felix.scr.annotations.Service;

import org.osgi.framework.Constants;

import org.slf4j.Logger;

import org.slf4j.LoggerFactory;

 

import com.day.cq.workflow.WorkflowException;

import com.day.cq.workflow.WorkflowSession;

import com.day.cq.workflow.exec.WorkItem;

import com.day.cq.workflow.exec.WorkflowData;

import com.day.cq.workflow.exec.WorkflowProcess;

import com.day.cq.workflow.metadata.MetaDataMap;

import com.day.twitter.service.SendMessageProcess;

import com.day.twitter.service.TwitterService;

 

 

 

@Component

@Service

@Properties({

    @Property(name = Constants.SERVICE_DESCRIPTION, value = " An example of Social Publish Implementation"),

    @Property(name = Constants.SERVICE_VENDOR, value = "RIM POC"),

    @Property(name = "process.label", value = "RIM POC Social Publish")

})

public class SendMessageProcessAction implements WorkflowProcess{

 

   

   

    @Reference

    private TwitterService twitterService; 

  

   

    public TwitterService getTwitterService() {

        return twitterService;

    }

 

 

    public void setTwitterService(TwitterService twitterService) {

        this.twitterService = twitterService;

    }

 

    /**

     * @scr.reference

     */

    private static final String TYPE_JCR_PATH = "JCR_PATH";

   

   

    private final Logger logger = LoggerFactory.getLogger(this.getClass()

            .getName());

       

    private final Logger logger1 = LoggerFactory.getLogger(SendMessageProcessAction.class);

   

    public void execute(WorkItem workItem, WorkflowSession workflowSession,MetaDataMap args)

    throws WorkflowException {

        final Session session = workflowSession.getSession();

        final WorkflowData data = workItem.getWorkflowData();

          

        logger.info("TEST VIBHOR!!");

        logger1.info("TEST VIBHOR BHATIA!!");

       

        String path = null;

        String type = data.getPayloadType();

        if (type.equals(TYPE_JCR_PATH) && data.getPayload() != null) {

            String payloadData = (String) data.getPayload();

            try {

                if (session.itemExists(payloadData)) {

                    path = payloadData;

                }

            } catch (RepositoryException e) {

                // TODO Auto-generated catch block

                logger.error("Exception - Check repository for Payload data path");

                e.printStackTrace();

            }

        }

       

        logger.info("arguments");

       

        String msg = "CQ5 workflow event";

            // is there a message?

        String argument = args.get("PROCESS_ARGS", "default value");

        boolean equal = argument.equals("argument1");

            

        if(equal){

            String recipient = argument.toString();

             sendDirectMessageOnTwitter(recipient, msg, path);

        } else {

            logger

                    .error("for sending a DM on Twitter (make sure Twitter allows you to DM that account): dm,(recipient id)");   

           //  return "Check config - error";

        }

      

        }

  

     

   

    private void sendDirectMessageOnTwitter(String recipient, String msg, String path) {

        getTwitterService().sendDirectMessage(recipient, msg + ", path: " + path);

    }

  

}

Correct Syntax for Reteriving Current Template

$
0
0

I've been reading over the documentation and I'm have a difficult time getting the template being used on the current page.  In my component, all I want to do is use an IF statement to see if template MyTemplate is being used and apply some  HTML - if not, apply different HTML.

 

<%@include file="/libs/foundation/global.jsp"%><%@page session="false"            import="com.day.cq.wcm.api.WCMMode"
%>

if (currentPage.getTemplate().equals(MyTemplate) {
    %>temp = my template<%
} else {    %>temp not equal to my template<%       }

 

Can someone correct my syntax?

CQ 5.4 - How to create a column layout?

$
0
0

Greetings everyone;

 

 

  I'm trying to create a website with some components that I get from a imported site... So far, so good, but when I try to drop a "column" component in my website from the components little window (even when I select the 2 columns or the 3 columns), the is no one column layout and the "columns" doesn't exist

 

  In Geometrixx samples, the columns got layouts like "2 columns, 50 x 50 x" and others, but none is listed on my Column Layout dialog (editing the component). I try to find the source-code of the component, but without success. Can someone tell me how to get real "columns" structures on my site?

 

  Some images:

 

 

    No Columns 1.jpg

 

     No columns 2.jpg


CQ5.6 and pptx parsing with Tika

$
0
0

Hi Folks,

 

Simple issue really; any powerpoint documents (ppt and pptx) that I attempt to parse with tika (version 1.3.0.r1436209 according to Felix) within CQ5.6 gives the following:

 

Caused by: java.lang.NoClassDefFoundError: org/openxmlformats/schemas/drawingml/x2006/main/CTBlipFillProperties

          at org.apache.tika.parser.microsoft.ooxml.XSLFPowerPointExtractorDecorator.extractContent(XS LFPowerPointExtractorDecorator.java:152)

          at org.apache.tika.parser.microsoft.ooxml.XSLFPowerPointExtractorDecorator.buildXHTML(XSLFPo werPointExtractorDecorator.java:79)

          at org.apache.tika.parser.microsoft.ooxml.AbstractOOXMLExtractor.getXHTML(AbstractOOXMLExtra ctor.java:105)

          at org.apache.tika.parser.microsoft.ooxml.OOXMLExtractorFactory.parse(OOXMLExtractorFactory. java:112)

          at org.apache.tika.parser.microsoft.ooxml.OOXMLParser.parse(OOXMLParser.java:82)

          at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:242)

          at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:242)

          at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:242)

          at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:120)

          at org.apache.tika.parser.ParsingReader$ParsingTask.run(ParsingReader.java:221)

 

My code for parsing is pretty straightforward:

 

AutoDetectParser parser = new AutoDetectParser();

Metadata metadata = new Metadata();

metadata.set(Metadata.RESOURCE_NAME_KEY, asset.getName());

// stream comes from the asset's original rendition stream

parser.parse(stream, contentHandler, metadata, new ParseContext());

 

Is there another approach I should take with parsing PPTs?

 

 

Thanks!

CQ 5 Default select text in Selection

$
0
0

Hi,

 

I am noew to CQ5. I need to know how to display the --Select-- default value int he selection xtype of CQ5.

 

Any help will be appreciated.

Disabling the "Target" context menu item in AEM v5.6

$
0
0

Is it possible to disable the "Target" context menu item on components in AEM v5.6?  We don't want (at the moment) authors to have this ability and it seems to be interfering with some of our custom rendering code.  We're in the process of upgrading to 5.6 and we'd like to disable this feature for now until we can identify and resolve the issues we're having with it.

 

Thanks!

some libs can not found

$
0
0

Hello, I'm new  to CQ5 and I'm following the "cq5_guide_developer" to practice my first project. It's very smooth until I want to download "cq5libs" from my local CQ5.5 server.

 

Here are the content of the guide I'm following:

 

Proceed as follows:

  1. In your file system, create a CQ5 libraries folder called cq5libs. This folder can be created anywhere.
  2. Under cq5libs, create the folders: cq, sling and wcm.
  3. From the system command line go to .../cq5libs/cq and execute vlt co http://localhost:4502/crx /libs/cq/install . to export the libraries stored under /libs/cq/install from the CQ5 server.
  4. From the system command line go to .../cq5libs/sling and execute vlt co http://localhost:4502/crx /libs/sling/install . to export the libraries stored under /libs/sling/install from the CQ5 server.
  5. From the system command line go to .../cq5libs/wcm and execute vlt co http://localhost:4502/crx /libs/wcm/install . to export the libraries stored under /libs/wcm/install from the CQ5 server.
  6. In Eclipse, right-click the ui project, select Build Path, then Configure Build Path. In the dialog select the Libraries tab.
  7. Click Add External JARS..., navigate to .../cq5libs/cq/jcr_root, select all the jar files and click Open.
  8. Click Add External JARS..., navigate to .../cq5libs/sling/jcr_root, select all the jar files and click Open.
  9. Click Add External JARS..., navigate to .../cq5libs/wcm/jcr_root, select all the jar files and click Open.
  10. Click Add External JARS..., navigate to <cq-installation-dir>/crx-quickstart/server/lib/container, select all the jar files and click Open.
  11. Click OK.

 

I got a error message when I tried to execute "vlt co http://localhost:4502/crx /libs/cq/install " with username and password, but server reponsed like this:

 

Connecting via JCR remoting to http://localhost:4502/crx/libs/cq

[WARN ] Authentication required to access repository descriptors

[ERROR] checkout: com.day.jcr.vault.vlt.VltException: Unable to mount filesystem

caused by: javax.jcr.ItemNotFoundException: Not Found

  caused by: org.apache.jackrabbit.webdav.DavException: Not Found

 

 

Dose anybody have any idea about it?

How to get the nodes from session through java program?

$
0
0

Hi,

 

     I would like to get the nodes from session objects through java program. I wrote the program like this,

 

package com.mycomp.node;

 

import javax.jcr.Node;

import javax.jcr.NodeIterator;

import javax.jcr.Property;

import javax.jcr.RepositoryException;

import javax.jcr.Session;

import javax.jcr.observation.Event;

import javax.jcr.observation.EventIterator;

import javax.jcr.observation.EventListener;

import javax.jcr.observation.ObservationManager;

 

import org.apache.felix.scr.annotations.Reference;

import org.apache.sling.jcr.api.SlingRepository;

import org.osgi.service.component.ComponentContext;

import org.slf4j.Logger;

import org.slf4j.LoggerFactory;

import org.apache.felix.scr.annotations.Component;

import org.apache.sling.api.SlingHttpServletRequest;

import org.apache.sling.api.resource.Resource;

import javax.jcr.Session;

 

public class GetNode {

 

    public String getNodeName() throws Exception

    {

        Node node=null;

        SlingHttpServletRequest slingRequest=null;

        Session session=slingRequest.getResourceResolver().adaptTo(Session.class);

        node=session.getNode("/apps/mysite/components/page/samplecomponent");

        System.out.println("nnnnnnnnn"+node.getName());

        return node.getName();

    }

}

 

 

And the jsp is,

 

<%@include file="/libs/foundation/global.jsp"%><%

%><%@page session="false" %>

<%@page import="com.mycomp.node.GetNode"%>

%><%

    GetNode gn = new GetNode();

%>

<%=gn.getNodeName()%>

 

 

I successfully build the bundle and it is also in active state. But I'm getting the error like "only a type can be imported, com.mycomp.node resolve to a package".

 

Is this the way to get the objects from session. There is another method we have for getting the nodes i.e using session.getWorkspace().getObservationManager(). But I need the solution in this way. Please give the suggestuons.

 

 

Best Regards,

G.Dinakar.

Can not access bundle context from JSP in CQ5.5

$
0
0

I created an OGI bundle , named :

 

 

com.sdl.ws.integration.profserv.webservice.connector.server.external.beans

I can see the bundle under :

 

 

http://localhost:4502/system/console/bundles

Following is my JSP code , using which I am trying to access a bundlecontext

 

 

<%@ page import="org.osgi.framework.BundleContext"%>

<%@ page import="org.osgi.framework.FrameworkUtil"%>

<%@ page import="com.sample.osgi.components.FormattingServiceImpl.*"%>

<%@ page import="org.osgi.service.cm.ConfigurationAdmin"%>

<%@ page import="org.osgi.service.cm.Configuration"%>

<%@ page import="org.osgi.service.packageadmin.PackageAdmin"%>

<% BundleContext bundleContext =      FrameworkUtil.getBundle(FormattingServiceImpl).getBundleContext();  %>

 

I am getting the following error : FormattingServiceImpl cannot be resolved , Class name "FormattingServiceImpl" is missing

 

I tried to use multiple ways to import the jar but nothing is working ,

Here is a structure how my bundle is configured :

snap.png

 

 

I am stuck on the point how to access the bundle context from JSP , does any one has any suggestions / corrections ?

Radio Buttons

$
0
0

How to create a group of radio buttons in cq5.5


Issue while installing SP2 on CQ5.5

$
0
0

Hi,

 

I have been trying to upgrade CQ5 5.5 to Service Pack 2.

Out of 10, the upgrade gets successful 7 times but it fails for the rest of the times.

 

Script that I am using:

 

#cq5-update-pkg-5.5.10.zip and cq5-service-pack-2.zip

        curl -u ${crx_site_user}:${crx_site_password} -F package=@$PACKAGE_DIR/cq5-update-pkg-5.5.10.zip http://${privateIP}:${cq5_author_listen_port}/crx/packmgr/service/.json/?cmd=upload

 

 

        curl -u ${crx_site_user}:${crx_site_password} -F package=@$PACKAGE_DIR/cq5-service-pack-2.zip http://${privateIP}:${cq5_author_listen_port}/crx/packmgr/service/.json/?cmd=upload

 

 

        curl -u ${crx_site_user}:${crx_site_password} -X POST http://${privateIP}:${cq5_author_listen_port}/crx/packmgr/service/.json/etc/packages/day/cq550/upd ate/cq-update-pkg-5.5.10.zip?cmd=install

 

 

        curl -u ${crx_site_user}:${crx_site_password} -X POST http://${privateIP}:${cq5_author_listen_port}/crx/packmgr/service/.json/etc/packages/day/cq550/upd ate/cq-service-pack-5.5.2.20121012.zip?cmd=install

 

 

CQ5 Update Package gets installed but it gets failed while installation of cq5-service-pack-2.zip

 

<html><head><title>

500

Internal Server Error

</title></head><body><h1>

Internal Server Error

 

Internal Server Error

</title></head><body><h1>

Internal Server Error

</h1>

</body></html>

 

This error corrupts my cq5 Author Package. Same behavior is observed for Publisher Package. Though, this issue is intermittent, but the after-effects leads to fresh installation of CQ5.

 

Any help would be appreciated.

How to create a query in for lastModifiedDate in Query Builder

$
0
0

I want to create a query to get the Dam Assets those with their lastModifiedDate that match the current date.

 

The usual lastmodified date is of the format yyyy-MM-ddThh:mm:ss etc.

 

With the current date we only have "yyyy-MM-dd"

 

I tried something like this ,

 

            map.put("path","/content/dam");

            map.put("type","dam:Asset");

            map.put("property","cq:lastModified");

            map.put("property.value","yyyy-MM-dd*"); / map.put("property.value","yyyy-MM-dd~"); / map.put("property.value","yyyy-MM-dd");

 

But i was not able to get the desired results.

 

Please suggest if there is a a way to do it if you have already tried anything similar .

 

Thanks in  advance

 

Harish

CQ5 - user session data maintenance

$
0
0

Hi,


I am developing an application that requires to me to prompt user to login and then pass some data from page to page. This can't be GET or form POST data. So, I thought to do using HTTP SESSION.

 

I was trying to figure out how to do this in CQ5. I have been trying to figure out how to do this, but not successful so far.

 

In some posts I was reading that HttpSession is not supported by CQ5. In some forums, I read that HttpSession is not encouraged since it creates problems in multiple publish environments.

 

But I couldn't find any where as what is the approach we need to take for my case, which is very common. Can someone please help me out how to approach and go over this problem?

 

Just to simplify the use case:

I'll have a login form. Once the data is submitted, I'll make a service call using javascript and if service authenticates user, I'll set some hidden values in a form and submit the form. When this form is submitted, I want to set some session values and redirect user to a different page. Now, when next page is displayed, I will need to access the information stored in UI. This information needs to be available in any page we navigate to, so I thought to have Session approach. Please let me know what would be better approach.

Day CQ installation problems

$
0
0

Hi Group,

 

I am facing issues while running the CQ 5.4 jar on Win 7 with java 1.5.When I launch the jar directly nothing pops up and no installation starts.If I run it from the command prompt I get an error as mentioned below:

 

Please note that the 4502 port is available and is successfully bound as it appears in the log.I however see a ConnectException while connecting to the CRX during the installation.

 

Kindly help me resolve this issue.

 

CONSOLE LOG:

D:\day\cq5\author>java -Xmx512m -jar cq-author-4502.jar

Loading instance properties:/quickstart/quickstart-cq5.properties

Running on a console, won't fork the JVM (use -fork to force forking)

Using 32bit VM settings

The JVM reports a heap size of 508 MB, meets our expectation of 256 MB +/- 20

The JVM MBean:Perm Gen reports a maximum size of 64 MB, meets our expectation of 64 MB +/- 20

Setting system properties from filename 'file:/D:/day/cq5/author/cq-author-4502.jar'

System property '-crx.quickstart.server.port' set to '4502' from filename cq-author-4502.jar

System property 'sling.jcrinstall.folder.name.regexp' set to '.*/(install|config)(.author)?$' from filename cq-author-4502.jar

System property 'sling.run.modes' set to 'author' from filename cq-author-4502.jar

System property 'server.ready.url.1' set to '900/120/0 http://localhost:$PORT$/login.html .*(QUICKSTART_HOMEPAGE|CRX_LICENSING_PAGE).*' from filename cq-author-4502.jar

System property 'server.ready.url.2' set to '300/40/0 http://localhost:$PORT$/libs/cq/core/content/systemready.txt .*(QUICKSTART_HOMEPAGE|CRX_LICENSING_PAGE).*' from filename cq-author-4502.jar

System property 'com.day.crx.launchpad.filters.CRXLaunchpadLicenseFilter.waitForContentPath' set to '/bin/login.html?src=CRXLaunchpadLicenseFilter' from filename cq-author-4502.jar

Verbose option not active, closing stdin and redirecting stdout and stderr

Redirecting stdout to D:\day\cq5\author\crx-quickstart\logs\stdout.log

Redirecting stderr to D:\day\cq5\author\crx-quickstart\logs\stderr.log

Press CTRL-C to shutdown the Quickstart server...

 

stderr.log

 

Loading instance properties:/quickstart/quickstart-cq5.properties

Running on a console, won't fork the JVM (use -fork to force forking)

Using 32bit VM settings

The JVM reports a heap size of 508 MB, meets our expectation of 256 MB +/- 20

The JVM MBean:Perm Gen reports a maximum size of 64 MB, meets our expectation of 64 MB +/- 20

Setting system properties from filename 'file:/D:/day/cq5/author/cq-author-4502.jar'

System property '-crx.quickstart.server.port' set to '4502' from filename cq-author-4502.jar

System property 'sling.jcrinstall.folder.name.regexp' set to '.*/(install|config)(.author)?$' from filename cq-author-4502.jar

System property 'sling.run.modes' set to 'author' from filename cq-author-4502.jar

System property 'server.ready.url.1' set to '900/120/0 http://localhost:$PORT$/login.html .*(QUICKSTART_HOMEPAGE|CRX_LICENSING_PAGE).*' from filename cq-author-4502.jar

System property 'server.ready.url.2' set to '300/40/0 http://localhost:$PORT$/libs/cq/core/content/systemready.txt .*(QUICKSTART_HOMEPAGE|CRX_LICENSING_PAGE).*' from filename cq-author-4502.jar

System property 'com.day.crx.launchpad.filters.CRXLaunchpadLicenseFilter.waitForContentPath' set to '/bin/login.html?src=CRXLaunchpadLicenseFilter' from filename cq-author-4502.jar

Verbose option not active, closing stdin and redirecting stdout and stderr

Redirecting stdout to D:\day\cq5\author\crx-quickstart\logs\stdout.log

Redirecting stderr to D:\day\cq5\author\crx-quickstart\logs\stderr.log

Quickstart startup at Thu Apr 19 15:35:08 IST 2012

crx.quickstart.build.number=5.4.0.20110218

DiskSpaceUtil.getMaxOpenFiles() reports a maximum of 2147483647 open files, meets our requirement (8192)

PortSelector: Selecting server port from supplied list: 4502

PortSelector: Trying port 4502

PortSelector: Successfully bound to port 4502, will use it

PortSelector: Selected port 4502

etc/server.xml does not exist, CQSE password not saved

quickstart.properties not found, not an update

PreserveExistingFiles: no files to restore from pre-upgrade backup

System property crx.quickstart.info.jar.name set to file:/D:/day/cq5/author/cq-author-4502.jar

System property crx.quickstart.info.work.dir set to D:\day\cq5\author\crx-quickstart

System property crx.quickstart.info.server.dir set to D:\day\cq5\author\crx-quickstart\server

System property crx.quickstart.info.server.port set to 4502

Extracting CQSE distribution...

Ignored as we're providing a Quickstart-specific variant: D:\day\cq5\author\crx-quickstart\server\server.bat

Ignored as we're providing a Quickstart-specific variant: D:\day\cq5\author\crx-quickstart\server\serverctl

Ignored as we're providing a Quickstart-specific variant: D:\day\cq5\author\crx-quickstart\server\start

Ignored as we're providing a Quickstart-specific variant: D:\day\cq5\author\crx-quickstart\server\stop

Saving build number in quickstart.properties

Setting up CQSE webapps and files...

13 files extracted from jar file

Extracting static files to workdir...

31 files extracted from jar file

Making scripts executable...

Running chmod +x D:\day\cq5\author\crx-quickstart\server\serverctl

Failed to set executable mode on scripts: java.io.IOException: CreateProcess: chmod +x D:\day\cq5\author\crx-quickstart\server\serverctl error=2

Processing updates...

Updates source: D:\day\cq5\author\crx-quickstart\repository\patches\new

RunJarOnce INFO: RunJarOnce created, srcFolder=D:\day\cq5\author\crx-quickstart\repository\patches\new, doneFolder=D:\day\cq5\author\crx-quickstart\updates\history

No update jars executed

Done processing 0 updates

sling.repository.url not set, empty in instance properties

Starting CQSE on port 4502, interface=null...

Work dir: D:\day\cq5\author\crx-quickstart

CQSE arguments: [-p, 4502]

System property server.ready.url.1 defines WaitUrlParams, url=http://localhost:4502/login.html, regexp=.*(QUICKSTART_HOMEPAGE|CRX_LICENSING_PAGE).*, times=900/120/0

System property server.ready.url.2 defines WaitUrlParams, url=http://localhost:4502/libs/cq/core/content/systemready.txt, regexp=.*(QUICKSTART_HOMEPAGE|CRX_LICENSING_PAGE).*, times=300/40/0

Waiting for http://localhost:4502/crx (0/900) ...

Waiting for server installation...

Retrying http://localhost:4502/crx (ConnectException) (1/900)...

Retrying http://localhost:4502/crx (ConnectException) (3/900)...

Retrying http://localhost:4502/crx (ConnectException) (5/900)...

Retrying http://localhost:4502/crx (ConnectException) (7/900)...

Retrying http://localhost:4502/crx (ConnectException) (9/900)...

Retrying http://localhost:4502/crx (ConnectException) (11/900)...

log4j:WARN No appenders could be found for logger (com.day.commons.httpclient.impl.ProxySelector).

log4j:WARN Please initialize the log4j system properly.

Retrying http://localhost:4502/crx (ConnectException) (13/900)...

Retrying http://localhost:4502/crx (ConnectException) (15/900)...

Retrying http://localhost:4502/crx (ConnectException) (17/900)...

Retrying http://localhost:4502/crx (ConnectException) (19/900)...

Retrying http://localhost:4502/crx (ConnectException) (21/900)...

Retrying http://localhost:4502/crx (ConnectException) (23/900)...

Retrying http://localhost:4502/crx (ConnectException) (25/900)...

MAIN process: shutdown hook

MAIN process: exiting

 

Saludos

Kartheek

CQ5.5 Session Timeout

$
0
0

Hello,

 

We would like to change the session timeout value for the Author server so that if an Author doesn't do anything for 30 minutes the CQ session expires.  Seems the default is several hours.

Viewing all 12476 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>