Thank you for your answer - but I still have the problem.
When I try to use the implementation class as service proxy, I only get a
WebException with no concrete error message. My project has by default the
cgilib.jar in the classpath, but as you suggested I added
cglib-nodep-2.2.jar as well (btw: i was unable to find out, what this lib is
for). But the error persists, here is the stacktrace:
javax.ws.rs.WebApplicationException
at
org.apache.cxf.jaxrs.client.ClientProxyImpl.reportInvalidResourceMethod(ClientProxyImpl.java:478)
at
org.apache.cxf.jaxrs.client.ClientProxyImpl.invoke(ClientProxyImpl.java:132)
at
org.apache.cxf.common.util.CglibProxyHelper$1.intercept(CglibProxyHelper.java:66)
at
test.service.MyServiceImplImpl$$EnhancerByCGLIB$$a5bf6dd2.setController(<generated>)
at test.RestServiceTestTest$1.before(RestServiceTestTest.java:97)
at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:41)
at
org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
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)
--
View this message in context:
http://cxf.547215.n5.nabble.com/JAXRS-Initializing-Service-Proxy-through-implementation-class-tp1627376p1698883.html
Sent from the cxf-user mailing list archive at Nabble.com.