I have a war file containing servlets, with spring-mvc annotated classes.  It
does not contain any EJB or JAXRS code.  I can deploy the file OK with
Tomcat, but TomEE errors out on start up with this stack trace:

org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/presto]]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
        at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:983)
        at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1660)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        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:722)
Caused by: java.lang.NoClassDefFoundError:
com/sun/jersey/spi/inject/InjectableProvider
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
        at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
        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:423)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:410)
        at
org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:180)
        at
org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:74)
        at 
org.apache.xbean.finder.archive.JarArchive.loadClass(JarArchive.java:84)
        at
org.apache.xbean.finder.archive.CompositeArchive.loadClass(CompositeArchive.java:58)
        at
org.apache.xbean.finder.archive.FilteredArchive.loadClass(FilteredArchive.java:45)
        at
org.apache.xbean.finder.archive.CompositeArchive.loadClass(CompositeArchive.java:58)
        at
org.apache.openejb.config.WebappAggregatedArchive.loadClass(WebappAggregatedArchive.java:79)
        at
org.apache.xbean.finder.AnnotationFinder$ClassInfo.get(AnnotationFinder.java:1425)
        at
org.apache.xbean.finder.AnnotationFinder.findMetaAnnotatedClasses(AnnotationFinder.java:540)
        at
org.apache.xbean.finder.AnnotationFinder.findMetaAnnotatedClasses(AnnotationFinder.java:489)
        at
org.apache.openejb.config.FinderFactory$ModuleLimitedFinder.findMetaAnnotatedClasses(FinderFactory.java:291)
        at
org.apache.openejb.config.AnnotationDeployer$DiscoverAnnotatedBeans.addJaxRsProviders(AnnotationDeployer.java:1229)
        at
org.apache.openejb.config.AnnotationDeployer$DiscoverAnnotatedBeans.deploy(AnnotationDeployer.java:1560)
        at
org.apache.openejb.config.AnnotationDeployer$DiscoverAnnotatedBeans.deploy(AnnotationDeployer.java:436)
        at
org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:351)
        at
org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:396)
        at
org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:938)
        at
org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1171)
        at
org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1051)
        at
org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:127)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
        at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5322)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        ... 11 more
Caused by: java.lang.ClassNotFoundException:
com.sun.jersey.spi.inject.InjectableProvider
        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:423)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
        ... 46 more

Dec 05, 2013 2:38:29 PM org.apache.catalina.startup.HostConfig deployWAR
SEVERE: Error deploying web application archive
/Users/mike/Development/src/TOMEE/apache-tomee-jaxrs-1.6.0/webapps/presto.war

Judging from the stack trace, it seems TomEE adding JAX-RS providers - why
would it be doing this if my code does not use JAX-RS?





--
View this message in context: 
http://openejb.979440.n4.nabble.com/WAR-works-ok-on-plain-Tomcat-errors-on-start-in-TomEE-tp4666565.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to