Apache Sling Launchpad has its own Jackrabbit repository embedded in it. But since Airavata has its own Jackrabbit repository, Sling Launchpad's embedded repository should be replaced by that of Airavata. According to a thread in Sling user mailinglist, I configured Launchpad.
I did this twice with 2 versions of Sling Launchpad.
1) Sling Launchpad 6
2) Sling Launchpad 7
How to configure?
- Start Launchpad as mentioned in this tutorial.
- Now go to http://localhost:8080/system/console/configMgr
- Give admin:admin as username:password if asked.
- Go to row Apache Sling Embedded JCR Repository
- Click on org.apache.sling.jcr.jackrabbit.server.SlingServerRepository.########
- Configure Configuration File, Repository Home and Repository Name as follows.
- Configuration File: Jackrabbit Repository.xml path
- Eg. /home/.../jackrabbit/repository.xml
- Repository Home: Jackrabbit home path
- Eg. /home/.../jackrabbit/
- Embedded JCR Repository Name: 'jackrabbit'
- Restart Launchpad
Issues (Solved in here)
1) With Launchpad 6
I got following exceptions while Launchpad is being started.
16.06.2012 11:26:07.065 *ERROR* [FelixStartLevel] org.apache.jackrabbit.core. persistence.pool. BundleDbPersistenceManager failed to read bundle: deadbeef-face-babe-cafe- babecafebabe: java.lang. IllegalArgumentException: Invalid namespace index: 6086317
16.06.2012 11:26:07.066 *ERROR* [FelixStartLevel] org.apache.jackrabbit.core. RepositoryImpl failed to start Repository: org.apache.jackrabbit.core. state.ItemStateException: failed to read bundle: deadbeef-face-babe-cafe- babecafebabe: java.lang. IllegalArgumentException: Invalid namespace index: 6086317 javax.jcr.RepositoryException: org.apache.jackrabbit.core. state.ItemStateException: failed to read bundle: deadbeef-face-babe-cafe- babecafebabe: java.lang. IllegalArgumentException: Invalid namespace index: 6086317
at org.apache.jackrabbit.core. version. InternalVersionManagerImpl.< init>( InternalVersionManagerImpl. java:258)
at org.apache.jackrabbit.core. RepositoryImpl. createVersionManager( RepositoryImpl.java:512)
at org.apache.jackrabbit.core. RepositoryImpl.( RepositoryImpl.java:355)
at org.apache.jackrabbit.core. RepositoryImpl.create( RepositoryImpl.java:673)
at org.apache.sling.jcr. jackrabbit.server.impl. SlingServerRepository. acquireRepository( SlingServerRepository.java: 141)
at org.apache.sling.jcr.base. AbstractSlingRepository. startRepository( AbstractSlingRepository.java: 795)
at org.apache.sling.jcr.base. AbstractSlingRepository. activate( AbstractSlingRepository.java: 606)
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( ImmediateComponentManager. java:226)
at org.apache.felix.scr.impl. manager. ImmediateComponentManager. createComponent( ImmediateComponentManager. java:118)
at org.apache.felix.scr.impl. manager. AbstractComponentManager$ Unsatisfied.activate( AbstractComponentManager.java: 997)
at org.apache.felix.scr.impl. manager. AbstractComponentManager. activateInternal( AbstractComponentManager.java: 333)
at org.apache.felix.scr.impl. manager. AbstractComponentManager. enable( AbstractComponentManager.java: 157)
at org.apache.felix.scr.impl. config. ConfiguredComponentHolder. enableComponents( ConfiguredComponentHolder. java:262)
at org.apache.felix.scr.impl. BundleComponentActivator. loadDescriptor( BundleComponentActivator.java: 253)
at org.apache.felix.scr.impl. BundleComponentActivator. initialize( BundleComponentActivator.java: 147)
at org.apache.felix.scr.impl. BundleComponentActivator.< init>( BundleComponentActivator.java: 111)
at org.apache.felix.scr.impl. Activator.loadComponents( Activator.java:285)
at org.apache.felix.scr.impl. Activator.bundleChanged( Activator.java:203)
at org.apache.felix.framework. util.EventDispatcher. invokeBundleListenerCallback( EventDispatcher.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:3758)
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:264)
at java.lang.Thread.run(Thread. java:662)
Caused by: org.apache.jackrabbit.core. state.ItemStateException: failed to read bundle: deadbeef-face-babe-cafe- babecafebabe: java.lang. IllegalArgumentException: Invalid namespace index: 6086317
at org.apache.jackrabbit.core. persistence.pool. BundleDbPersistenceManager. loadBundle( BundleDbPersistenceManager. java:1096)
at org.apache.jackrabbit.core. persistence.pool. BundleDbPersistenceManager. loadBundle( BundleDbPersistenceManager. java:1029)
at org.apache.jackrabbit.core. persistence.pool. AbstractBundlePersistenceManag er.getBundle( AbstractBundlePersistenceManag er.java:651)
at org.apache.jackrabbit.core. persistence.pool. AbstractBundlePersistenceManag er.exists( AbstractBundlePersistenceManag er.java:470)
at org.apache.jackrabbit.core. version. InternalVersionManagerImpl.< init>( InternalVersionManagerImpl. java:212)
... 34 more
Caused by: java.lang. IllegalArgumentException: Invalid namespace index: 6086317
at org.apache.jackrabbit.core. NamespaceRegistryImpl. indexToString( NamespaceRegistryImpl.java: 310)
at org.apache.jackrabbit.core. persistence.util. BundleBinding.readBundle( BundleBinding.java:88)
at org.apache.jackrabbit.core. persistence.pool. BundleDbPersistenceManager. loadBundle( BundleDbPersistenceManager. java:1090)
... 38 more
Sling Launchpad 7 is not released yet. I downloaded Sling source from trunk and build the Launchpad. After changing above configurations and launchpad is started, now I'm getting new exceptions but not the earlier one.
Exception 1)
25.06.2012 12:19:16.985 *INFO* [FelixStartLevel] org.apache.jackrabbit.core. RepositoryImpl Repository started (4772ms)
25.06.2012 12:19:16.998 *INFO* [FelixStartLevel] org.apache.sling.jcr. jackrabbit.server pingAndCheck; loginAdministrative failed (javax.jcr.LoginException: LoginModule ignored Credentials) javax.jcr.LoginException: LoginModule ignored Credentials
at org.apache.jackrabbit.core. RepositoryImpl.login( RepositoryImpl.java:1493)
at org.apache.sling.jcr.base. AbstractSlingRepository.login( AbstractSlingRepository.java: 205)
at org.apache.sling.jcr.base. AbstractSlingRepository. loginAdministrative( AbstractSlingRepository.java: 171)
at org.apache.sling.jcr.base. AbstractSlingRepository. pingAndCheck( AbstractSlingRepository.java: 499)
at org.apache.sling.jcr.base. AbstractSlingRepository. startRepository( AbstractSlingRepository.java: 755)
at org.apache.sling.jcr.base. AbstractSlingRepository. activate( AbstractSlingRepository.java: 581)
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( ImmediateComponentManager. java:226)
at org.apache.felix.scr.impl. manager. ImmediateComponentManager. createComponent( ImmediateComponentManager. java:118)
at org.apache.felix.scr.impl. manager. AbstractComponentManager$ Unsatisfied.activate( AbstractComponentManager.java: 997)
at org.apache.felix.scr.impl. manager. AbstractComponentManager. activateInternal( AbstractComponentManager.java: 333)
at org.apache.felix.scr.impl. manager. AbstractComponentManager. enable( AbstractComponentManager.java: 157)
at org.apache.felix.scr.impl. config. ConfiguredComponentHolder. enableComponents( ConfiguredComponentHolder. java:262)
at org.apache.felix.scr.impl. BundleComponentActivator. loadDescriptor( BundleComponentActivator.java: 253)
at org.apache.felix.scr.impl. BundleComponentActivator. initialize( BundleComponentActivator.java: 147)
at org.apache.felix.scr.impl. BundleComponentActivator.< init>( BundleComponentActivator.java: 111)
at org.apache.felix.scr.impl. Activator.loadComponents( Activator.java:285)
at org.apache.felix.scr.impl. Activator.bundleChanged( Activator.java:203)
at org.apache.felix.framework. util.EventDispatcher. invokeBundleListenerCallback( EventDispatcher.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:3758)
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:264)
at java.lang.Thread.run(Thread. java:662)
Caused by: javax.security.auth.login. FailedLoginException: LoginModule ignored Credentials
at org.apache.jackrabbit.core. security.authentication. LocalAuthContext.login( LocalAuthContext.java:87)
at org.apache.jackrabbit.core. RepositoryImpl.login( RepositoryImpl.java:1465)
... 33 more
Exception 2)
25.06.2012 12:19:19.483 *INFO* [FelixDispatchQueue] org.apache.sling.auth.openid BundleEvent STARTED
25.06.2012 12:19:19.484 *ERROR* [JMX OSGi Agent] org.apache.aries.jmx.core MBean is already registered (javax.management. InstanceAlreadyExistsException : osgi.compendium:service=cm, version=1.3) javax.management. InstanceAlreadyExistsException : osgi.compendium:service=cm, version=1.3
at com.sun.jmx.mbeanserver. Repository.addMBean( Repository.java:453)
at com.sun.jmx.interceptor. DefaultMBeanServerInterceptor. internal_addObject( DefaultMBeanServerInterceptor. java:1484)
at com.sun.jmx.interceptor. DefaultMBeanServerInterceptor. registerDynamicMBean( DefaultMBeanServerInterceptor. java:963)
at com.sun.jmx.interceptor. DefaultMBeanServerInterceptor. registerObject( DefaultMBeanServerInterceptor. java:917)
at com.sun.jmx.interceptor. DefaultMBeanServerInterceptor. registerMBean( DefaultMBeanServerInterceptor. java:312)
at com.sun.jmx.mbeanserver. JmxMBeanServer.registerMBean( JmxMBeanServer.java:482)
at org.apache.aries.jmx.agent. JMXAgentImpl.registerMBeans( JMXAgentImpl.java:129)
at org.apache.aries.jmx.agent. JMXAgentContext. registerMBeans( JMXAgentContext.java:58)
at org.apache.aries.jmx. MBeanServiceTracker$1.run( MBeanServiceTracker.java:61)
at java.util.concurrent. Executors$RunnableAdapter. call(Executors.java:441)
at java.util.concurrent. FutureTask$Sync.innerRun( FutureTask.java:303)
at java.util.concurrent. FutureTask.run(FutureTask. java:138)
at java.util.concurrent. ThreadPoolExecutor$Worker. runTask(ThreadPoolExecutor. java:886)
at java.util.concurrent. ThreadPoolExecutor$Worker.run( ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread. java:662)
Exception 3)
25.06.2012 12:19:19.906 *INFO* [FelixStartLevel] org.apache.sling.jcr.resource [org.apache.sling.jcr. resource.internal. JcrResourceListener] Dependency Manager: Service resourceResolverFactory registered, activate component
25.06.2012 12:19:19.919 *ERROR* [FelixStartLevel] org.apache.sling.jcr.resource [org.apache.sling.jcr. resource.internal. JcrResourceListener] The activate method has thrown an exception (java.lang. NullPointerException) java.lang.NullPointerException
at org.apache.sling.jcr.resource. internal.JcrResourceListener. activate(JcrResourceListener. java:133)
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( ImmediateComponentManager. java:226)
at org.apache.felix.scr.impl. manager. ImmediateComponentManager. createComponent( ImmediateComponentManager. java:118)
at org.apache.felix.scr.impl. manager. AbstractComponentManager$ Unsatisfied.activate( AbstractComponentManager.java: 997)
at org.apache.felix.scr.impl. manager. AbstractComponentManager. activateInternal( AbstractComponentManager.java: 333)
at org.apache.felix.scr.impl. manager.DependencyManager. serviceAdded( DependencyManager.java:283)
at org.apache.felix.scr.impl. manager.DependencyManager. serviceChanged( DependencyManager.java:170)
at org.apache.felix.framework. util.EventDispatcher. invokeServiceListenerCallback( EventDispatcher.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:3769)
at org.apache.felix.framework. Felix.access$000(Felix.java: 80)
at org.apache.felix.framework. Felix$2.serviceChanged(Felix. java:722)
at org.apache.felix.framework. ServiceRegistry. registerService( ServiceRegistry.java:107)
at org.apache.felix.framework. Felix.registerService(Felix. java:2854)
at org.apache.felix.framework. BundleContextImpl. registerService( BundleContextImpl.java:251)
at org.apache.felix.scr.impl. manager. AbstractComponentManager. registerService( AbstractComponentManager.java: 449)
at org.apache.felix.scr.impl. manager. AbstractComponentManager. registerComponentService( AbstractComponentManager.java: 460)
at org.apache.felix.scr.impl. manager. AbstractComponentManager$ Unsatisfied.activate( AbstractComponentManager.java: 1009)
at org.apache.felix.scr.impl. manager. AbstractComponentManager. activateInternal( AbstractComponentManager.java: 333)
at org.apache.felix.scr.impl. manager. AbstractComponentManager. enable( AbstractComponentManager.java: 157)
at org.apache.felix.scr.impl. config. ConfiguredComponentHolder. enableComponents( ConfiguredComponentHolder. java:256)
at org.apache.felix.scr.impl. BundleComponentActivator. loadDescriptor( BundleComponentActivator.java: 253)
at org.apache.felix.scr.impl. BundleComponentActivator. initialize( BundleComponentActivator.java: 147)
at org.apache.felix.scr.impl. BundleComponentActivator.< init>( BundleComponentActivator.java: 111)
at org.apache.felix.scr.impl. Activator.loadComponents( Activator.java:285)
at org.apache.felix.scr.impl. Activator.bundleChanged( Activator.java:203)
at org.apache.felix.framework. util.EventDispatcher. invokeBundleListenerCallback( EventDispatcher.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:3758)
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:264)
at java.lang.Thread.run(Thread. java:662)
25.06.2012 12:19:19.921 *ERROR* [FelixStartLevel] org.apache.sling.jcr.resource [org.apache.sling.jcr. resource.internal. JcrResourceListener] Component instance could not be created, activation failed
Currently I'm working on these issues.
Currently I'm working on these issues.
No comments:
Post a Comment