tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: OpenEJB testing REST services
Date Tue, 15 Apr 2014 11:51:52 GMT
do you have at classpath a jar containing META-INF/cxf/org.apache.cxf.Logger ?
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2014-04-15 13:22 GMT+02:00 amber <amber63@hotmail.fr>:
> hi, I'am trying to integrate the REST rest-xml-json exemple into my project
> (http://www.apache.org/dyn/closer.cgi/tomee/tomee-1.6.0/examples-4.6.0-src.zip)
>
> The exemple works fine into Eclipse and maven command line.
>
> but as soon as I integrate the exemple in my project I have this error :
>
> INFO - Cannot find the configuration file [conf/openejb.xml].  Will attempt
> to create one for the beans deployed.
> INFO - Configuring Service(id=Default Security Service,
> type=SecurityService, provider-id=Default Security Service)
> INFO - Configuring Service(id=Default Transaction Manager,
> type=TransactionManager, provider-id=Default Transaction Manager)
> INFO - Creating TransactionManager(id=Default Transaction Manager)
> INFO - Creating SecurityService(id=Default Security Service)
> INFO - Initializing network services
> INFO - Creating ServerService(id=httpejbd)
> INFO - Using 'print=true'
> INFO - Using 'indent.xml=true'
> INFO - Creating ServerService(id=cxf-rs)
> GRAVE - Cannot instantiate the service class
> org.apache.openejb.server.cxf.rs.CxfRSService. Received error:
> java.lang.NoClassDefFoundError org/apache/cxf/common/logging/LogUtils
> java.lang.NoClassDefFoundError: org/apache/cxf/common/logging/LogUtils
>         at org.apache.cxf.BusFactory.<clinit>(BusFactory.java:71)
>         at
> org.apache.openejb.server.cxf.transport.util.CxfUtil.getDefaultBus(CxfUtil.java:76)
>         at
> org.apache.openejb.server.cxf.transport.util.CxfUtil.configureBus(CxfUtil.java:176)
>         at org.apache.openejb.server.cxf.rs.CxfRSService.init(CxfRSService.java:54)
>         at
> org.apache.openejb.server.ServiceManager.initServer(ServiceManager.java:158)
>         at
> org.apache.openejb.server.ServiceManager.initServers(ServiceManager.java:88)
>         at
> org.apache.openejb.server.SimpleServiceManager.init(SimpleServiceManager.java:149)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at
> org.apache.openejb.util.ServiceManagerProxy.invoke(ServiceManagerProxy.java:80)
>         at
> org.apache.openejb.util.ServiceManagerProxy.<init>(ServiceManagerProxy.java:66)
>         at
> org.apache.openejb.testing.ApplicationComposers.before(ApplicationComposers.java:512)
>         at
> org.apache.openejb.testing.ApplicationComposers.evaluate(ApplicationComposers.java:590)
>         at
> org.apache.openejb.junit.ApplicationComposer$DeployApplication.evaluate(ApplicationComposer.java:64)
>         at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
>         at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
>         at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
>         at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
>         at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
>         at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
>         at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
>         at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
>         at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
>         at
> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
>         at
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
>         at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
>         at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
>         at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
>         at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.cxf.common.logging.LogUtils
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>         ... 31 more
>
>
> any hint ?
>
>
>
> --
> View this message in context: http://openejb.979440.n4.nabble.com/OpenEJB-testing-REST-services-tp4668791.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.

Mime
View raw message