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

Why is a workflow "stale"?

$
0
0

I'm writing a workflow to send an email each time an user is created and I'm calling this workflow from a POJO. Everything looks good, no errors, in debug mode in my POJO I see that the workflow starts, there are no messages in my inbox. This is what my log says:

day.cq.workflow.impl.CQWorkflowSession Workflow instance started with model: /etc/workflow/models/send-user-email/jcr:content/model and  ID: /etc/workflow/instances/2013-04-04/model_17333941154731 for payload: /home/users/group01/xx@yy.com

 

My model only includes a workflow process step to send the email. Here comes the problem... it's not sending the email, I'm debuging the workflow and is not passing through the step that I wrote. In the workflow console the workflow the instance says "STALE". What causes the workflow going to stale state?

 

Thanks!


Need learning material or links for CQ5

$
0
0

Hi All,

 

I am planning to learn Adobe CQ5. Can anyone give me more information on Adobe CQ5?

 

Also share me the links to download the tool, learning material etc if any one has?

 

Thank you

How to get child pages of any WCM page?

$
0
0

Hello,

 

I want to get all child pages name and its WCM path of respected.

Can eny one will provide sample code for that.

 

I want to create side navigation, which having parent and its child, please let me know is there any way/approach to implement this.

 

Please find screen shot below for side navigation, and it should be editable by author

 

nav.JPG

 

Regards,

Satish Sapate

Using multi-value properties in JSP components

$
0
0

I am trying to figure out if I am doing some small step wrong or if I don't have a full grasp on how some things work.

 

I am accessing a multi-value property from the JSP of my component:

 

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

    <h2>Keys</h2>

    <div class="container_16">

        <div class="grid_8"><%

Object keysObj = properties.get("keys");

if (keysObj != null)

{

String[] keys = (String[]) keysObj;

%>

<%= keys %><%

} %></div>

</div>

 

Here is how I defined my component:

 

{

     "jcr:createdBy":"admin",

     "jcr:title":"My Listing",

     "allowedParents":["*/*parsys"],

     "componentGroup":"Listing Group",

     "sling:resourceSuperType":"foundation/components/parbase",

     "jcr:created":"Wed Aug 15 2012 20:01:15 GMT-0400",

     "jcr:primaryType":"cq:Component",

     "keys":[""]

}

 

So keys is a multi-value String object. I am supposing the value is a String[].

 

I created a dialog to set the values within the CQ page edit.

 

- myList

--- dialog [cq:Dialog]

----- items [cq:Widget]

------- items [cq:WidgetCollection]

--------- tabs1 [cq:Panel]

----------- items [cq:WidgetCollection]

------------- keys [cq:Widget]

 

The keys cq:Widget is defined as:

 

{

     "fieldLabel":"Keys to List",

     "xtype":"multifield",

     "name":"./keys",

     "jcr:primaryType":"cq:Widget",

     "fieldDescription":"List keys to display"

}

 

I placed the component into an existing geometrixx page to test. When I double-clicked on it I was able to add multiple values.

 

It is failing when I attempt to coerce the properties.get method to a String[]: String[] keys = (String[]) keysObj;

 

16.08.2012 11:58:29.444 *ERROR* [10.176.196.66 [1345132705084] GET /content/geometrixx/en/services.html HTTP/1.1] com.day.cq.wcm.core.impl.WCMDebugFilter Error during include of SlingRequestPathInfo: path='/content/geometrixx/en/services/jcr:content/par/keylist', selectorString='null', extension='html', suffix='null' org.apache.sling.api.scripting.ScriptEvaluationException: An exception occurred processing JSP page /apps/myList/components/keyList/keyList.jsp at line 14

<snip stack trace>

Caused by: java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.String;

 

So all that leads to my question.

 

It looks like I am wrong on how to coerce the results of properties.get to a String[]. What is the best way to work with multi-value properties? I want to iterate through the values in the multi-value property.

 

Should I have specified the index in the method?

---- properties.get("keys[0]");

 

Thanks!

