Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CXF 2.1.6 in RAD 7.5 (WebSphere Test server 6.1) - 2 errors

19 views
Skip to first unread message

OceanBreeze

unread,
Sep 18, 2009, 5:23:42 PM9/18/09
to
I am using the link below for learning purposes:

http://cwiki.apache.org/CXF20DOC/writing-a-service-with-spring.html

I am using CXF 2.1.6 in RAD 7.5 (WebSphere Test server 6.1). I have placed all the jar files that come with CXF 2.1.6 in web-inf/lib folder of the application. I probably have more jar files that I need in that web-in/lib. However, that should not be an issue.

I get the following errors:

1. The server and the application (deployed in the server) both start. But I get a pop-up message saying:

Publishing failed
Deploying MyExampleWebService
Deployment from com.ibm.ast.ws.jaxws.deployer.JAXWSDeployer had errors:

Tools for WebSphere V6.1 must be installed in order to generate WebSphere V6.1 compliant code.

2. When I execute the client code, I get the error below:

org.apache.cxf.interceptor.Fault: Response was of unexpected text/html ContentType. Incoming portion of HTML stream: CXF - Service list Available services:
HelloWorld sayHi Endpoint address: http://localhost:9081/Ws3/HelloWorld
Wsdl: {http://spring.demo/}HelloWorldImplService
Target namespace: http://spring.demo/
at org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInInterceptor.java:73)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:658)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2136)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2019)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1944)
at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:632)
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:472)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:302)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:254)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:127)
at $Proxy47.sayHi(Unknown Source)
at demo.spring.client.Client.main(Client.java:20)
Exception in thread "main" javax.xml.ws.WebServiceException: org.apache.cxf.interceptor.Fault: Response was of unexpected text/html ContentType. Incoming portion of HTML stream: CXF - Service list Available services:
HelloWorld sayHi Endpoint address: http://localhost:9081/Ws3/HelloWorld
Wsdl: {http://spring.demo/}HelloWorldImplService
Target namespace: http://spring.demo/
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:145)
at $Proxy47.sayHi(Unknown Source)
at demo.spring.client.Client.main(Client.java:20)
Caused by: org.apache.cxf.interceptor.Fault: Response was of unexpected text/html ContentType. Incoming portion of HTML stream: CXF - Service list Available services:
HelloWorld sayHi Endpoint address: http://localhost:9081/Ws3/HelloWorld
Wsdl: {http://spring.demo/}HelloWorldImplService
Target namespace: http://spring.demo/
at org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInInterceptor.java:73)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:658)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2136)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2019)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1944)
at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:632)
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:472)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:302)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:254)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:127)
... 2 more


Any input will be appreciated.
Regards,
Sam

prve...@gmail.com

unread,
Sep 24, 2009, 4:17:18 AM9/24/09
to
I am also getting the same error when i deploy my application, which i developed similar to the example given in CXF. If any one has a solution please share here in this forum.
0 new messages