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

OSGI Bundle will not start

$
0
0

Hi Everyone,

 

I hope someone can help as my OSGI bundle will not and im not sure what is wrong.

 

I am importing a package using maven into CQ however my bundle does not start.  The OSGi bundle in felix is showing the following stack trace:

 

Imported Packagescom.day.cq.commons from com.day.cq.cq-commons (178)

com.siteworx.cq5.ooyala.client from com.siteworx.cq5.ooyala.core (301)

com.siteworx.cq5.ooyala.client.request from com.siteworx.cq5.ooyala.core (301)

com.siteworx.cq5.ooyala.service from com.siteworx.cq5.ooyala.core (301)

javax.activation from com.day.commons.osgi.wrapper.mail (101)

javax.imageio from org.apache.felix.framework (0)

javax.imageio.spi from org.apache.felix.framework (0)

javax.imageio.stream from org.apache.felix.framework (0)

javax.jcr,version=2.0 from org.apache.sling.jcr.jcr-wrapper (71)

javax.mail from com.day.commons.osgi.wrapper.mail (101)

javax.mail.internet from com.day.commons.osgi.wrapper.mail (101)

javax.mail.util from com.day.commons.osgi.wrapper.mail (101)

javax.net.ssl from org.apache.felix.framework (0)

javax.servlet from cqse-httpservice (22)

javax.xml.bind from org.apache.felix.framework (0)

javax.xml.bind.annotation from org.apache.felix.framework (0)

javax.xml.parsers from org.apache.felix.framework (0)

javax.xml.stream from org.apache.felix.framework (0)

javax.xml.transform from org.apache.felix.framework (0)

javax.xml.transform.dom from org.apache.felix.framework (0)

javax.xml.transform.sax from org.apache.felix.framework (0)

javax.xml.transform.stream from org.apache.felix.framework (0)

javax.xml.validation from org.apache.felix.framework (0)

org.apache.commons.httpclient from com.day.commons.osgi.wrapper.commons-httpclient (100)

org.apache.commons.httpclient.methods from com.day.commons.osgi.wrapper.commons-httpclient (100)

org.apache.commons.httpclient.params from com.day.commons.osgi.wrapper.commons-httpclient (100)

org.apache.sling.api,version=2.1 from org.apache.sling.api (115)

org.apache.sling.api.resource,version=2.1 from org.apache.sling.api (115)

org.apache.sling.api.servlets,version=2.1 from org.apache.sling.api (115)

org.apache.sling.commons.json,version=2.0 from org.apache.sling.commons.json (122)

org.joda.convert -- Cannot be resolved

org.osgi.framework,version=1.5 from org.apache.felix.framework (0)

org.osgi.service.component,version=1.1 from org.apache.felix.scr (44)

org.osgi.service.event,version=1.2 from org.apache.felix.eventadmin (40)

org.slf4j,version=1.6 from slf4j.api (12)

org.w3c.dom from org.apache.felix.framework (0)

org.xml.sax from org.apache.felix.framework (0)

org.xml.sax.helpers from org.apache.felix.framework (0)

 

When I try to start the bundle I see the followingerror in the error.log

 

12.07.2013 17:25:46.105 *ERROR* [0:0:0:0:0:0:0:1 [1373646346099] POST /system/console/bundles/301 HTTP/1.1] cqse-httpservice %bundles.pluginTitle: Cannot start (org.osgi.framework.BundleException: Unresolved constraint in bundle com.siteworx.cq5.ooyala.core [301]: Unable to resolve 301.0: missing requirement [301.0] osgi.wiring.package; (osgi.wiring.package=org.joda.convert)) org.osgi.framework.BundleException: Unresolved constraint in bundle com.siteworx.cq5.ooyala.core [301]: Unable to resolve 301.0: missing requirement [301.0] osgi.wiring.package; (osgi.wiring.package=org.joda.convert)

    at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3896)

    at org.apache.felix.framework.Felix.startBundle(Felix.java:1938)

    at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:947)

    at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:934)

    at org.apache.felix.webconsole.internal.core.BundlesServlet.doPost(BundlesServlet.java:339)

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

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

    at org.apache.felix.webconsole.internal.servlet.OsgiManager.service(OsgiManager.java:493)

    at org.apache.felix.webconsole.internal.servlet.OsgiManager.service(OsgiManager.java:418)

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

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

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

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

 

