I am working on a dynamic web project. I copied required libraries about cxf
in lib directory. When I run this project, on first page "wsdlAddress" value
is being filled then submitted. After submission this code is being
executed:
JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance();
Client client = dcf.createClient(wsdlAddress);
Second line gives a whole page exception, the actual problem is at the
bottom :
Caused by: java.lang.NoSuchMethodException:
com.sun.codemodel.internal.JCodeModel.build(java.lang.Object)
at java.lang.Class.getMethod(Class.java:1605)
at
org.apache.cxf.common.util.ReflectionInvokationHandler.invoke(ReflectionInvokationHandler.java:50)
... 39 more
When I use cxf on standard java project it generates classes and I can use
the operations, problem comes with using web project.
I could not try with local wsdl, exception is:
java.lang.IllegalArgumentException: URI has a fragment component
at java.io.File.<init>(Unknown Source)
at
org.apache.cxf.endpoint.dynamic.DynamicClientFactory.addSchemas(DynamicClientFactory.java:510)
at
org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:315)
at
org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:234)
at
org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:227)
at
org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:182)
at
com.savvion.webservice.cxf.client.DummyClient.test(DummyClient.java:47)
--
View this message in context:
http://cxf.547215.n5.nabble.com/Need-help-on-CXF-client-tp4682440p5585150.html
Sent from the cxf-user mailing list archive at Nabble.com.