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

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


javax.jcr.nodetype.ConstraintViolationException : Node is protected

$
0
0

Hi

 

    I have an nt:unstructured node to which i am writing some properties through java code. The properties are getting written but in my error log i am getting

 

javax.jcr.nodetype.ConstraintViolationException: Unable to perform operation. Node is protected.

 

       this error message.  Can anyone tell me why it happens and how to avoid this error message

 

 

 

Thanks and regards

 

Veena

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?

Event listener when a particular field value changes in dialog

$
0
0

Hi there,  Issue is that I need to change a jcr property when a specific field value is changed in dialog. Since all the fileds are modified / rewriten in jcr when the dialog is saved, i can not identify the modification on a particular field.

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.

servletengine Unable to send back last chunk: Software caused connection abort: socket write error

$
0
0

I have created a bundle for the class com.xxx.cq.wcm.foundation.profile.impl.TnailImages from the foundation file com.day.cq.wcm.foundation.profile.impl.ProfileImages.

Here are the changes I made ot this class

1. width and height for the default foundation class ProfileImages to have our own default width and height in TnailImages.

2. selectors changed to our own like

* @scr.property name="sling.servlet.selectors" values.0="adjust"

*                                              values.1="adjust.small"

 

3.   Variable changed to  private static final String THUMBNAIL = "small";

4. Metatype annotation won't compile for CQ5.5  I changed this  * @scr.component metatype="false"

       to

     * @Component(immediate = true)

 

This bundle compiled successfully and I see it in OSGi felix console, it is in start mode. Even then I did a restart of this bundle as well as whole CQ5.

When I call an image using the following tag

<img  alt="" src="/content/dam/geometrixx/portraits/scott_reynolds.jpg.adjust.small.jpg">

there are no spases anywhere

the servlet ThumbNailImages is not being call, I see the following error in error.log

servletengine Unable to send back last chunk: Software caused connection abort: socket write error

this image is not being displayed in the page, firebug displays failed to load URL

Default img works fine

<img  alt="" src="/content/dam/geometrixx/portraits/scott_reynolds.jpg.prof.thumbnail.jpg">

Class com.day.cq.wcm.foundation.profile.impl.ProfileImages is available in

/libs/foundation/src/impl/src/main/java/com/day/cq/wcm/foundation/profile/impl/ProfileImag es.java

Here are my annotations * @Component(immediate = true) * @scr.service * @scr.property name="sling.servlet.resourceTypes" value="nt:file" * @scr.property name="sling.servlet.extensions" values.0="res" *                          values.1="jpg" *                          values.2="png" *                          values.3="gif" * @scr.property name="sling.servlet.selectors" values.0="adjust" *                                              values.1="adjust.small" */ It seems that this servlet is not being called, when I invoke http://xyz.com:4502/content/dam/geometrixx/portraits/scott_reynolds.jpg.adjust.small.jpg I am getting 404 Cannot serve request to /content/dam/geometrixx/portraits/scott_reynolds.jpg.adjust.small.jpg in org.apache.sling.servlets.get.DefaultGetServlet

3 (2013-05-20 11:02:40) TIMER_END{2,resolveServlet(JcrNodeResource, type=dam:Asset, superType=null, path=/content/dam/geometrixx/portraits/scott_reynolds.jpg)} Using servlet com.day.cq.dam.core.impl.servlet.BinaryProviderServlet 3 (2013-05-20 11:02:40) TIMER_END{2,ServletResolution} URI=/content/dam/geometrixx/portraits/scott_reynolds.jpg.adjust.small.jpg handled by Servlet=com.day.cq.dam.core.impl.servlet.BinaryProviderServlet

It seems that my Servlet TnailImages is not being called, it is always going to default servlet.

failed while import excel 2007 [xlsx]

$
0
0

Hi All,

 

A strange thing, I import the 'xls' and 'csv' in my code is well done, but for the 'XLSX' throw the following exception,