So from what I can gather there is a missing dependacy of joda.convert.  I checked the pom file and I have

 

<dependency>

     <groupId>com.day.commons.osgi.wrapper</groupId>

      <artifactId>com.day.commons.osgi.wrapper.joda-time</artifactId>

      <version>1.6-0002</version>

<scope>provided</scope>

</dependency>

 

I presume this is the dependancy that has the joda stuff required.

 

Can anyone herlp me trouble shoot this please?  Im new to OSGI and really would like to understand what is going on here.

 

Thanks


Vaultclipse plugin

$
0
0

Has anyone got vaultclipse plugin working for Eclipse in windows machine.  I have it working just fine in Mac.

In windows, same configuration gives me filenotfound error when "import".  It looks like it exports in different folder and tries to import from different folder.

 

Any thoughts?

CQ5.5 ecommerce integration

cafebabe-cafe-babe-cafe-babecafebabe

$
0
0

I'm trying to create some groups and permissions to lock down certain parts of CQ5.5 to particular users.  For the most part everything is ok, but I seem to keep hitting a barrier with the stuttering barista.

 

When I create a user, they have no permissions by default (aside from some /home ones if I understand correctly).  When I log in with this user, I get:

No resource found

Cannot serve request to /libs/cq/core/content/welcome.html in /libs/sling/servlet/errorhandler/404.jsp

 

All good, expected that.

 

If I add read access to the root node for this user, after logging in everything looks ok as if I've logged in as an admin.  Permissions shown here:

 

image1.png

 

But if I remove root node read access, and then give every sub node underneath root read access

 

image2.png

and log in after this, the RHS menu errors with :

image3.png

 

The error.log gives:

 

