Topic
1 reply Latest Post - ‏2012-02-27T14:38:32Z by mburati
SystemAdmin
SystemAdmin
557 Posts
ACCEPTED ANSWER

Pinned topic Failed to run web service client from OSGi embedded webapp

‏2012-02-27T11:33:53Z |
Hi,

I'm using Websphere AS 7.0.0.21 to run OSGi embedded web application deployed using ear file along with other war modules. My CXF webservices client on invoking throws up below error. The steps I have already followed are:
1. Changed classloader to "Parent last" in particular web module and also in ear level.
2. Added "org.osgi.framework.system.packages" property to include "com.ibm.xml.xlxp2.jaxb.unmarshal.impl" package in framework.properties file
3. Disabled default WS engine with "-Dcom.ibm.websphere.webservices.DisableIBMJAXWSEngine=true" at server level as well as application level(Manifest files)

In spite of above changes, I get the same NoClassDefFoundError. Please suggest some ideas to work around this issue.

Caused by: org.apache.cxf.interceptor.Fault: com.ibm.xml.xlxp2.jaxb.unmarshal.impl.DeserializationContext
at org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:155)
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:121)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:133)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:82)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:452)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314)
at java.util.concurrent.FutureTask.run(FutureTask.java:149)
at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
... 80 more
Caused by: java.lang.NoClassDefFoundError: com.ibm.xml.xlxp2.jaxb.unmarshal.impl.DeserializationContext
at com.hpexstream.lal.fulfillment.route.manager.parser.PipeDefinition_JAXB_Deserialization_Stub.start(com.test.tale.fulfillment.route.manager.parser.PipeDefinition_JAXB_Deserialization_Stub.java)
at com.ibm.xml.xlxp2.jaxb.unmarshal.impl.DeserializationContext.startComplexType(DeserializationContext.java:669)
at com.ibm.xml.xlxp2.jaxb.unmarshal.impl.DeserializationContext.handleRootElementEvent(DeserializationContext.java:303)
at com.ibm.xml.xlxp2.jaxb.unmarshal.impl.JAXBDocumentScanner.produceRootElementEvent(JAXBDocumentScanner.java:186)
at com.ibm.xml.xlxp2.scan.DocumentScanner.scanRootElement(DocumentScanner.java:2234)
at com.ibm.xml.xlxp2.scan.DocumentScanner.scanProlog(DocumentScanner.java:1726)
at com.ibm.xml.xlxp2.scan.DocumentScanner.nextEvent(DocumentScanner.java:1316)
at com.ibm.xml.xlxp2.scan.DocumentScanner.parseDocumentEntity(DocumentScanner.java:1168)
at com.ibm.xml.xlxp2.jaxb.unmarshal.impl.JAXBDocumentScanner.unmarshal(JAXBDocumentScanner.java:147)
at com.ibm.xml.xlxp2.jaxb.unmarshal.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:158)
at com.ibm.xml.xlxp2.jaxb.unmarshal.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:139)
at com.test.tale.fulfillment.route.manager.parser.Parser.parse(Parser.java:47)
at com.test.tale.fulfillment.route.manager.parser.Parser.start(Parser.java:376)
at com.test.tale.fulfillment.msgcreator.util.MessageBuilder.run(MessageBuilder.java:67)
at com.test.tale.fulfillment.msgcreator.core.LaunchPipe.executePipe(LaunchPipe.java:45)
at com.test.tale.fulfillment.msgcreator.core.LaunchPipe.executePipe(LaunchPipe.java:56)
at com.test.tale.fulfillment.msgcreator.ws.impl.RestPipelineLauncherImpl.executePipeline(RestPipelineLauncherImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:173)
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:89)
... 89 more
Caused by: java.lang.ClassNotFoundException: com.ibm.xml.xlxp2.jaxb.unmarshal.impl.DeserializationContext
at java.lang.Throwable.<init>(Throwable.java:80)
at java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:76)
at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:661)
at org.apache.felix.framework.ModuleImpl.access$200(ModuleImpl.java:73)
at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1685)
at java.lang.ClassLoader.loadClass(ClassLoader.java:626)
... 112 more
Updated on 2012-02-27T14:38:32Z at 2012-02-27T14:38:32Z by mburati
  • mburati
    mburati
    352 Posts
    ACCEPTED ANSWER

    Re: Failed to run web service client from OSGi embedded webapp

    ‏2012-02-27T14:38:32Z  in response to SystemAdmin
    This forum is for discussion of consumption of Web Services using the IBM Web Experience Factory / WebSphere Portlet Factory tooling and that tool's web service support, and as such is primarily monitored by experts and customers of that tooling. You are more likely to find experts in leveraging web service APIs in an OSGi embedded webapp in the WebSphere Application Server forum (click on the WebSphere -> Forums breadcrumb link above to see the list of forums related to WebSphere products).

    ..mb1