I have already check the 'com.adobe.granite.poi-1.0.2.jar', it miss the org.w3c.dom.Node (seems exist in jre/rt.jar)

environment :

    jdk 1.6.0_37

    CQ 5.5

 

 

Could you help ??

 

 

 

org.apache.poi.POIXMLException: java.lang.reflect.InvocationTargetException

          at org.apache.poi.xssf.usermodel.XSSFFactory.createDocumentPart(XSSFFactory.java:62)

          at org.apache.poi.POIXMLDocumentPart.read(POIXMLDocumentPart.java:414)

          at org.apache.poi.POIXMLDocument.load(POIXMLDocument.java:155)

          at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:181)

          at hps.hec.bulky.XlsxAnalysis.readEvents(hps.hec.bulky.XlsxAnalysis.java:267)

          at hps.hec.bulky.EventAnalysis.readEvents(hps.hec.bulky.EventAnalysis.java:64)

          at hps.hec.servlet.ImportEventServlet.doPost(hps.hec.servlet.ImportEventServlet.java:73)

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

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

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

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

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

          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.core.impl.warp.TimeWarpFilter.doFilter(TimeWarpFilter.java:106)

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

          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.wcm.foundation.forms.impl.FormsHandlingServlet.doFilter(FormsHandlingServlet.j ava:220)

          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 org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:117)

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

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

          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.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:153)

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

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

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

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

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

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

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

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

Caused by: java.lang.reflect.InvocationTargetException

          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

          at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

          at java.lang.reflect.Constructor.newInstance(Unknown Source)

          at org.apache.poi.xssf.usermodel.XSSFFactory.createDocumentPart(XSSFFactory.java:60)

          ... 76 more

Caused by: java.lang.NoClassDefFoundError

          at org.apache.xmlbeans.XmlBeans.class$(XmlBeans.java:43)

          at org.apache.xmlbeans.XmlBeans.buildNodeMethod(XmlBeans.java:195)

          at org.apache.xmlbeans.XmlBeans.buildNodeToCursorMethod(XmlBeans.java:232)

          at org.apache.xmlbeans.XmlBeans.<clinit>(XmlBeans.java:131)

          at org.openxmlformats.schemas.drawingml.x2006.main.ThemeDocument$Factory.parse(Unknown Source)

          at org.apache.poi.xssf.model.ThemesTable.<init>(ThemesTable.java:39)

          ... 81 more

Caused by: java.lang.ClassNotFoundException: org.w3c.dom.Node not found by com.adobe.granite.poi [250]

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

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

          at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768)

          at java.lang.ClassLoader.loadClass(Unknown Source)

          at java.lang.Class.forName0(Native Method)

          at java.lang.Class.forName(Unknown Source)

          ... 87 more

Inserting fragments in CQ AEM 5.6

$
0
0

Hello all,

 

Is there a way to retrieve a fragment from apache docroot and place it in CQ,

probably header as a fragment to be inserted to my site developed in CQ5.6

 

Regards,

NZ


AuthenticationSupport service missing after building index.

$
0
0

I got an error on browser console after starting the CQ Author instance saying that "Service Unavailable AuthenticationSupport service missing. Cannot authenticate request. "

 

I just started all the bundles and also rebuit the index but still am getting the same error message.

 

When i logged in to system/console(OSGI Console) One thing i just noticed Authenticator tab is missing.

 

Help out to solve this issue

 

Thanks in Advance...

 

Mahesh

Forms dropdown selection changed

$
0
0

hi 

We are using CQ Forms which has multiple dropdowns. On Selection of Country, the States should populate, on selection of state, city should populate. All the values in the 3 dropdowns are populated from external database.

 

How can we call Jquery Ajax call to servlet to populate the Country dropdown on page load and hencforth on selection of each dropdown making Ajax call.

 

Can the selection xtype "options"  be linked to a servlet returning JSON array - like /apps/example/myservelt.json which returns the list of Countries on Load of the form?

Similarly rather calling a javascript function on selectionchanged event of Country dropdown can we call a servlet returning JSON list of States?

 

