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

Error creating Replication Agent 5.6.1

$
0
0

One of my students was getting a strange error when he was creating an ordinary Replication Agent.

 

He copied the default agent, and updated the transport URI.  He was getting a strange error to do with "Timewarp.

 

I have tried again on his server, but it worked fine for me.   The error was in the log.  I did notice he had Activated the default Replication agent .

 

I'm attaching the error here - If someone can tell me what it means, that would be great

 

17.07.2013 09:29:32.868 *INFO* [ObservationManager] com.day.cq.cq-replication Service [1921] ServiceEvent REGISTERED

17.07.2013 09:29:44.178 *INFO* [0:0:0:0:0:0:0:1 [1374035384115] GET /libs/wcm/core/content/pageinfo.json HTTP/1.1] org.apache.jackrabbit.core.persistence.bundle.AbstractBundlePersistenceManager cachename=versionBundleCache[ConcurrentCache@2e570e], elements=10053, usedmemorykb=8189, maxmemorykb=8192, access=207391, miss=20574

17.07.2013 09:29:53.366 *ERROR* [0:0:0:0:0:0:0:1 [1374035393288] POST /etc/replication/agents.author/publish1/jcr:content HTTP/1.1] org.apache.sling.servlets.post.impl.operations.ModifyOperation Exception during response processing. java.lang.UnsupportedOperationException: time warp resource resolver is read-only

          at com.day.cq.wcm.core.impl.warp.TimeWarpResourceResolver.hasChanges(TimeWarpResourceResolve r.java:205)

          at org.apache.sling.servlets.post.AbstractPostOperation.isSessionSaveRequired(AbstractPostOp eration.java:210)

          at org.apache.sling.servlets.post.AbstractPostOperation.run(AbstractPostOperation.java:128)

          at org.apache.sling.servlets.post.impl.SlingPostServlet.doPost(SlingPostServlet.java:202)

          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:508)

          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.doFilterWithErrorHandling(WCMDebugFilter.java:182 )

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

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

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

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

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

          at com.day.cq.personalization.impl.TargetComponentFilter.doFilter(TargetComponentFilter.java :96)

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

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

          at org.apache.sling.engine.impl.SlingRequestProcessorImpl.dispatchRequest(SlingRequestProces sorImpl.java:294)

          at org.apache.sling.engine.impl.request.SlingRequestDispatcher.dispatch(SlingRequestDispatch er.java:216)

          at org.apache.sling.engine.impl.request.SlingRequestDispatcher.forward(SlingRequestDispatche r.java:144)

          at com.day.cq.wcm.core.impl.warp.TimeWarpFilter.doFilter(TimeWarpFilter.java:97)

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

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

          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:64)

          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:221)

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

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

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

          at com.adobe.granite.optout.impl.OptOutFilter.doFilter(OptOutFilter.java:74)

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

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

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

          at com.adobe.cq.history.impl.HistoryRequestFilter.doFilter(HistoryRequestFilter.java:107)

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

          at com.day.cq.wcm.designimporter.CanvasPageDeleteRequestFilter.doFilter(CanvasPageDeleteRequ estFilter.java:88)

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

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

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

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

          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:151)

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

          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.i18n.impl.I18NFilter.doFilter(I18NFilter.java:127)

          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.sling.security.impl.ReferrerFilter.doFilter(ReferrerFilter.java:263)

          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 com.adobe.granite.license.impl.LicenseCheckFilter.doFilter(LicenseCheckFilter.java:179)

          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.sslfilter.internal.SslFilter.doFilter(SslFilter.java:55)

          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.sling.engine.impl.log.RequestLoggerFilter.doFilter(RequestLoggerFilter.java:75 )

          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:820)

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

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

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

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

          at com.day.j2ee.servletengine.ServletHandlerImpl.process(ServletHandlerImpl.java:335)

          at com.day.j2ee.servletengine.HttpListener$Worker.run(HttpListener.java:644)

          at java.lang.Thread.run(Unknown Source)