Apache Sling JCR Resource Resolver doesn't work for the anchor tags which is been rendered through j

$
0
0

Certainly I realized that Apache Sling JCR Resource Resolver doesn't work for the anchor tags which is been rendered through jquery or javascript.

 

e.g.

 

In Felix Console , in Apache Sling JCR Resource Resolver configuration I have added following mapping.

 

/content/myproject/-/

 

So If any anchor tag is there like <a href="/content/myproject/en.html"> click me </a> then it will be mapped to "/en.html" automatically.

 

But the problem is there in following scenario.

 

I have an anchor tag as follows.

 

<a href="#" id="test"> click here </a>

 

And I am assigning the href to anchor through JQUERY.

 

<script>

$("#test").attr("href","/content/myproject/en.html");

</script>

 

Ideally this should have been mapped to "/en.html".

 

But it is not mapping to "/en.html". It still shows "/content/myproject/en.html".

 

How to resolve this.

 

Thanks,

Sai

Manually Clean Dispatcher Cache

$
0
0

We have a requirement that we update some details of a page from a feed after certain interval of time and then we need to clean the dispatcher cache.

 

We have done few sling mapping also

e.g.

for page  /content/mysite/page1.html we have defined a sling mapping and whenever a request comes for http://domainname/mysite/page1.html it serves /content/mysite/page1.html

 

Cache generated : /mysite/page1.html in docroot folder

 

Once the page data is updated by the feed, we need to clean the cache.

 

I am trying to manually clean the cache by making following  POST request at http://domainname/dispatcher/invalidate.cache with parameters

CQ-Action: Activate
CQ-Handle:
/mysite

Content-Length: 0


It returns 201 with following but the cache is not deleted.  Am I doing something wrong ?

 

 

Any help will be much appreciated.

 

Regards,

-Yogesh

How to custom the ok button in the edit dialog

$
0
0

Hi Team:

I want to log down the user's action when user after edit the attribute in the edit dialog,how to do that?

any suggestions/pointers to solve this problem would be appreciable.

DAM not generating thumbnails

$
0
0

Hi,

 

When I try to upload images to digital assests interface in CQ5.5, it is uploading the file, but doesn't generate thumbnail image. I tried to check crx-quickstart/logs, but there is nothing logged in there. Could someone please help me what are other configurations/logs I need to check to find the cause of this thumbnail generation problem?


Activation of page failing due replication

$
0
0

I am trying to activate camapign or articles but failed to do so. Earlier i used to do but facing below error:

Please help me to resolve.

ReplicationOptions{synchronous=false, revision='null', suppressStatusUpdate=false, suppressVersions=false, filter=null, aggregateHandler=null}