Any pointers would be helpful

redirect from one jsp to another jsp

$
0
0

Hi,

I am very new to CQ5 and have a query regarding it. Suppose I want to make a simple login form where I am two text fields.. I want to perform some validations on these text fields and want to redirect to some aonther jsp/html. How to achieve this small requirement in cq5.

 

Please explain the process in detail as I am very new to the env and doing some hands on the env.

 

Thanks.,

Vanity URLs in multiple domains with one CQ5 instance

$
0
0

I have two websites which are in different domains but use the same CQ5 author instance. How can I setup the same Vanity URLs for both websites.

For example, one.com/shorturl and two.com/shorturl. I tried it with /shorturl in Vanity URL for both page templates, but only one matching is always successful.

Replicating

$
0
0

do you know why i got "no such agent: publish" when i click on view log after I do replication?

Agent is not active. Replicating to http://localhost:4503/bin/receive

Queue is not active

 

Thanks,

 

Jenny

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 ?

CQ 5.4 Felix Console Not Accessible

$
0
0

Hi,

I am unable to access my author instance -felix console and am getting the following error while trying to access it

 

org.apache.sling.servlets.resolver.internal.SlingServletResolver Original error null

 

 

CRX has started and i can access the content repository. However, The felix consoles along with the default URL resolution are not working

 

For example, Inorder to get the login page I have to explicitly type the full url of localhost:4502/libs/cq/core/content/login.html

 

Any suggestions??

 

Thanks,

 

Ravi


CQ5 Response Encoding

$
0
0

Hi Folks,

 

Does any one know whats default character encoding used by CQ5? (UTF-8, ISO-8859-1 etc)

 

Does it depend on whats the encoding used when the file was stored, if so whats the default encoding CRXDE uses to store file?

/etc/crxde/profiles/default/classpath.xml.xslt has following setting.. does it means anything in this case?

<xsl:output method="xml" encoding="UTF-8" indent="yes"/>

 

Thanks an in advance!

 

- Adnan

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

Radio Buttons

$
0
0

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

package manager resolves to incorrect address on welcome screen

$
0
0

I have an installed CQ5 instance that seems to be incorrectly resolving /crx/packmgr/ to /libs/cq/core/content/welcome/features/packages.html on the /libs/cq/core/content/welcome.html screen. I have compared this to the default installs of CQ5 admin, and it seems that indeed /crx/packmgr/ should be the link.

 

When /libs/cq/core/content/welcome/features/packages.html is clicked, the url resolves to /crx/packmgr.html

 

I looked in /crx/explorer at /libs/crx/core/content/welcome/core/crx/features/packages and /libs/cq/core/content/welcome/features/packages, both having the sling:target set to /crx/packmgr/ (correct)

 

If I change the /libs/cq/core/content/welcome/features/packages/./sling:target property to /crx/somethingelse this url appears as the hover over.

 

If I directly type in localhost:4502/crx/packmgr/ I get the package manager

 

So obviously something is hijacking /crx/packmgr/ on the welcome.html screen, and incorrect resolving to /libs/cq/core/content/welcome/features/packages.html

 

I would greatly appreciate it if someone could provide me with a clue on how to further address this issue.

Multifield within multifield?

$
0
0

Hi there,

 

I was browsing the forums and saw this thread about building a multfield within a multifield:

http://forums.adobe.com/message/4453594#4453594

 

It suggested several other alternatives instead of the nested multifield approach, but I just wanted to confirm whether or not CQ5 supports nested multifields or doesn't. I have a top navigation that has topics and then sub-topics that are displayed when the user rolls over an individual topic. Therefore, what I am trying to create is a custom xtype that has a pathfield dialog and a multifield of pathfield dialogs (because each topic could be associated with a variable number of sub-topics). I then need a multifield of this xtype because there could be multiple topics associated with a given section of the top navigation.

 

I'm happy to provide more detail if this description is confusing. Thanks!

Viewing all 12476 articles
Browse latest View live