You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by ced_benoit <ce...@gmail.com> on 2013/05/16 09:07:34 UTC
JAX-RS Error mapping class
Hi,
In Eclipse, i have project where I have developped the JAX-RS (CXF 2.7.4).
In thie I add in Java Build Path a reference to another project, because I
use in the projet JAX-RS a class from this project. But when I execute this
project, i have this exceptiom:
SEVERE: A child container failed during start
java.util.concurrent.ExecutionException:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Projectweb]]
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
at java.util.concurrent.FutureTask.get(FutureTask.java:111)
at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:800)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
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: org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Projectweb]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
... 7 more
Caused by: java.lang.NoClassDefFoundError: project/package/testclasss
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2451)
at java.lang.Class.getDeclaredMethods(Class.java:1810)
at
org.apache.xbean.finder.AnnotationFinder.findMetaAnnotatedMethods(AnnotationFinder.java:669)
at
org.apache.xbean.finder.AnnotationFinder.findMetaAnnotatedMethods(AnnotationFinder.java:627)
at
org.apache.openejb.config.FinderFactory$ModuleLimitedFinder.findMetaAnnotatedMethods(FinderFactory.java:245)
at
org.apache.openejb.config.AnnotationDeployer.findRestClasses(AnnotationDeployer.java:5199)
at
org.apache.openejb.config.AnnotationDeployer.access$300(AnnotationDeployer.java:243)
at
org.apache.openejb.config.AnnotationDeployer$DiscoverAnnotatedBeans.deploy(AnnotationDeployer.java:1084)
at
org.apache.openejb.config.AnnotationDeployer$DiscoverAnnotatedBeans.deploy(AnnotationDeployer.java:444)
at
org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:340)
at
org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:379)
at
org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:884)
at
org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1111)
at
org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1033)
at
org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:124)
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:5179)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 7 more
Caused by: java.lang.ClassNotFoundException: project.package.testclasss
at
org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:140)
at
org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:73)
... 27 more
Is anyone has an idea how I can resolve this error?
Thank for your help
Cedirc
--
View this message in context: http://cxf.547215.n5.nabble.com/JAX-RS-Error-mapping-class-tp5727763.html
Sent from the cxf-dev mailing list archive at Nabble.com.
Re: JAX-RS Error mapping class
Posted by Sergey Beryozkin <sb...@gmail.com>.
Hi Cedric
Can you please check Eclipse forums, it is really an Eclipse setup issue.
Please also consider posting to the CXF users list if you have CXF
specific questions (unless is it really a dev-specific question), some
users may not be subscribed to the dev list so they will miss your posts
Thanks, Sergey