cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tor Arne Kvaløy <torar...@pvv.org>
Subject Re: "HTTP/1.1 404 Not Found" when calling an axis2 ws service
Date Thu, 09 Oct 2008 13:48:16 GMT

I have figured it out. Or somehow.

One of the maven subdeps of the wss4j through cxf-rt-ws-security did make
this error appear. Solved it by:

<exclusion>
					<groupId>opensaml</groupId>
					<artifactId>opensaml</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.apache.santuario</groupId>
					<artifactId>xmlsec</artifactId>
				</exclusion>
				<exclusion>
					<groupId>bouncycastle</groupId>
					<artifactId>bcprov-jdk13</artifactId>
				</exclusion>
				<exclusion>
					<groupId>bouncycastle</groupId>
					<artifactId>bcprov-jdk15</artifactId>
				</exclusion>

I tried to figure out which one it was, but couldn't .

Tor



Tor Arne Kvaløy wrote:
> 
> Hello,
> 
> I am experiencing a strange behavior of CXF calling an Axis2 ws service. 
> The strange thing is that it works from a unit-test, but not from an
> application(actually from a Spring WS).
> 
> Here is the request:
> 
> INFO: Outbound Message
> ---------------------------
> Encoding: UTF-8
> Headers: {SOAPAction=["urn:getDivisjonLookup"], Accept=[*]}
> Messages:
> Payload: <soap:Envelope
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body
> /></soap:Envelope>
> --------------------------------------
> 09.okt.2008 14:36:44 org.apache.cxf.transport.http.HTTPConduit
> setURLRequestHeaders
> FINE: Sending POST Message with Headers to
> http://sgm710.test.no:8080/axis2/services/OIMWebservice Conduit
> :{http://oimwebservice.avinor.no}OIMWebserviceSOAP11port_http.http-conduit
> Content-Type: text/xml; charset=UTF-8
> 
> And the response:
> 
> FINE: Header fields:
>     Proxy-Connection: [Keep-Alive]
>     Connection: [Keep-Alive]
>     Content-Length: [624]
>     Pragma: [no-cache]
>     Content-Type: [text/html; charset=utf-8]
>     null: [HTTP/1.1 404 Not Found]
>     Cache-Control: [no-cache]
> 
> 09.okt.2008 14:36:44 org.apache.cxf.phase.PhaseInterceptorChain
> doIntercept
> INFO: Interceptor has thrown exception, unwinding now
> org.apache.cxf.interceptor.Fault: Could not send Message.
>         at
> org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)
>         at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
>         at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:296)
>         at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:242)
>         at
> org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
>         at
> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:178)
> 
> Caused by: java.io.IOException: Not Found
>         at
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1962)
>         at
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1865)
> 
> So, what the error says is "404: Not Found.", but the address is correct,
> it works from the unit test!
> 
> Any help, suggestions are greatly appreciated!
> 
> Versions tried: 2.0.7, 2.1, 2.1.1 and 2.1.2
> 
> Cheers,
> Tor
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/%22HTTP-1.1-404-Not-Found%22-when-calling-an-axis2-ws-service-tp19898282p19899358.html
Sent from the cxf-user mailing list archive at Nabble.com.


Mime
View raw message