karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Achim Nierbeck <bcanh...@googlemail.com>
Subject Re: NoClassDefFoundError: javax/servlet/ServletContainerInitializer
Date Thu, 12 May 2016 16:18:18 GMT
Hi,

very simple, don't install the jetty feature, it's a transitive feature of
the http feature.
The jetty feature is only there for camel etc, which sometimes need a
different version of it.
But will collide with the pax-web installed jetty feature.

regards, Achim

2016-05-12 17:03 GMT+02:00 guiramos <guiramos@gmail.com>:

> Hi there.
>
> Fresh installation(4.0.4) and whichever command I use from the list below I
> am getting the same error.
> - feature:install http
> - feature:install jetty
> - feature:install websconsole
>
>
> ERROR: Bundle org.apache.aries.spifly.dynamic.bundle [54] EventDispatcher:
> Error during dispatch. (java.lang.NoClassDefFoundError:
> javax/servlet/ServletContainerInitializer) java.lang.NoClassDefFoundError:
> javax/servlet/ServletContainerInitializer at
> java.lang.ClassLoader.defineClass1(Native Method) at
> java.lang.ClassLoader.defineClass(ClassLoader.java:800) at
>
> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.defineClass(BundleWiringImpl.java:2370)
> at
>
> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.findClass(BundleWiringImpl.java:2154)
> at
>
> org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1542)
> at
>
> org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:79)
> at
>
> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2018)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at
> org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1925) at
> org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:978) at
>
> org.apache.aries.spifly.ProviderBundleTrackerCustomizer.addingBundle(ProviderBundleTrackerCustomizer.java:163)
> at
>
> org.apache.aries.spifly.ProviderBundleTrackerCustomizer.addingBundle(ProviderBundleTrackerCustomizer.java:54)
> at
>
> org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:469)
> at
>
> org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:415)
> at
> org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
> at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229) at
>
> org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444)
> at
>
> org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:916)
> at
>
> org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:835)
> at
>
> org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:517)
> at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4541) at
> org.apache.felix.framework.Felix.startBundle(Felix.java:2172) at
> org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998) at
> org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984) at
>
> org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1199)
> at
>
> org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:840)
> at
>
> org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1089)
> at
>
> org.apache.karaf.features.internal.service.FeaturesServiceImpl$1.call(FeaturesServiceImpl.java:985)
> at java.util.concurrent.FutureTask.run(FutureTask.java:262) at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745) Caused by:
> java.lang.ClassNotFoundException: javax.servlet.ServletContainerInitializer
> at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at
> java.net.URLClassLoader$1.run(URLClassLoader.java:355) at
> java.security.AccessController.doPrivileged(Native Method) at
> java.net.URLClassLoader.findClass(URLClassLoader.java:354) at
> java.lang.ClassLoader.loadClass(ClassLoader.java:425) at
> java.lang.ClassLoader.loadClass(ClassLoader.java:358) at
>
> org.apache.felix.framework.ExtensionManager$ExtensionManagerWiring.getClassByDelegation(ExtensionManager.java:1010)
> at
>
> org.apache.felix.framework.BundleWiringImpl.searchImports(BundleWiringImpl.java:1595)
> at
>
> org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1525)
> at
>
> org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:79)
> at
>
> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2018)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
>
>
>
> Are all these pre-installed features supposed to work right away?
>
> What am I missing here?
> Please help me.
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/NoClassDefFoundError-javax-servlet-ServletContainerInitializer-tp4046598.html
> Sent from the Karaf - Dev mailing list archive at Nabble.com.
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message