I am new to sling (and jackrabbit). I can start the standalone sling instance without any problem. When I try to deploy the webapp in an app container, I get the following exception in the server.log:
ERROR: Error starting slinginstall:org.apache.felix.http.bridge-2.2.0.jar (java.lang.NoClassDefFoundError: org/osgi/service/log/LogService)
java.lang.NoClassDefFoundError: org/osgi/service/log/LogService
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2496)
at java.lang.Class.getConstructor0(Class.java:2806)
at java.lang.Class.newInstance(Class.java:345)
at org.apache.felix.framework.Felix.createBundleActivator(Felix.java:3693)
at org.apache.felix.framework.Felix.activateBundle(Felix.java:1830)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1752)
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:701)
Caused by: java.lang.ClassNotFoundException: org.osgi.service.log.LogService not found by org.apache.felix.http.bridge [1]
at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:787)
at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71)
at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
... 10 more
I am using Java 6. I get the same error regardless of whether I use JBoss or Glassfish. I've also tried building the source from the latest subversion checkout and building from the latest official release of the source code. It seems like it is expecting some sort of logging service (or listener) to be active, but I don't know how to set one up.
Thanks for any help you all can offer!