04.12.2012 04:04:26.989 *ERROR* [172.16.119.96 [1354611866971] POST /bin/replicate.json HTTP/1.1] com.day.cq.replication.impl.servlets.CommandServlet Error during replication: Unable to create version for /content/Intranet/News/2012/11/12112__lookbacktest (v2). com.day.cq.replication.ReplicationException: Unable to create version for /content/Intranet/News/2012/11/12112__lookbacktest (v2).

        at com.day.cq.wcm.core.impl.VersionManagerImpl.preprocess(VersionManagerImpl.java:293)

        at com.day.cq.replication.impl.ReplicatorImpl.replicate(ReplicatorImpl.java:317)

        at com.day.cq.replication.impl.servlets.CommandServlet.doPost(CommandServlet.java:109)

        at org.apache.sling.api.servlets.SlingAllMethodsServlet.mayService(SlingAllMethodsServlet.ja va:148)

        at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.jav a:344)

        at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.jav a:375)

        at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:491)

        at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilter Chain.java:45)

        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:64)

        at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilter(WCMDebugFilter.java:147)

        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

        at com.day.cq.wcm.core.impl.WCMComponentFilter.filterRootInclude(WCMComponentFilter.java:334 )

        at com.day.cq.wcm.core.impl.WCMComponentFilter.doFilter(WCMComponentFilter.java:152)

        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

        at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processComponent(SlingRequestProce ssorImpl.java:280)

        at org.apache.sling.engine.impl.filter.RequestSlingFilterChain.render(RequestSlingFilterChai n.java:49)

        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:64)

        at com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter.doFilter(RedirectFilter.java:287)

        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

        at org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter.doFilter(RequestProgre ssTrackerLogFilter.java:59)

        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

        at com.day.cq.theme.impl.ThemeResolverFilter.doFilter(ThemeResolverFilter.java:67)

        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

        at com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet.doFilter(FormsHandlingServlet.j ava:220)

        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

        at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:96)

        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

        at com.day.cq.wcm.core.impl.WCMRequestFilter.doFilter(WCMRequestFilter.java:119)

        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

        at org.apache.sling.rewriter.impl.RewriterFilter.doFilter(RewriterFilter.java:84)

        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

        at org.apache.sling.portal.container.internal.request.PortalFilter.doFilter(PortalFilter.jav a:76)

        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

        at org.apache.sling.bgservlets.impl.BackgroundServletStarterFilter.doFilter(BackgroundServle tStarterFilter.java:135)

        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

        at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processRequest(SlingRequestProcess orImpl.java:171)

        at org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServlet.java:199)

        at org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:9 6)

        at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:79)

        at org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java: 42)

        at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:49)

        at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)

        at org.apache.sling.security.impl.ReferrerFilter.doFilter(ReferrerFilter.java:249)

        at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)

        at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)

        at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)

        at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)

        at org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java: 48)

        at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:39)

        at org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:67)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

        at org.apache.felix.http.proxy.ProxyServlet.service(ProxyServlet.java:60)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

        at org.apache.sling.launchpad.base.webapp.SlingServletDelegate.service(SlingServletDelegate. java:277)

        at org.apache.sling.launchpad.webapp.SlingServlet.service(SlingServlet.java:150)

        at com.day.j2ee.servletengine.ServletRuntimeEnvironment.service(ServletRuntimeEnvironment.ja va:228)

        at com.day.j2ee.servletengine.RequestDispatcherImpl.doFilter(RequestDispatcherImpl.java:315)

        at com.day.j2ee.servletengine.FilterChainImpl.doFilter(FilterChainImpl.java:74)

        at com.day.crx.launchpad.filters.CRXLaunchpadLicenseFilter.doFilter(CRXLaunchpadLicenseFilte r.java:96)

        at com.day.j2ee.servletengine.FilterChainImpl.doFilter(FilterChainImpl.java:72)

        at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:334)

        at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:378)

        at com.day.j2ee.servletengine.ServletHandlerImpl.execute(ServletHandlerImpl.java:315)

        at com.day.j2ee.servletengine.DefaultThreadPool$DequeueThread.run(DefaultThreadPool.java:134 )

        at java.lang.Thread.run(Thread.java:662)

Caused by: com.day.cq.wcm.api.WCMException: Unable to create version.

        at com.day.cq.wcm.core.impl.PageManagerImpl.createRevision(PageManagerImpl.java:1145)

        at com.day.cq.wcm.core.impl.PageManagerImpl.createRevision(PageManagerImpl.java:1027)

        at com.day.cq.wcm.core.impl.VersionManagerImpl.preprocess(VersionManagerImpl.java:290)

        ... 64 more