14.02.2013 01:43:22.885 *ERROR* [123.456.789.123 [1360766602856] GET /libs/cq/core/content/welcome.html HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException org.apache.sling.api.SlingException: javax.servlet.ServletException: javax.jcr.AccessDeniedException: cannot read item cafebabe-cafe-babe-cafe-babecafebabe

 

The only surface difference I see between the two is the lack of /bin having read permission.  When I try to add read permisson to /bin I get a popup saying

 

No modifiable ACL at /bin

 

Also, there's asterisks next to all of the selected nodes, which were not present when selecting the root node.  The CQ5 docs state the following:

 

For an action at a given path:

 

* (asterisk)There is at least one local entry (either effective or ineffective). These wildcard ACLs are defined in CRX.
! (exclamation mark)There is at least one entry that currently has no effect.

 

When you hover over the asterisk or exclamation mark, a tooltip provides more details about the declared entries. The tooltip is split into two parts:

 

Upper part

Lists the effective entries.

Lower partLists the noneffective entries that may have an effect somewhere else in the tree (as indicated by a special attribute present with the corresponding ACE limiting the scope of the entry). Alternatively, this is an entry whose effect has been revoked by another entry defined at the given path or at an ancestor node.

 

When I hover over the asterisks, I get the message

 

Allowed for

testuser (allow)

 

To me, this means everything is allowed.  The docs also state that permissions are inherited.

 

So I guess my questions are:

 

  1. Why doesn't selecting all nodes directly under the root node yield the same results as selecting the root node itself?
  2. Why can't I select the /bin node manually, but it can be selected by default when selecting the root node?
  3. Is there a way to see down the tree structure what nodes are selected or not without manually opening every branch one by one?
  4. Where is cafebabe-cafe-babe-cafe-babecafebabe and what permissions do I need to access this?

 

I think I have more questions, but I'm tired.  Need coffee.  Where's cafebabe...?

 

K

Import content into CQ5.

$
0
0

Hello,

 

I needed to push data from a legacy system into the CQ content

repository.

I have about 10,000 products/data in a legacy system, and don’t want

to manually create each product page in CQ5.

 

I wanted to write a utility/program/service that will read data from

my legacy system(database or xls) and create the product nodes

automatically in CQ.

Each product node created in the JCR repository should have a specific

structure. Example each product node(cq:Page) should contain two

cq:text nodes for the tile and description respectively.

 

What would be the best way to do this!

Please help

Karan

CQ5.5 Installation issues on Mac

$
0
0

Hi.

 

I'm having trouble installing and running CQ5.5 on my Mac (iOS 10.6.8, Java version 1.6.0_33).  During the installation, the following errors occur in the error.log:

 

 

07.01.2013 14:55:14.734 *ERROR* [FelixStartLevel] com.day.crx.sling.server [com.day.crx.sling.server.impl.jmx.ManagedRepository] The activate method has thrown an exception (javax.jcr.RepositoryException: The repository home /Volumes/EXCHANGE/Workspace/CQ5/author/crx-quickstart/repository appears to be in use since the file named .lock is already locked by the current process.) javax.jcr.RepositoryException: The repository home /Volumes/EXCHANGE/Workspace/CQ5/author/crx-quickstart/repository appears to be in use since the file named .lock is already locked by the current process.

    at org.apache.jackrabbit.core.util.RepositoryLock.tryLock(RepositoryLock.java:159)

    at org.apache.jackrabbit.core.util.RepositoryLock.acquire(RepositoryLock.java:138)

    at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:247)

    at com.day.crx.core.CRXRepositoryImpl.<init>(CRXRepositoryImpl.java:283)

    at com.day.crx.core.CRXRepositoryImpl.create(CRXRepositoryImpl.java:258)

    at com.day.crx.core.CRXRepositoryImpl.create(CRXRepositoryImpl.java:243)

    at com.day.crx.sling.server.impl.jmx.ManagedRepository.activate(ManagedRepository.java:164)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:227)

    at org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:38)

    at org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:591)

    at org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:472)

    at org.apache.felix.scr.impl.helper.ActivateMethod.invoke(ActivateMethod.java:146)

    at org.apache.felix.scr.impl.manager.ImmediateComponentManager.createImplementationObject(Im mediateComponentManager.java:226)

    at org.apache.felix.scr.impl.manager.ImmediateComponentManager.createComponent(ImmediateComp onentManager.java:118)

    at org.apache.felix.scr.impl.manager.DelayedComponentManager.createRealComponent(DelayedComp onentManager.java:95)

    at org.apache.felix.scr.impl.manager.AbstractComponentManager$Registered.getService(Abstract ComponentManager.java:1296)

    at org.apache.felix.scr.impl.manager.DelayedComponentManager.getService(DelayedComponentMana ger.java:88)

    at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistratio nImpl.java:310)

    at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.jav a:221)

    at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:292)

    at org.apache.felix.framework.Felix.getService(Felix.java:3010)

    at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:329)

    at org.osgi.util.tracker.ServiceTracker.addingService(ServiceTracker.java:442)

    at org.apache.aries.jmx.whiteboard.Activator$MBeanTracker.addingService(Activator.java:101)

    at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:896)

    at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:261)

    at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:233)

    at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:840)

    at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispat cher.java:871)

    at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java :733)

    at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:662 )

    at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3765)

    at org.apache.felix.framework.Felix.registerService(Felix.java:2877)

    at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:251)

    at org.apache.felix.scr.impl.manager.AbstractComponentManager.registerService(AbstractCompon entManager.java:456)

    at org.apache.felix.scr.impl.manager.AbstractComponentManager.registerComponentService(Abstr actComponentManager.java:508)

    at org.apache.felix.scr.impl.manager.AbstractComponentManager$Unsatisfied.activate(AbstractC omponentManager.java:1157)

    at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractCompo nentManager.java:334)

    at org.apache.felix.scr.impl.manager.AbstractComponentManager.enable(AbstractComponentManage r.java:158)

    at org.apache.felix.scr.impl.config.ImmediateComponentHolder.enableComponents(ImmediateCompo nentHolder.java:313)

    at org.apache.felix.scr.impl.BundleComponentActivator.loadDescriptor(BundleComponentActivato r.java:241)

    at org.apache.felix.scr.impl.BundleComponentActivator.initialize(BundleComponentActivator.ja va:147)

    at org.apache.felix.scr.impl.BundleComponentActivator.<init>(BundleComponentActivator.java:1 11)

    at org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:274)

    at org.apache.felix.scr.impl.Activator.bundleChanged(Activator.java:192)

    at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatc her.java:807)

    at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java :729)

    at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:610)

    at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:3754)

    at org.apache.felix.framework.Felix.startBundle(Felix.java:1780)

    at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1156)

    at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:266)

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

