Did you try in Websphere APplication Server 7. Or Did you try installing the feature pack in 6.1?
mule_user wrote: > > 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, Servlet 2.4). > 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 as per the above example, I get the > error below: > > org.apache.cxf.interceptor.Fault: Response was of unexpected text/html > ContentType. Incoming portion of HTML stream: <!DOCTYPE HTML PUBLIC > "-//W3C//DTD HTML 4.01 Transitional//EN" > "http://www.w3.org/TR/html4/loose.dtd"><HTML><HEAD><LINK type="text/css" > rel="stylesheet" href="/Ws3/?stylesheet=1"><meta http-equiv=content-type > content="text/html; charset=UTF-8"><title>CXF - Service > list</title></head><body>Available services: > <table cellpadding="1" cellspacing="1" border="1" > width="100%"><tr><td>HelloWorld > sayHi > </td><td>Endpoint address: http://localhost:9081/Ws3/HelloWorld > Wsdl: {http://spring.demo/}HelloWorldImplService > Target namespace: http://spring.demo/</td></tr></table></body></html> > 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: <!DOCTYPE HTML PUBLIC > "-//W3C//DTD HTML 4.01 Transitional//EN" > "http://www.w3.org/TR/html4/loose.dtd"><HTML><HEAD><LINK type="text/css" > rel="stylesheet" href="/Ws3/?stylesheet=1"><meta http-equiv=content-type > content="text/html; charset=UTF-8"><title>CXF - Service > list</title></head><body>Available services: > <table cellpadding="1" cellspacing="1" border="1" > width="100%"><tr><td>HelloWorld > sayHi > </td><td>Endpoint address: http://localhost:9081/Ws3/HelloWorld > Wsdl: {http://spring.demo/}HelloWorldImplService > Target namespace: http://spring.demo/</td></tr></table></body></html> > 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: <!DOCTYPE HTML > PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" > "http://www.w3.org/TR/html4/loose.dtd"><HTML><HEAD><LINK type="text/css" > rel="stylesheet" href="/Ws3/?stylesheet=1"><meta http-equiv=content-type > content="text/html; charset=UTF-8"><title>CXF - Service > list</title></head><body>Available services: > <table cellpadding="1" cellspacing="1" border="1" > width="100%"><tr><td>HelloWorld > sayHi > </td><td>Endpoint address: http://localhost:9081/Ws3/HelloWorld > Wsdl: {http://spring.demo/}HelloWorldImplService > Target namespace: http://spring.demo/</td></tr></table></body></html> > 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 > > -- View this message in context: http://www.nabble.com/CXF2.1.6-in-WebSphere-6.1-test-server-RAD7.5---2-errors-tp25515908p25620331.html Sent from the cxf-user mailing list archive at Nabble.com.
