3 Replies Latest reply on Feb 10, 2012 4:39 AM by LNP08

    CQ5 quickstart fails to complete with launchpad failure

    cjrollo

      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