9 Replies Latest reply on Jan 14, 2013 8:19 PM by Kristian Wright

    CQ5.5 Installation issues on Mac

    Kristian Wright Level 1

      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

        • 1. Re: CQ5.5 Installation issues on Mac
          Davide G Adobe Employee

          Hi Kristian,

           

          Normally deleting the crx-quickstart/repository/repository/.lock (typed off my head) should clean the error. Do it after shutdown.

           

          I never had the issue that it fail to start due to the .lock. Please take a look as well at the bundles and see if any of them are in a not started/fragment state and in case start them.

           

          HTH

          Davide

          • 2. Re: CQ5.5 Installation issues on Mac
            Kristian Wright Level 1

            Thanks for the tips Davide, but unfortunately this did not work.

             

            After deleting the .lock file, I started CQ5 again and got the same error:

             

            09.01.2013 00:18:49.475 *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)

            09.01.2013 00:18:49.477 *ERROR* [FelixStartLevel] com.day.crx.sling.server [com.day.crx.sling.server.impl.jmx.ManagedRepository] Failed creating the component instance; see log for reason

            09.01.2013 00:18:49.478 *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

             

            and the further down the error.log:

             

            09.01.2013 00:18:52.873 *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)

             

            So even though the .lock file is deleted, when it gets created again it seems to lock itself out...

             

            As for the Bundles, they are all either Active or Fragment, so I'm happy there.  However the Components tab in the OSGI console concerns me - some are 'active', but a LOT are 'unsatisfied', including com.adobe.granite.auth.sso.impl.SsoAuthenticationHandler, com.adobe.granite.security.user.servlets.AuthorizableServlet and lots of other ones I'm pretty sure are supposed to be working...

             

            This is a 100% recreatable error for me, and I've not once been able to get a working CQ5 instance happening on the Mac.

             

            Cheers,

            K

            • 3. Re: CQ5.5 Installation issues on Mac
              orotas Level 4

              Are you sure that you had completely shut down the process previously? So when you shut down the instance have you checked to make sure that java process actually stopped? You may have to kill -9 the java process, then delete the lock file, and then restart.

               

              Often times if you are using quickstart and just double clicking the jar file even though the quickstart visual will appear to have shutdown the java process will remain running in the background. Sometimes if you have trouble starting up the stop process will hang and you will have no option but to kill the java process.

              • 4. Re: CQ5.5 Installation issues on Mac
                orotas Level 4

                Also double check and make sure you don't have something that is auto-restarting the instance - if you have the instance set up as a service of some sort that can happen as well.

                • 5. Re: CQ5.5 Installation issues on Mac
                  Kristian Wright Level 1

                  Hi Orotas,

                   

                  I'm 100% sure it's not running when I delete the .lock file.  Before starting, http://localhost:4502 returns

                   

                  Unable to connect

                  Firefox can't establish a connection to the server at localhost:4502.

                   

                  Also, looking at the running processes (via ps) I get:

                   

                    PID TTY       TIME CMD
                    409 ttys0000:00.05 -bash
                    431 ttys0010:00.02 -bash
                    442 ttys0010:00.64 tail -F error.log
                    577 ttys0020:00.64 -bash
                  1393 ttys0020:00.00 sleep 10

                   

                  After deleting the .lock file and starting CQ5 via "java -Xmx1024m -jar cq-author-4502.jar -gui" and checking the processes I get:

                   

                    PID TTY       TIME CMD
                    409 ttys0000:00.06 -bash
                  1408 ttys0000:00.74 /usr/bin/java -Xmx1024m -jar cq-author-4502.jar -gui
                  1409 ttys0000:11.51 /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -Xmx1024m -XX:MaxPermSize=256m -jar /Volumes/EXCHANGE/Workspace/CQ5/author/cq-author-4502.jar -nofork -pt CHILD -gui
                    431 ttys0010:00.02 -bash
                    442 ttys0010:00.66 tail -F error.log
                    577 ttys0020:00.65 -bash
                  1432 ttys0020:00.00 sleep 10
                  1420 ttys0030:00.01 -bash

                   

                  But, same problems of it not working.  Please ignore the other processes like sleep etc - I'm doing something non-related in the background in other terminal windows.  (I've also tried clean installs of CQ5 on a fresh directory immediately after a reboot with nothing else going on in the background and I always get the same results).

                   

                  Also, the fact that I create a completely clean directory and it does not work from install (same issue - see original post) tells me that it's not running already, and definitely should not be locked!!

                   

                  I never doulble click the jar to start, I always start from the terminal with the above command.  When shutting down, I've tried both CTRL-C in the terminal window, and also by flicking the switch to "OFF" in the gui - both shut the instance down correctly.  Unfortunately it always shuts down correctly, just never starts up properly!!

                   

                  As for the setting it to run as a service, I've never got that far, as I've never been able to have a successful install in the first place.

                   

                  Cheers,

                  K

                  • 6. Re: CQ5.5 Installation issues on Mac
                    Kristian Wright Level 1

                    Just an update...

                     

                    Needed to replace my HDD, so I replaced the OS as well.  Running OS X 10.8.2 now.  Tried a clean install of CQ5 on the new OS and drive, exactly the same error as my original post!

                     

                    Can anyone please confirm that CQ5.5 actually can run on a Mac??!!

                     

                    Thanks,

                    K

                    • 8. Re: CQ5.5 Installation issues on Mac
                      Kristian Wright Level 1

                      Another update...

                       

                      Someone suggested that I try launching via the quickstart (ie double-clicking the jar file) rather then using the command line.  No joy, same problem.

                       

                      Can anyone running this on a Mac please tell me the OS and Java versions they're using?

                       

                      Thanks,

                      K

                      • 9. Re: CQ5.5 Installation issues on Mac
                        Kristian Wright Level 1

                        SOLVED!

                         

                        I've been trying to run CQ5 on Mac in a fat32 partition so I could still run this same instance form Windows if need be (not at the same time, but to be able to have access to the same setup).  Decided to move the jar to the Mac partition and it works!

                         

                        I just tried the install in Windows 7 Prof on the fat32 drive and it installed and ran correctly.

                         

                        So it would seem that you can't run CQ5 on a fat32 partition from OS X.

                         

                        Thanks,

                        K