07.01.2013 14:55:14.736 *ERROR* [FelixStartLevel] com.day.crx.sling.server [com.day.crx.sling.server.impl.jmx.ManagedRepository] Failed creating the component instance; see log for reason

07.01.2013 14:55:14.736 *ERROR* [FelixDispatchQueue] com.day.crx.sling.server FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory returned null.) org.osgi.framework.ServiceException: Service factory returned null.

    at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistratio nImpl.java:343)

    at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.jav a:221)

    at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:292)

    at org.apache.felix.framework.Felix.getService(Felix.java:3010)

    at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:329)

    at org.osgi.util.tracker.ServiceTracker.addingService(ServiceTracker.java:442)

    at org.apache.aries.jmx.whiteboard.Activator$MBeanTracker.addingService(Activator.java:101)

    at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:896)

    at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:261)

    at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:233)

    at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:840)

    at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispat cher.java:871)

    at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java :733)

    at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:662 )

    at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3765)

    at org.apache.felix.framework.Felix.registerService(Felix.java:2877)

    at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:251)

    at org.apache.felix.scr.impl.manager.AbstractComponentManager.registerService(AbstractCompon entManager.java:456)

    at org.apache.felix.scr.impl.manager.AbstractComponentManager.registerComponentService(Abstr actComponentManager.java:508)

    at org.apache.felix.scr.impl.manager.AbstractComponentManager$Unsatisfied.activate(AbstractC omponentManager.java:1157)

    at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractCompo nentManager.java:334)

    at org.apache.felix.scr.impl.manager.AbstractComponentManager.enable(AbstractComponentManage r.java:158)

    at org.apache.felix.scr.impl.config.ImmediateComponentHolder.enableComponents(ImmediateCompo nentHolder.java:313)

    at org.apache.felix.scr.impl.BundleComponentActivator.loadDescriptor(BundleComponentActivato r.java:241)

    at org.apache.felix.scr.impl.BundleComponentActivator.initialize(BundleComponentActivator.ja va:147)

    at org.apache.felix.scr.impl.BundleComponentActivator.<init>(BundleComponentActivator.java:1 11)

    at org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:274)

    at org.apache.felix.scr.impl.Activator.bundleChanged(Activator.java:192)

    at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatc her.java:807)

    at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java :729)

    at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:610)

    at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:3754)

    at org.apache.felix.framework.Felix.startBundle(Felix.java:1780)

    at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1156)

    at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:266)

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

07.01.2013 14:55:14.737 *ERROR* [FelixStartLevel] org.apache.aries.jmx.whiteboard.JmxWhiteboardSupport registerMBean: Cannot register MBean service null with MBean servers: Not an instanceof DynamicMBean or not MBean spec compliant standard MBean

 