Caused by: javax.jcr.version.VersionException: Node 0868d5ce-7c75-4db8-824d-40e392405820 has no version history

        at org.apache.jackrabbit.core.version.InternalVersionManagerBase.calculateCheckinVersionName (InternalVersionManagerBase.java:701)

        at org.apache.jackrabbit.core.version.InternalVersionManagerBase.internalCheckin(InternalVer sionManagerBase.java:637)

        at org.apache.jackrabbit.core.version.InternalVersionManagerBase.checkin(InternalVersionMana gerBase.java:610)

        at org.apache.jackrabbit.core.version.InternalVersionManagerImpl$4.run(InternalVersionManage rImpl.java:411)

        at org.apache.jackrabbit.core.version.InternalVersionManagerImpl$DynamicESCFactory.doSourced (InternalVersionManagerImpl.java:713)

        at org.apache.jackrabbit.core.version.InternalVersionManagerImpl.checkin(InternalVersionMana gerImpl.java:407)

        at org.apache.jackrabbit.core.version.InternalXAVersionManager.checkin(InternalXAVersionMana ger.java:236)

        at org.apache.jackrabbit.core.version.VersionManagerImplBase.checkoutCheckin(VersionManagerI mplBase.java:188)

        at org.apache.jackrabbit.core.VersionManagerImpl.access$100(VersionManagerImpl.java:73)

        at org.apache.jackrabbit.core.VersionManagerImpl$1.perform(VersionManagerImpl.java:122)

        at org.apache.jackrabbit.core.VersionManagerImpl$1.perform(VersionManagerImpl.java:115)

        at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:200)

        at org.apache.jackrabbit.core.VersionManagerImpl.perform(VersionManagerImpl.java:96)

        at org.apache.jackrabbit.core.VersionManagerImpl.checkin(VersionManagerImpl.java:115)

        at org.apache.jackrabbit.core.VersionManagerImpl.checkin(VersionManagerImpl.java:101)

        at org.apache.jackrabbit.core.NodeImpl.checkin(NodeImpl.java:2856)

        at com.day.cq.wcm.core.impl.PageManagerImpl.createRevision(PageManagerImpl.java:1093)

 

Message was edited by: Yogesh

Dispatcher serving, but not caching, CQ5 pages

$
0
0

Just restored a backup of a CQ5.5 staging server to a new Amazon EC2 instance in order to allow some people outside of the company shared access to what we are working on.  CQ5 appears to be running correctly for the author and publish instances; I can see our site.

 

But the dispatcher in Apache is having trouble caching files, it seems.  Apache can serve the URLs requested of it, but it fails to cache any of them, so that every requested is actually being serviced by the publish instance through the dispatcher.  This is the dispatcher log showing the problem:

 

[Thu Oct 11 17:58:58 2012] [D] [820(139934505617152)] Found farm pmlpublic for ec2-174-129-90-184.compute-1.amazonaws.com

[Thu Oct 11 17:58:58 2012] [D] [820(139934505617152)] checking [/content/public/individuals-families/financial-life/planning-strategies.html]

[Thu Oct 11 17:58:58 2012] [D] [820(139934505617152)] no cache due to authorization header.

[Thu Oct 11 17:58:58 2012] [D] [820(139934505617152)] cache-action for [/content/public/individuals-families/financial-life/planning-strategies.html]: NONE

[Thu Oct 11 17:58:58 2012] [D] [820(139934505617152)] connected to render rend01 (localhost:4503)

[Thu Oct 11 17:58:58 2012] [D] [820(139934505617152)] Spooling header: Host

[Thu Oct 11 17:58:58 2012] [D] [820(139934505617152)] Spooling header: Cache-Control

[Thu Oct 11 17:58:58 2012] [D] [820(139934505617152)] Spooling header: User-Agent

[Thu Oct 11 17:58:58 2012] [D] [820(139934505617152)] Spooling header: Accept

[Thu Oct 11 17:58:58 2012] [D] [820(139934505617152)] Spooling header: Referer

[Thu Oct 11 17:58:58 2012] [D] [820(139934505617152)] Spooling header: Accept-Encoding

[Thu Oct 11 17:58:58 2012] [D] [820(139934505617152)] Spooling header: Accept-Language

[Thu Oct 11 17:58:58 2012] [D] [820(139934505617152)] Spooling header: Accept-Charset

[Thu Oct 11 17:58:58 2012] [D] [820(139934505617152)] Spooling header: Cookie

[Thu Oct 11 17:58:58 2012] [D] [820(139934505617152)] Spooling header: Via

[Thu Oct 11 17:58:59 2012] [D] [820(139934505617152)] Detected: chunked transfer encoding

[Thu Oct 11 17:58:59 2012] [D] [820(139934505617152)] response.status = 200

