I just tried to deploy org.apache.sling.launchpad-6-SNAPSHOT.war built from the current trunk to a small Linux server with SUN Java 1.6 and Tomcat 6.0.29 and Slings fails to start since I get a NullPointerException in SlingSettingsServiceImpl

14.08.2010 16:45:02.254 *ERROR* [FelixDispatchQueue] org.apache.sling.settings FrameworkEvent ERROR (org.osgi.framework.BundleException: Activator start error in bundle org.apache.sling.settings [33].) org. osgi.framework.BundleException: Activator start error in bundle org.apache.sling.settings [33].
        at org.apache.felix.framework.Felix.activateBundle(Felix.java:1864)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1734)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1143) at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
at org.apache.sling.settings.impl.SlingSettingsServiceImpl.setupSlingId(SlingSettingsServiceImpl.java:105) at org.apache.sling.settings.impl.SlingSettingsServiceImpl.<init>(SlingSettingsServiceImpl.java:69) at org.apache.sling.settings.impl.Activator.start(Activator.java:44) at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:633)
        at org.apache.felix.framework.Felix.activateBundle(Felix.java:1817)
        ... 4 more

The strange thing is if I take the same WAR file and run it on my workstation with the same versions of Java & Tomcat it works. I'm not sure but might the cause be that engineBundle.getBundleContext() returns null and does anyone know of any reason why that might happen?

/Pontus

Reply via email to