Then, after the browser window starts one CQ5 has been 'installed', I get the error:

 

Service Unavailable

AuthenticationSupport service missing. Cannot authenticate request.

 

 

I've not installed any service packs, and this occurs 100% of the time on a clean installation of CQ5, so it's not indexing issues.  Looking at the OSGI console I see that the 'Authenticator' tab is missing (others as well).  The 'Bundles' tab is there, and all Bundles are Active (besides a couple saying Fragment).

 

I use the exact same jar to install on Windows and there is no problems with installation there.  I've deleted the crx-quickstart folder and re-installed multiple times, but always have the same errors appearing on Mac.  I've tried the following to install CQ5:

 

  • java -Xmx1024m -jar cq5-author-4502.jar -gui
  • sudo java -Xmx1024m -jar cq5-author-4502.jar -gui
  • java -jar cq5-author-4502.jar -unpack (then use the start script)
  • sudo java -jar cq5-author-4502.jar -unpack (then use the start script)

 

Nothing seems to be any different - they all throw the errors in the installation and result in the 'Service Unavailable - AuthenticationSupport service missing. Cannot authenticate request.' 503 browser error.

 

Is there something that I'm missing here?  Any help appreciated.

 

Thanks,

K

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.

need to call servlet from jsp how

$
0
0

generally we specify in action attribute 

 

in cq how to specify the servlet path

 

what should be the folder structure plz explain with an example


CQ5 quickstart fails to complete with launchpad failure

$
0
0

I am attempting to run the CQ5 quickstart by both double-clicking the jar (in my case, C:\tools\cq\demo\cq-wcm-quickstart-5.4.0.jar) and launching from command prompt (C:\tools\cq\demo>java -Xmx384M -jar cq-wcm-quickstart-5.4.0.jar). The launcher app eventually times out and displays "Server not ready, browser not launched".

 

