cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SaravananRamamoorthy <saravanan.ramamoorth...@gmail.com>
Subject jaxws and jaxrs publishing issue in was
Date Sun, 21 Feb 2010 16:32:12 GMT

Hi All,

In my application, I need to use both jaxrs and jaxws services.
so I have created the services and publish the services and deployed in
tomcat. It works fine.
But when in Webspehere application server 6.1 , It throws the following
error.

[2/21/10 21:49:22:718 IST] 00000024 PhaseIntercep W
org.apache.cxf.phase.PhaseInterceptorChain doIntercept Application has
thrown exception, unwinding now
                                 org.apache.cxf.interceptor.Fault:
org/w3c/dom/Node.setUserData(Ljava/lang/String;Ljava/lang/Object;Lorg/w3c/dom/UserDataHandler;)Ljava/lang/Object;
	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:130)
	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:432)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:284)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	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:236)
	at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:109)
	at
org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDestination.java:98)
	at
org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:394)
	at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:133)
	at
org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:142)
	at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:179)
	at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:108)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
	at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:159)
	at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:989)
	at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:501)
	at
com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)
	at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3168)
	at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:254)
	at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
	at
com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
	at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:96)
	at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
	at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
	at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:274)
	at
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
	at
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
	at
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
	at
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
	at
com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
	at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
	at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194)
	at
com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741)
	at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863)
	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
Caused by: java.lang.VerifyError:
org/w3c/dom/Node.setUserData(Ljava/lang/String;Ljava/lang/Object;Lorg/w3c/dom/UserDataHandler;)Ljava/lang/Object;
	at org.apache.cxf.staxutils.StaxUtils.addLocation(StaxUtils.java:941)
	at org.apache.cxf.staxutils.StaxUtils.startElement(StaxUtils.java:799)
	at org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:868)
	at org.apache.cxf.staxutils.StaxUtils.read(StaxUtils.java:755)
	at
org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:217)
	at
org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:179)
	at
org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:91)
	at org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:205)
	at org.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:148)
	at
org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:65)
	at javax.xml.ws.Service.<init>(Service.java:36)
	at com.nsn.it.egg.EGGImplService.<init>(EGGImplService.java:44)
	at com.nsn.wsclient.EGGCmsClient.getItem(EGGCmsClient.java:40)
	at com.nsn.jaxrs.CmsServices.getItem(CmsServices.java:54)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:615)
	at
org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:173)
	at
org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:89)
	... 39 more

But when I remove jaxrs configuration or jaxws configuration it works fine.
The problem is when configured both simultaneously, it throws error.

My web.xml configuration:


<servlet>
 <servlet-name>CXFServlet</servlet-name>

<servlet-class>org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet</servlet-class>
 
 <init-param>
  <param-name>javax.ws.rs.Application</param-name>
  <param-value>com.test.RestServer</param-value>
 </init-param>
<load-on-startup>1</load-on-startup>
</servlet>
  <servlet-mapping>
    <servlet-name>CXFServlet</servlet-name>
    <url-pattern>/*</url-pattern>
  </servlet-mapping>
  

<servlet>
  <servlet-name>CXFServletWS</servlet-name>
  <servlet-class>com.test.WSServer</servlet-class>
  <load-on-startup>1</load-on-startup>
</servlet>
  <servlet-mapping>
    <servlet-name>CXFServletWS</servlet-name>
    <url-pattern>/services/*</url-pattern>
  </servlet-mapping> 

I do not use any spring stuff.

Please help me to find out the issue.

Regards
Saravanan
   










-- 
View this message in context: http://old.nabble.com/jaxws-and-jaxrs-publishing-issue-in-was-tp27676857p27676857.html
Sent from the cxf-user mailing list archive at Nabble.com.


Mime
View raw message