Rich Text Editor - Saving encoded characters

$
0
0

Hi all,

 

I am using CQ5.5 SP2.1. The problem faced is that on IE8 Western European (Windows) encoding, special characters do not display correctly. However, using HTML encoded version of the special character will display correctly, i.e. using £ instead of £.

 

However, on the richtext editor in source edit, the £ gets converted to £ upon save, and is saved and rendered as £ instead of £. Is there a way to remove the conversion upon save?

 

Thanks!

Updated my pages vanity url, but some of it doesn't reflect on /system/console/jcrresolver

$
0
0

Hi,

 

I have follow the instruction on this page (http://helpx.adobe.com/adobe-cq/kb/vanity-urls.html) to create the vanity url for my content.

After I have populate the page property with the vanity url, some page the pages are not reflected on the JCR Resolver page -> Resolver Map Entries.

 

 

I am running version 5.6 of CQ

 

 

Thanks

Workflow Payload update needed once we move the node(payload path)

$
0
0

Hi ,

When you moved your node in a workflow process,how the new payload should be used in the further workflow process steps.

 

if we use the payload in the further workflow process steps, this will give an error , as the payload which the workflow process is pointing at has been moved now.

 

Can anybody help me to set the new payload for the workflow process, after the  node is moved to a different position.

 

For example: when I started the workflow my Node is point at sourcepath=  /content/usergenerated/mycomments/mycommentpage

If I moved this node path to destination path= /etc/commerce/products/approvedcomments/mycommentpage.

 

 

My two questions are

 

1 Do we need to set the new payload path ?

2. Why there is no method called setPayload() in WorkflowData? is there a specific reason?

 

Your help in this regard will be much appreciated

 

Thanks

Configuring Anonymous access for Sling Servlet

$
0
0

Hello Team,


My use case scenario is Apache webserver directs all the requests to the Sling servlet and Sling servlet would forward the calls to CQ or our internal webapp depending upon the url. I need the anonymous access for accessing my Sling Servlet.

 

When I call my Sling Servlet from the Apache webserver, it is redirected to libs/cq/core/content/login.html. When I hit in the CQ server direcly for that servlet thats not redirecting to the login page and directly the servlet is served. Only when apache webserver dispatches the request, its being redirected to /libs/cq/core/content/login.html.

 

[rid#18017320/initial] (4) RewriteCond: input='/mcdonalds' pattern='^/(.*)$' => matched

[rid#18017320/initial] (2) rewrite '/mcdonalds' -> '/apps/myvanity/forwardvanity?category=mcdonalds'

[rid#18017320/initial] (3) split uri=/apps/myvanity/forwardvanity?category=mcdonalds -> uri=/apps/myvanity/forwardvanity, args=category=mcdonalds

[rid#18017320/initial] (2) local path result: /apps/myvanity/forwardvanity

[rid#18017320/initial] (2) prefixed with document_root to /u/apache/htdocs/apps/myvanity/forwardvanity

[rid#18017320/initial] (1) go-ahead with /u/apache/htdocs/apps/myvanity/forwardvanity [OK]

[rid#180092b0/initial] (2) init rewrite engine with requested uri /libs/cq/core/content/login.html

 

When I look into the configuration in the Apache Sling Authentication Service, I could see the AllowAnonymouAccess option is being checked. Also I tried to configure the AuthenticationRequirements property to

-/apps/myvanity/forwardvanity to allow this url anonymous access explicitly. After the configuration I could even see that my entry got added in the Authenticator tab.

 

Authentication Requirement Configuration
PathAuthentication RequiredDefining Service (Description or ID)
/system/sling/logoutNoApache Sling Request Authenticator
/system/sling/loginNoApache Sling Request Authenticator
/system/sling/cqform/defaultloginNoDefault Login Form for CQ Login Selector Authentication Handler
/loginNoDay Communique LoginServlet
/libs/cq/core/content/loginNoDay CQ Login Selector Authentication Handler
/bin/loginNoDay Communique LoginServlet
/apps/myvanity/forwardvanityNoApache Sling Request Authenticator
/apps/myvanity/forwardvanityNoApache Sling Request Authenticator
/NoApache Sling Request Authenticator

 

Could some one please suggest how to allow the anonymous access for that servlet such that my apache webserver would not redirect to login page. Any suggestions/pointers would be appreciated.

 

Best Regards,

Durga

Taking Authorization to the next level: ldap to ldap and data base

$
0
0

Currently we use CQ with LDAP to provide authorization of content in the JCR and it works well for the few ldap groups we have, the ldap groups represent the area of content that we would like to grant/deny access. 

So here is an example:

User “joe” is part of ldap group “About Page” so joe is able to access the About Page

User “john” is not part of the “About Page” ldap group therefore does not have access to the About Page.  (This was a Simple exmaple to explain)

 

Now we want to take this a step further and provide access to JCR content based on attributes of a user (e.g  access based on what organization a user is associated with)  now obviously we can’t  create an ldap group for each organization since we could potentially have thousands of organizations so my questions is:  Has anybody run into a similar situation where they granted/denied access to content based  on user attributes (or some custom attribute) and if so I would be delighted if you could share your experience.

And here is the example:

1. User "joe" is part of two organizations : Foo and FooBar

2. he may login once to the website ( SSO) and switch between the two organizations : Foo and FooBar

3. When he is on the website as a member of Foo he should see only content related to Foo and only conent that he has access to.

4. Now each organization has balance sheets that a user may or may not have access to

5. Joe is allowed to see balance sheet for Foo but not for FooBar

6. So when Joe logs in and switches to Foo he can see the balance sheet page/component

7. However when Joe switches to organization FooBar he is denied access to balance sheet.

 

My thoughts:

1. Create ldap groups for protected content areas

2. Add joe to ldap group "balanceSheet"

3. have a table in the Database with three columns | user   | ldap group | Organization|

4. Look into the table to determine if user has access to the content by looking at the ldap group they elong to and the associated organization.

 

Question:

How can CQ be configured/modified to look at the cookie to figure out what organization the user is representing and then going to the DB table and figure out whether the user should be allowed to access the content.

 

 

Would appreciate any insight

 

Thanks

/libs/cq 404 error

$
0
0

I am getting a 404 for my pages when trying to download the userinfo.json and dict.en.json from /libs/cq folder.  What causes those two files to be included?

SSO and LDAP working together

$
0
0

Hello everyone!


I'm currently running CQ5.5 Update 2.

 

What I am trying to accomplish:

 

So, I have a user logged into a windows remote desktop. He connects to a locally hosted dispatcher instance, which authenticates the user, forwards the header to CQ5, and logs him in.

 

Additionally, when the user logs in, CQ5 will ask an Active Directory instance for the SSO user's information. If he does not yet exist, he will be created with the appropriate attributes, and logged in.

 

 

What I have been able to accomplish

 

Currently I have the two working separately. But, if I have both enabled neither work.

 

So, if I have only the LDAP configuration enabled, I can enter the user's common name, and it will import him. (Basic LDAP works)

 

If I have the user already created, and have my SSO configuration enabled, it will allow him to log on. (Basic SSO works)

 

But, if he does not yet exist, it gives me the following error: (When trying to log in VIA SSO, CQ5 will not request credentials / user information through LDAP)

 

 

22.10.2012 09:53:21.329 *INFO* [10.110.41.162 [1350917601328] GET /libs/cq/core/content/login.html?resource=%2F&$$login$$=%24%24login%24%24&j_reason=User+n ame+and+password+do+not+match HTTP/1.1] org.apache.sling.auth.core.impl.SlingAuthenticator handleLoginFailure: Unable to authenticate XXX: LoginModule ignored Credentials

 

22.10.2012 09:53:21.329 *ERROR* [10.110.41.162 [1350917601328] GET /libs/cq/core/content/login.html?resource=%2F&$$login$$=%24%24login%24%24&j_reason=User+n ame+and+password+do+not+match HTTP/1.1] com.day.cq.auth.impl.LoginSelectorHandler requestCredentials: Abort login due to apparent misconfiguration.

22.10.2012 09:53:21.329 *ERROR* [10.110.41.162 [1350917601328] GET /libs/cq/core/content/login.html?resource=%2F&$$login$$=%24%24login%24%24&j_reason=User+n ame+and+password+do+not+match HTTP/1.1] com.day.cq.auth.impl.LoginSelectorHandler requestCredentials: Possible reasons: login page not existing or not accessible

 

Any help would be tremendous. I'll reply to this post with my configuration files.


Form submission flow?

$
0
0

Hi guys

 

          I am new to CQ5 and is analysing the working of iddferent components .While analysing form component I could find dat that while loading the form the call goes to the dofilter method of formhandlingservlet. Can anybody help me on how the call goes. From where it is goin to the doFilter method. ?

 

 

Thanks

Veena

Dispatcher Flush Agent on Publisher not invalidating cache

$
0
0

Hi all,

 

We're having an issue with invalidating that cache apon activation/replication of content, but only from the Publish flush agent.  I've copied the default flush agent on the Publish instance, updated the URI to point to my dispatcher, and enabled the agent.  Clicking Test Connection shows a successful connection to the dispatcher.  Also, I can see that the .stat file has been created at the web root on the dispatcher (I'm not specifying a specific statsfile or a statsfile level in the dispatcher.any).  When I change a setting in the publisher flush agent and save it, or stop and start it, the .stat file is updated.  So I know the Publisher is able to correctly reach the dispatcher and pass along the invalidate message to update the .stat file.

 

When I replicate a node from Author the Publisher, I see the following in the Publisher error.log:

 

22.05.2013 04:23:23.241 *INFO* [ObservationManager] com.day.cq.wcm.core.impl.components.ComponentCacheImpl Detecting component change. invalidating cache.

22.05.2013 04:23:23.245 *INFO* [10.20.30.40 [1369196603165] POST /bin/receive HTTP/1.1] com.day.cq.replication.impl.content.durbo.DurboImporter imported content in 79ms for durbo request on path: /apps/my-project/components/page/base/footer.jsp

22.05.2013 04:23:23.245 *INFO* [10.20.30.40 [1369196603165] POST /bin/receive HTTP/1.1] com.day.cq.replication.impl.servlets.ReplicationServlet Processed replication action in 79ms: ACTIVATE of /apps/my-project/components/page/base/footer.jsp

 

However when I check the dispatcher, I see that the .stat file has not had its timestamp updated.  I've also noticed that when I change the node and replicate it, the 'Detecting component change. invalidating cache.' log line above does not always appear in the log file - it appears only sometimes with the other 2 long lines.  This part seems random.

 

In my testing, I've also created a Dispatcher Flush agent on the Author instance (after disabling the one on the Publish instance), and 100% of the time when I replicate the /apps/my-project/components/page/base/footer.jsp to the Publisher, the Author flush agent correctly updates the .stat file timestamp.  So I'm 100% confident that the file I'm editing is able to be cached, and that changing and replicating it does update the .stat file.

 

Just never from the Publish flush agent!

 

I've tried all combinations of trigger settings on the Publish agent to no avail.  I've also inspected the properties of the agent in CRXDE Lite, and I can't see anything that the Author agent has and the publish agent is missing!

 

I've also tried creating the Publish agent by copying the default one from the tools console and updating the URI, creating a Publish agent on the Author and replicating it to the Publisher, and also creating it directly on the Publisher via curl calls - all of these methods seem to create a valid dispatcher flush agent on the Publisher that successfully connects to the dispatcher (confirmed by a successful 'Test Connection' click after creating), but none of them ever update the .stat file on the dispatcher after content replication.

 

Any thoughts here on where else to look would be greatly appreciated!!

 

Cheers,

K

How the values are stored in CRX after form submission?

$
0
0

Hi

 

     I have analysed the flow of form submission. I could find out how the node is created under /content/usergenerated/...... . But the thing which i am not able to understand is , after creating all nodes, how they are storing different form fields as the property of created node. I tried a lot but couldnt find from where the call to store the form values in CRX is coming. Any help would be highly appreciable...

 

 

Thanks and regards

 

Veena

Multiple images in page properties

$
0
0

I need to have more images in the page properties, other than the default  "Image". I need this for carousel component.

I added another image widget using this link :

https://helpx.adobe.com/cq/kb/CQ5PageProps.html

 

The problem is that when I add another image widget, even the default on stops working.

Also, to reuse the default carousel, I'd need to fetch the image using something like:

 

Resource r = page.getContentResource("image1");

 

The JCR properties I've used in the new widget are these:

image-JCR-properties.jpg

I can see two images saved in the page JCR properties in CRX but the carousel is unable to fetch it .

Can someone please help me where I am going wrong ?

Tab control component CQ5.5: Move of tabs does not move its containers (text, links, etc.)

$
0
0

Hi All,

 

There is a deftect in the out of box component "tabctrl" in CQ5.5.

 

I've followed the following steps to use tabctrl component:

 

  1. I have created three tabs (tab1, tab2, tab3) using this component.
  2. Then I've put some contents by using other components under each tab.
  3. Now, I went into the edit mode of the tabctrl compnent and changed the order of the tabs. e.g tab2, tab1, tab3.
  4. After changing the order of the tabs, the container of each tab must be ordered accordingly. But the order of the corresponding containers do not change.

 

The problem is there is no association between tab and its parsys.

 

For changing the position of the containers as per the order of the tabs, I had to cut and paste the contents manually.

 

Any idea or solution around this defect.

 

Thanks,

Ashwani Sahni

Fail to access CRX with JcrUtils.getRepository

$
0
0

I just started with CQ5/CRX/JCR, so I beg your pardon if asking silly questions.

I'm running a CQ5 Standalone Server (CQ_5_5_Quickstart.jar) on my Windows 7 and am fine with accessing it with my browser and the URL "http://localhost:4502".

Now I try to access it via a Java-client using the JcrUtils.getRepository-method, as described in http://dev.day.com/docs/en/crx/current/developing/accessing_the_crx.html.

But this fails with message:

javax.jcr.RepositoryException: Unable to access a repository with the following settings:

    org.apache.jackrabbit.repository.uri: http://localhost:4502/crx/server

The following RepositoryFactory classes were consulted:

    org.apache.jackrabbit.commons.JndiRepositoryFactory: declined

Perhaps the repository you are trying to access is not available at the moment.

at org.apache.jackrabbit.commons.JcrUtils.getRepository(JcrUtils.java:199)

at org.apache.jackrabbit.commons.JcrUtils.getRepository(JcrUtils.java:239)

at AccessJCR.connectJcrUtils2(AccessJCR.java:32)

at AccessJCR.main(AccessJCR.java:16)

 

I'm not sure about the used URL; I just took it from cited webpage. There is said: "The default server's endpoint URL is http://host:port/crx/server. Make sure you adapt the client-side connection URL in case of customized server installation.".

I didn't customize anything so this should be ok. I will attach the complete Code, hopefully you can give some hints.

 

Regards,

Ulrich

 

[code]

import java.util.*;

import javax.jcr.*;

public class AccessJCR {

      public AccessJCR() {}

 

      public static void main(String[] args) {

           AccessJCR ajcr = new AccessJCR();

           try {

                ajcr.connect();

           }

           catch (Exception ce) {

                ce.printStackTrace();

            }

        }

 

      private void connect() throws Exception {

           //Create a connection to the Day CQ repository running on local host

           Repository repository = org.apache.jackrabbit.commons.JcrUtils.getRepository("http://localhost:4502/crx/server");

        }

}

[/code]

Search query not able to find node under a specific site structure (eg. 2013/05)?

$
0
0

Hi,

    We are saving our data on a node under year/month site structure, eg. (2013/05/node1) but when we search for the data using a query in a custom workflow., it does not fetch any results.The query being fired is something like :

   SELECT * FROM [nt:base] AS s WHERE ISDESCENDANTNODE([/content/hm/NewsroomSection/en/NewsRoom/NewsroomDetails/2013/05/node1]) .

 

   On trying to run this query directly in crxde, it shows no result. But when we change the site structure to 2013/5/node1, it is able to fetch results.

   I am not sure if the problem is because of the '0' digit in the month in site structure (2013/05).

   Please provide your input if any of you have come across something like this before ..

Thanks

Abhishek


Cannot Debug CQ 5.6 in MyEclipse

$
0
0

When I try to connect the debugger I get an error "Failed to connect to remote VM. Connection refused". I have tried in both eclipse and MyEclipse. It used to work but I cant figure out what has changed. I am stumped.

 

More details:

 

I have my Remote Java Application host & port set to localhost and 30303 respectively. The correct project is set.

 

I am initiating a debug from the windows command line using:

 

java -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=30303 -XX:+HeapDumpOnOutOfMemoryError -XX:MaxPermSize=512M -Xmx1280m -Dorg.apache.sling.commons.log.level=INFO -jar cq5-author-p4502.jar -p 4502 -verbose -nofork

 

I get the following back:

 

Listening for transport dt_socket at address: 30303

Loading quickstart properties: default

Loading quickstart properties: instance

Low-memory action set to fork

Using 64bit VM settings, min.heap=1024MB, min permgen=256MB, default fork argume

nts=[-Xmx1024m, -XX:MaxPermSize=256m]

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

The JVM MBean:PS Perm Gen reports a maximum size of 512 MB, meets our expectatio

n of 256 MB +/- 20

Setting properties from filename 'C:/adobe/CQ5.6/author/cq5-author-p4502.jar'

Option '-quickstart.server.port' set to '4502' from filename cq5-author-p4502.ja

r

Verbose mode - stdout/err not redirected to files, and stdin not closedResourceP

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

quickstart.build=0.0.0.0_0_0_5_6_.20130129

quickstartdir:C:\adobe\CQ5.6\author\.\crx-quickstart

DiskSpaceUtil.getMaxOpenFiles() reports a maximum of 2147483647 open files, meet

s 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

Build number not changed, software update not needed

UpgradeUtil.handleInstallAndUpgrade has mode RESTART

Upgrade: no files to restore from pre-upgrade backup

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

Sling Home: C:\adobe\CQ5.6\author\.\crx-quickstart

Launchpad Home: launchpad

Sling Properties: conf/sling.properties

Application arguments: {sling.launchpad=launchpad, sling.home=C:\adobe\CQ5.6\aut

hor\.\crx-quickstart, sling.properties=conf/sling.properties, org.osgi.service.h

ttp.port=4502}

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

Quickstart application directory: C:\adobe\CQ5.6\author\.\crx-quickstart/app

App classpath:

- file:/C:/adobe/CQ5.6/author/./crx-quickstart/app/cq-quickstart-5.6.0-standalo

ne.jar

Main class: org.apache.sling.launchpad.app.Main

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

16.07.2013 18:00:46.079 *INFO * [main] Setting sling.home=C:\adobe\CQ5.6\author\

.\crx-quickstart (command line)

16.07.2013 18:00:46.081 *INFO * [main] Starting Apache Sling in C:\adobe\CQ5.6\a

uthor\.\crx-quickstart

16.07.2013 18:00:46.088 *INFO * [main] Checking launcher JAR in folder C:\adobe\

CQ5.6\author\.\crx-quickstart\launchpad

16.07.2013 18:00:46.098 *INFO * [main] Existing launcher is up to date, using it

: 2.4.1.R1416835 (org.apache.sling.launchpad.base.jar)

16.07.2013 18:00:46.102 *INFO * [main] Loading launcher class org.apache.sling.l

aunchpad.base.app.MainDelegate from org.apache.sling.launchpad.base.jar

16.07.2013 18:00:46.112 *INFO * [main] Setting sling.launchpad=C:\adobe\CQ5.6\au

thor\.\crx-quickstart\launchpad

16.07.2013 18:00:46.113 *INFO * [main] Setting sling.home=C:\adobe\CQ5.6\author\

.\crx-quickstart

16.07.2013 18:00:46.114 *INFO * [main] Setting sling.properties=conf/sling.prope

rties

16.07.2013 18:00:46.116 *INFO * [main] Setting org.osgi.service.http.port=4502

16.07.2013 18:00:46.117 *INFO * [main] Starting launcher ...

16.07.2013 18:00:46.118 *INFO * [main] HTTP server port: 4502

Dispatcher permission error

$
0
0

Hi,

 

I've just installed Dispatcher on a Linux install with Apache.

 

It's attempting to connect to the renderer (a local Publish instance) and getting permission denied.  There's nothing obvious to suggest that it can't hit that IP address / port locally.

 

Is there anything else that would prevent it from connecting to the Publish instance??

 

 

[Thu Jul 05 15:30:39 2012] [I] [20332(47748372177664)] "GET /content/vollycoreproduct/en/login.html" 502 - 4008ms

[Thu Jul 05 15:30:39 2012] [D] [20333(47748372177664)] Found farm website for 192.168.99.174

[Thu Jul 05 15:30:39 2012] [D] [20333(47748372177664)] checking [/favicon.ico]

[Thu Jul 05 15:30:39 2012] [D] [20333(47748372177664)] no cache due to authorization header.

[Thu Jul 05 15:30:39 2012] [D] [20333(47748372177664)] cache-action for [/favicon.ico]: NONE

[Thu Jul 05 15:30:39 2012] [E] [20333(47748372177664)] Unable to connect to render rend01 (127.0.0.1:4503): Permission denied

[Thu Jul 05 15:30:39 2012] [E] [20333(47748372177664)] no valid render found

 

Usually if the renderer is unavailable then Apache won't even start, so I'm not sure why it only fails on request.

 

The error message in the browser is a 503 - Bad Gateway

 

The proxy server received an invalid response from an upstream server.


Apache/2.2.3 (CentOS) Server at 192.168.99.174 Port 80

path for dispatcher.any file?

$
0
0

Hello,

Where we can find path for dispatcher.any, I want to make a changes as bellow for optimizing CRXDELight performance.

 

/0080 { /type "deny"/glob "GET *.query*"}

 

Regards,

Satish

Webservice response encoding issue in CQ5

$
0
0

Hi,

 

We have implemented a RESTful webservice client in CQ5 using Apache Jersey. We have run into an encoding issue in the webservice response for special characters.

Special characters in Swedish & German languages (umlauts etc) do not show up correctly. The returned xml is being utf-8 decoded.

In Eclipse console, running as a standalone java application, I can see the response coming fine. The problem comes when the same client is bundled and deployed to CQ5. The response now contains '?' for the special characters.

 

Does anybody have any idea how this issue could be resolved?

Is this a CQ5 server encoding issue?

Thanks

Akamai integration

$
0
0

We have our public website that runs on CQ5.5. We want to do Akamai integration for the published content.

 

1. How is Akamai integration done in CQ5.5?

 

2. We want to akamai both the content and dam assets. Is the akamai integration different with content versus assets?

 

3. With content, the content on site is frequently updated and activated. That would invalidate the dispatcher cache everytime the change happen. How does Akamai rebuild its cache everytime the dispatcher cache is invalidated?

Viewing all 12476 articles
Browse latest View live


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