The login page (http://localhost:4502/login.html) displays...

Service Unavailable

 

In the server.log, I see…

 

...28.11.2011 12:58:49 *MARK * webapp-CRX Launchpad Webapp: Start Filter 'CRXLaunchpadLicenseFilter'

28.11.2011 12:58:49 *MARK * webapp-CRX Launchpad Webapp: Start servlet 'sling'

28.11.2011 12:58:50 *ERROR* webapp-CRX Launchpad Webapp: ERROR: Error parsing system bundle export statement: org.osgi.framework; version=1.5, org.osgi.framework.hooks.service; version=1.0, org.osgi.framework.launch; version=1.0, org.osgi.service.packageadmin; version=1.2, org.osgi.service.startlevel; version=1.1, org.osgi.service.url; version=1.0, org.osgi.util.tracker;version="1.4", org.apache.sling.launchpad.api;version=1.0.0,  ,javax.servlet;javax.servlet.http;javax.servlet.resources; version=2.4 (java.lang.IllegalArgumentException: No paths specified in header: )

java.lang.IllegalArgumentException: No paths specified in header:

                at org.apache.felix.framework.util.manifestparser.ManifestParser.parseStandardHeaderClause(M anifestParser.java:1432)

                at org.apache.felix.framework.util.manifestparser.ManifestParser.parseStandardHeader(Manifes tParser.java:1400)

                at org.apache.felix.framework.util.manifestparser.ManifestParser.<init>(ManifestParser.java: 162)

                at org.apache.felix.framework.ExtensionManager.<init>(ExtensionManager.java:193)

                at org.apache.felix.framework.Felix.<init>(Felix.java:374)

                at org.apache.sling.launchpad.base.impl.SlingFelix.<init>(SlingFelix.java:39)

                at org.apache.sling.launchpad.base.impl.Sling.<init>(Sling.java:235)

                at org.apache.sling.launchpad.base.webapp.SlingBridge.<init>(SlingBridge.java:41)

                at org.apache.sling.launchpad.base.webapp.SlingServletDelegate.init(SlingServletDelegate.jav a:203)

                at javax.servlet.GenericServlet.init(GenericServlet.java:211)

                at org.apache.sling.launchpad.webapp.SlingServlet.startSling(SlingServlet.java:358)

                at org.apache.sling.launchpad.webapp.SlingServlet.startSling(SlingServlet.java:300)

                at org.apache.sling.launchpad.webapp.SlingServlet.init(SlingServlet.java:111)

                at javax.servlet.GenericServlet.init(GenericServlet.java:211)

                at com.day.j2ee.servletengine.ServletRuntimeEnvironment.doStart(ServletRuntimeEnvironment.ja va:113)

                at com.day.j2ee.servletengine.ServletRuntimeEnvironment.start(ServletRuntimeEnvironment.java :93)

                at com.day.j2ee.servletengine.WebApplication.loadStartupServlets(WebApplication.java:702)

                at com.day.j2ee.servletengine.WebApplication.start(WebApplication.java:631)

                at com.day.j2ee.servletengine.ServletContainer.start(ServletContainer.java:318)

                at com.day.j2ee.servletengine.ServletEngine.start(ServletEngine.java:285)

                at com.day.j2ee.server.Server.start(Server.java:227)

                at com.day.j2ee.server.Server.main(Server.java:607)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

                at java.lang.reflect.Method.invoke(Unknown Source)

                at com.day.launcher.Bootstrap.run(Bootstrap.java:118)

                at com.day.crx.quickstart.Quickstart.run(Quickstart.java:680)

                at com.day.crx.quickstart.Main.<init>(Main.java:675)

                at com.day.crx.quickstart.Main.main(Main.java:730)

28.11.2011 12:58:50 *ERROR* webapp-CRX Launchpad Webapp: ERROR: Error starting slinginstall:C:\tools\cq\demo\crx-quickstart\launchpad\startup\1\org.apache.felix.http.br idge-2.2.0.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.felix.http.bridge [1]: Unable to resolve 1.0: missing requirement [1.0] package; (package=javax.servlet))

org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.felix.http.bridge [1]: Unable to resolve 1.0: missing requirement [1.0] package; (package=javax.servlet)

                at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3409)

                at org.apache.felix.framework.Felix.startBundle(Felix.java:1719)

                at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1148)

                at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)

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

 

Then a bunch more errors "ERROR: Error starting slinginstall".


I’ve tried the “publisher” and “author” as well as the “generic” quick-start configurations and all fail the same way at the same spot.  Here is the sling.properties file:

 

#Overlay properties for configuration

#Mon Nov 28 14:26:17 PST 2011

org.apache.sling.commons.log.file.number=5

sling.installer.dir=${sling.home}/installer

sling.home=C\:\\tools\\cq\\demo\\crx-quickstart\\launchpad

ds.loglevel=warn

org.osgi.framework.system.packages=${osgi-core-packages}, ${osgi-compendium-services}, org.apache.sling.launchpad.api;version\=1.0.0, ${jre-${java.specification.version}} ${org.apache.sling.launcher.system.packages}

org.apache.sling.commons.log.file.size='.'yyyy-MM-dd

org.osgi.framework.bootdelegation=com.yourkit.*, ${org.apache.sling.launcher.bootdelegation}

felix.service.urlhandlers=true

org.osgi.framework.storage=${sling.home}/felix

org.osgi.framework.bundle.parent=framework

sling.ignoreSystemProperties=true

osgi-core-packages=org.osgi.framework; version\=1.5, org.osgi.framework.hooks.service; version\=1.0, org.osgi.framework.launch; version\=1.0, org.osgi.service.packageadmin; version\=1.2, org.osgi.service.startlevel; version\=1.1, org.osgi.service.url; version\=1.0