[Thu Oct 11 17:58:59 2012] [D] [820(139934505617152)] response.headers[Server] = "Day-Servlet-Engine/4.1.24 "

[Thu Oct 11 17:58:59 2012] [D] [820(139934505617152)] response.headers[Content-Type] = "text/html;charset=UTF-8"

[Thu Oct 11 17:58:59 2012] [D] [820(139934505617152)] response.headers[Date] = "Thu, 11 Oct 2012 17:58:59 GMT"

[Thu Oct 11 17:58:59 2012] [D] [820(139934505617152)] response.headers[Set-Cookie] = "JSESSIONID=e4bb6232-7726-4258-a724-f111ccf0eed9; Path=/; HttpOnly"

[Thu Oct 11 17:58:59 2012] [D] [820(139934505617152)] send http headers

[Thu Oct 11 17:58:59 2012] [D] [820(139934505617152)] Content length: -1, written: 54000

[Thu Oct 11 17:58:59 2012] [I] [820(139934505617152)] "GET /content/public/individuals-families/financial-life/planning-strategies.html" 200 53979 330ms


That "cache-action: NONE" is the issue.

 

I've checked permissions in the cache directory, and they match those of our staging servers - best I can tell.  But nothing ever gets written to disk for caching.

 

I'm guessing that I am missing something obvious, and my gut tells me I've dealth with this before, but I just can't get it going.  Any ideas?

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 ?

creating custom tag library- AEM, CQ 5.6

$
0
0

Hi ,

 

I am creating a custom tag library and want to use it in one of the components I have created. I have made a bundle inside src/com.mycompany.test.TestBundle/com.mycompany.test.TestBundle.bnd and created my java tag class inside com.mycompany.test.TestBundle/src/main/java/com/mycompany/test/DateTagClass.java and the tld in com.mycompany.test.TestBundle/src/main/resources/META_INF/dateTaglib.tld. Here is the code for both the java tag class and the tld

 

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

tag class

 

 

package com.mycompany.test;

 

import java.io.IOException;

import java.text.DateFormat;

import java.text.SimpleDateFormat;

import java.util.Date;

import javax.servlet.jsp.JspException;

import javax.servlet.jsp.JspWriter;

import javax.servlet.jsp.tagext.SimpleTagSupport;

/**

*

* @author ankit-chandrawat

*/

public class DateTagClass extends SimpleTagSupport {

   

    public void doTag() throws JspException, IOException {

    JspWriter out = getJspContext().getOut();

    out.println(getTodayDate());

    }

   

   private String getTodayDate() {

        DateFormat df = new SimpleDateFormat("dd MMMM yyyy");

        String formattedDate = df.format(new Date());

        return formattedDate;

    }

}

 

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

tld file

 

<?xml version="1.0" encoding="UTF-8"?>

<taglib version="2.1" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://java.sun.com/xml/ns/javaeehttp://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd">

 

  <tlib-version>1.0</tlib-version>

  <jsp-version>2.0</jsp-version>

  <short-name>date</short-name>

    <uri>src/main/resources/META_INF/dateTaglib.tld</uri>

  <tag>

    <name>todaysDate</name>

    <tag-class>com.mycompany.test.DateTagClass</tag-class>

    <body-content>empty</body-content>

  </tag>

</taglib>

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

I am trying to use it inside a component jsp that I have created as :

 

<%@taglib prefix="date" uri="src/main/resources/META_INF/dateTaglib.tld"%>

 

But with the above taglib include in place, all I see is a blank page. I am trying this on author and have not pushed it to publisher yet. I believe it is not able to recognize the tld. Could you please help me on this.

 

Thanks

Ankit

How to Publish Design Dialog content ?

$
0
0

Hi,

 

Senario:                    Whenever we update or enter content in design dialog , it won't get publish while activating the page.

Understanding:          Becaue design dialog content get stored under /etc/design/myapp/ with particular templates, So while activating the page this content won't publish.

 