osgi-compendium-services=org.osgi.util.tracker;version\="1.4"

sling.context.default=default

ds.factory.enabled=true

org.apache.sling.commons.log.file=${sling.home}/logs/error.log

org.apache.sling.commons.log.level=INFO

org.apache.sling.launcher.system.packages=,javax.servlet;javax.servlet.http;javax.servlet. resources; version\=2.4

sling.bootdelegation.sun.reflect=sun.reflect

org.apache.felix.http.shared_servlet_context_attributes=true

obr.repository.url=http\://sling.apache.org/obr/repository.xml

org.osgi.framework.startlevel.beginning=30

felix.startlevel.bundle=20

felix.cm.dir=${sling.home}/config

 

A problem with my version of Java, maybe?

 

C:\tools\cq\demo>java -version

java version "1.7.0_01"

Java(TM) SE Runtime Environment (build 1.7.0_01-b08)

  Java HotSpot(TM) Client VM (build 21.1-b02, mixed mode, sharing)

 

The crx (http://localhost:4502/crx) and cq admin (http://localhost:4502/admin) sites seem to work.  But, the launchpad (http://localhost:4502/bin/login.html or http://localhost:4502/system/console) doesn’t.

 

Thanks in advance for any help!

~rollo

Radio Buttons

$
0
0

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

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

Insensitive search using query builder

$
0
0

Hi,

 

I want to convert below sql query so as to use for querybuilder .

 

select * from nt:unstructured where jcr:path like '/content/dam/company/project/data/%' and UPPER(ctn_no) LIKE 'HD%' or UPPER(family_name) LIKE 'HD%' order by jcr:score desc

 

I tried with below values from querybuilder component.

 

type=nt:unstructured

path=/content/dam/company/project/data

group.1_property=ctn_no

group.1_property.value=HD%

group.1_property.operation=like

group.p.or = true

group.2_property=family_name

group.2_property.value=HD%

group.2_property.operation=like

orderby=jcr:score

orderby.sort=desc

 

To do a case insensitive search, I am always converting input parameter to upper case so I can match that parameter with the value from CRX.

 

Please guide me if I am in right direction and how can I do case insensitive search using querybuilder with above approach.

 

 

Thanks,

Nishant Varandani

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

$
0
0

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

How do i use querybuilder.json to return similar search

$
0
0

Can querybuilder.json return a similar search?  That is if I use

querybuilder.json?fulltext=walnt

I'd like to get the results for "walnut".  What predicate should I use?

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.


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

Parse json data from inputstream using org.apache.sling.commons.json library

$
0
0

I had two options to receive the input stream data either xml or json. I decided to go to the json route.

 

I am getting complex input data from an API in the json format. Can someone tell me how do I parse this data using the sling API org.apache.sling.commons.json? A sample java code will be great. I tried the GSON but because my data is complex it is not helping me. Any help will be great.

form and post as a method to send request parameter?

$
0
0

Hi all,

 

I have question about best practice in the CQ to send between 2 pages a parameter using a post method in the form.

 

I have simple form on page.html like:

 

<form action="page_2.html" method="POST">

     <input type="hidden" name="flag" value="false" />

</form>

 

and using this form the flag parameter must be send to page_2.html.

 

I'm quite new with this stuff in the CQ, so in advance thanks a lot for any advice.

 

Regards,

kasq

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

Adobe Analytics and Test & Target integration

$
0
0

Hi,

 

I need suggestion on how i can leverage user behavior on site (tracking the path user accessed) to target the content on page. One option i can think of to use adobe analytics to capture the path information (tracking) and Test & Target to configure with CQ for segmentation and personalized content, but i am not sure how to connent analytics with Test & Target so that this information will be used to resolved the segment (or personalized content - i think here i am missing something)

 

Any suggestion will be appreciated.

 

Thanks,

Pawan

Viewing all 12476 articles
Browse latest View live