Now Question is :      How to Publish Design Dialog content ?(Apart from activation tree because it has own limitations, like you can't activate single page or node using

                                   activation tree)

 

 

Regards

Brijesh Yadav

Where is Content Explorer in CQ 5.5?

$
0
0

Hello,

 

I have tried to use Content Explorer with CQ 5.5. Going to the url, <host>:<port>/crx/, no longer shows the CRX console. What is the new URL for the Content Explorer and the Content Loader?

 

Xavi

REGARDING EXTRACTING OF PROPERTIES

$
0
0

Hi,

I am fairly new to ADOBE DAY CQ.. I want to extract properties of a particular node...

 

I am using the following code....

 

Node aName= session.getNode(absPath);

String propertyName= aName.getPRoperty("Name").getValue().getString();

 

I am aware that there is an abstract class named ABSTRACTSESSION which extends the OBJECT class and implements SESSION interface...

 

and getNode is a method defined in the class ABSTRACTSESSION...

 

What i want to know is "is there any class which extends the ABSTRACTSESSION??? Where can i find material to read about the session management in cq?

 

 

Regards and Thanks in advance,

 

Heidi.


How To create a dropdown list in CQ ?

$
0
0

Hi

 

I want to create a topnav with dropdown list can you please suggest how to go about it.

 

please check the below screenshot of menu that i want

 

Thanks in Advancetopnav.JPG

 

Thanks

Sunny

Does CQ provide a valid example of reverse replication for forms?

$
0
0

I am not talking about this:

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

and not this:

http://mkalugin-cq.blogspot.com/2012/02/reverse-replication-woes-solved.html

 

They work for polls and comments, but they don't seem to be working for forms. As far as I understand, the default servlet for forms creates a "sling:Folder" as a data container, under which all form values are set into properties. However, polls and comments are created as an entity(or node) under a container. A working example for comment is under "/content/usergenerated/content/geometrixx/en/blog/2009/02/shapecon_2009_inveg". All essential properties such as "cq:distribute", "cq:lastModified" are set correctly under this node. I tried to copy the idea of this example, but it never works for me.

 

Here's how I did.

1. I need to make a node as a "cq:Page", since reverse replication only works for this primary type. Let's name it "Page-1"

2. Create a "jcr:content" node under this node, make it as "cq:PageContent". I also set resourceType and template in "jcr:content". I need to make "Page-1" as a content page.

3. Create a data container under "cq:Page" node, make it "nt:unstructured". Let's name it "form_container". All form values are set into properties in this node. set "cq:lastModified", "cq:lastModifiedBy" and "cq:distribute" under this node.

4. Create a "jcr:content" node under "form_container", make it "nt:structured", set "cq:lastModified", "cq:lastModifiedBy" and "cq:distribute" under this node.

 

Obviously CQ doesn't know what I did and refuses to reverse replicate. Any help will greatly appreciate.

 

A finished upload will look like this:

 

/content

    /usergenerated

        /newsevent [cq:Page]

            /1351359963325_1 [cq:Page]

                |

                + form_content [cq:PageContent, cq:distribute==>true, and all form values stored as properties]

                |

                -- jrc:content [cq:distribute==> true, cq:lastModified==>Date Instance, cq:lastModifiedBy==>admin]

 

Kevin

CQ login page is throwing 500 Internal Server Error on start up. Can't load http root property error

$
0
0

Hello Team,

 

When I am trying to start the CQ instance, I am seeing the following in the stderr.log

 

Setting properties from filename 'C:/CQ/CQInstall/cq-author-4502.jar'

Property '-r' set to 'author' from filename cq-quickstart-5.5.0-20120220.jar

System property 'sling.run.modes' set to 'author' by -r option

Redirecting stdout to C:\CQ\CQInstall\.\crx-quickstart\logs\stdout.log

Redirecting stderr to C:\CQ\CQInstall\.\crx-quickstart\logs\stderr.log

ResourceProvider paths=[/gui, /gui/default]

Can't load http root property: java.io.FileNotFoundException: C:\CQ\CQInstall\.\crx-quickstart\conf\sling.properties (The system cannot find the file specified)

 

MAIN process: shutdown hook

 

MAIN process: exiting

 

I am not sure where from this extra \.\ is getting added in the path.

 

Even when I see the osgi bundle in the system console,

 

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


Bundle information: 122 bundles in total, 119 bundles active, 3 active fragments, 0 bundles resolved, 0 bundles installed.


On my mac machine, I have the same version and could see the total bundles as different.


bundle information 231 bundles in total, 224 bundles active, 7 active fragments, 0 bundles resolved and 0 bundles installed


When I try to access the http://localhost:4502/libs/crx/core/content/login.html

 

Internal Server Error

 

When I looked into the logs, it is giving the following error message:

 

06.02.2013 17:38:31.980 *ERROR* [0:0:0:0:0:0:0:1 [1360193734586] GET /libs/crx/core/content/login.html HTTP/1.1] org.apache.sling.servlets.resolver.internal.SlingServletResolver Original error class org.apache.sling.api.SlingException org.apache.sling.api.SlingException:

 

at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspExceptionInterna l(JspServletWrapper.java:563)

 

at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspException(JspSer vletWrapper.java:499)

at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper .java:451)

at org.apache.sling.scripting.jsp.JspServletWrapperAdapter.service(JspServletWrapperAdapter. java:59)

Caused by: org.apache.sling.api.SlingException: Unable to setup processor: Unable to get component of class 'interface org.apache.sling.rewriter.Generator' with type 'htmlparser'.

 

at org.apache.sling.rewriter.impl.ProcessorManagerImpl.getProcessor(ProcessorManagerImpl.jav a:452)

 

at org.apache.sling.rewriter.impl.RewriterResponse.getProcessor(RewriterResponse.java:172)

at org.apache.sling.rewriter.impl.RewriterResponse.getWriter(RewriterResponse.java:110)

at org.apache.sling.scripting.core.impl.helper.OnDemandWriter.getWriter(OnDemandWriter.java: 38)

at org.apache.sling.scripting.core.impl.helper.OnDemandWriter.write(OnDemandWriter.java:61)

at java.io.PrintWriter.write(PrintWriter.java:382)

Caused by: java.io.IOException: Unable to get component of class 'interface org.apache.sling.rewriter.Generator' with type 'htmlparser'.

 

at org.apache.sling.rewriter.impl.PipelineImpl.getPipelineComponent(PipelineImpl.java:160)

 

at org.apache.sling.rewriter.impl.PipelineImpl.init(PipelineImpl.java:85)

at org.apache.sling.rewriter.impl.ProcessorManagerImpl.getProcessor(ProcessorManagerImpl.jav a:445)

... 73 more

 

Any pointers to solve the problem would be highly appreciated.

 

Best Regards,

Durga

An exception occurred processing JSP page /libs/cq/core/components/login/login.jsp at line 97

$
0
0

Hi All,

 

I am new to DAY CQ development. I installed jdk1.6.0_37 in my system. I started cq 5.5 jar on port 4502. When i start cq and open localhost:4502 in browser I am getting following exception "An exception occurred processing JSP page /libs/cq/core/components/login/login.jsp at line 97". PFA for more details and help in this

 

Thankscq login exception.jpg

How to get SlingScriptHelper in servlet?

$
0
0

I need to get a SlingScriptHelper instance from within my servlet. Either a ComponentContext or BundleContext will do as well, as my only goal is to get sling services using it.

 

  • Using SCR @Reference injection is not a solution for me, because I will determine at runtime what service class I need to get.
  • I've seen posts online that use an activate() method to get ComponentContext, and also decompiled some class that do it, but don't know how to cause sling to call this method and set my ComponentContext
  • I've tried pulling it from the Request scope as an attribute, but sling apparently only puts it there for scripts, not servlets.
  • I've tried injecting all of these objects themselves - none can be injected.

 

Any help? I'm hoping there's some static factory I can just hit and get one of these objects so that I can get services...

Viewing all 12476 articles
Browse latest View live