You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by gonso75 <go...@gmail.com> on 2009/11/20 12:00:47 UTC

Axis 2: Transport error: 404 Error: Not Found

Hello

Im trying to use AXIS's 2 wsdl2Java tool to build the client that will
consume a web service.

I've run the tool and it has generated the required classes (a singel .java
file).
I've added that to a project and many of the jar files under AXIS_HOME/lib
(until the code started building and then running).

Looks like it ready to work, but when I invoke any web service I get this
error:

INFO  [Nov 19 2009 20:55:04]: Unable to sendViaPost to
url[http://<host>/<dir>]
org.apache.axis2.AxisFault: Transport error: 404 Error: Not Found

(where <host>/<dir> have the right values).

The URL is ok, and I can invoke it without problems. Im using SOAPUI with
that same URL and it's working fine.

Where could be the problem?

Any hint will be much appreciated.


Thanks
Gonso
-- 
View this message in context: http://old.nabble.com/Axis-2%3A-Transport-error%3A-404-Error%3A-Not-Found-tp26438327p26438327.html
Sent from the Axis - User mailing list archive at Nabble.com.


Re: Axis 2: Transport error: 404 Error: Not Found

Posted by Gonzalo Floria <go...@gmail.com>.
In this trace you can see the request and the response. I can't trace what
they are getting, since I dont have access, but using SOAPUI the web service
works perfect.
Do you see where the problem may be?
Im using Axis 2 1.5.1.



DEBUG [Nov 21 2009 09:49:51]: Start getContentType: OMOutputFormat [
mimeBoundary =null rootContentId=null doOptimize=false doingSWA=false
isSOAP11=false charSetEncoding=UTF-8 xmlVersion=null contentType=null
ignoreXmlDeclaration=false autoCloseWriter=false actionProperty=null
optimizedThreshold=0]
DEBUG [Nov 21 2009 09:49:51]: getContentType= {application/soap+xml}
OMOutputFormat [ mimeBoundary =null rootContentId=null doOptimize=false
doingSWA=false isSOAP11=false charSetEncoding=UTF-8 xmlVersion=null
contentType=application/soap+xml ignoreXmlDeclaration=false
autoCloseWriter=false actionProperty=null optimizedThreshold=0]
DEBUG [Nov 21 2009 09:49:51]: contentType from the OMOutputFormat
=application/soap+xml
DEBUG [Nov 21 2009 09:49:51]: contentType returned =application/soap+xml;
charset=UTF-8; action="http://htng.org/1.1/Listener.Wsdl#Ping"
DEBUG [Nov 21 2009 09:49:52]: HttpConnectionManager.getConnection:  config =
HostConfiguration[host=http://my.hot-sos.net], timeout = 30000
DEBUG [Nov 21 2009 09:49:52]: Allocating new connection,
hostConfig=HostConfiguration[host=http://my.hot-sos.net]
DEBUG [Nov 21 2009 09:49:52]: Open connection to my.hot-sos.net:80
DEBUG [Nov 21 2009 09:49:52]: >> "POST /HTNGListener/HTNGListener.asmx
HTTP/1.1[\r][\n]"
DEBUG [Nov 21 2009 09:49:52]: Adding Host request header
DEBUG [Nov 21 2009 09:49:52]: >> "Content-Type: application/soap+xml;
charset=UTF-8; action="http://htng.org/1.1/Listener.Wsdl#Ping"[\r][\n]"
DEBUG [Nov 21 2009 09:49:52]: >> "User-Agent: Axis2[\r][\n]"
DEBUG [Nov 21 2009 09:49:52]: >> "Host: my.hot-sos.net[\r][\n]"
DEBUG [Nov 21 2009 09:49:52]: >> "Transfer-Encoding: chunked[\r][\n]"
DEBUG [Nov 21 2009 09:49:52]: >> "[\r][\n]"
DEBUG [Nov 21 2009 09:49:52]: start writeTo()
DEBUG [Nov 21 2009 09:49:52]:   preserve=false
DEBUG [Nov 21 2009 09:49:52]:   isOptimized=false
DEBUG [Nov 21 2009 09:49:52]:   isDoingSWA=false
DEBUG [Nov 21 2009 09:49:52]: MTOM optimized Threshold value =0
DEBUG [Nov 21 2009 09:49:52]: OutputStream =class
org.apache.commons.httpclient.ChunkedOutputStream
DEBUG [Nov 21 2009 09:49:52]: OMFormat = OMOutputFormat [ mimeBoundary =null
rootContentId=null doOptimize=false doingSWA=false isSOAP11=false
charSetEncoding=UTF-8 xmlVersion=null contentType=application/soap+xml
ignoreXmlDeclaration=false autoCloseWriter=false actionProperty=null
optimizedThreshold=0]
DEBUG [Nov 21 2009 09:49:52]: About to create XMLOutputFactory
implementation with classloader=sun.misc.Launcher$AppClassLoader@11b86e7
DEBUG [Nov 21 2009 09:49:52]: The classloader for
javax.xml.stream.XMLOutputFactory is: null
DEBUG [Nov 21 2009 09:49:52]: Created XMLOutputFactory = class
com.sun.xml.internal.stream.XMLOutputFactoryImpl for
classloader=sun.misc.Launcher$AppClassLoader@11b86e7
DEBUG [Nov 21 2009 09:49:52]: Size of XMLOutputFactory map =1
DEBUG [Nov 21 2009 09:49:52]: XMLStreamWriter is
com.sun.xml.internal.stream.writers.XMLStreamWriterImpl
DEBUG [Nov 21 2009 09:49:52]: Calling MTOMXMLStreamWriter.flush
DEBUG [Nov 21 2009 09:49:52]: end writeTo()
DEBUG [Nov 21 2009 09:49:52]: >> "a0[\r][\n]"
DEBUG [Nov 21 2009 09:49:52]: >> "<?xml version="1.0"
encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="
http://www.w3.org/2003/05/soap-envelope
"><soapenv:Body></soapenv:Body></soapenv:Envelope>"
DEBUG [Nov 21 2009 09:49:52]: >> "[\r][\n]"
DEBUG [Nov 21 2009 09:49:52]: >> "0"
DEBUG [Nov 21 2009 09:49:52]: >> "[\r][\n]"
DEBUG [Nov 21 2009 09:49:52]: >> "[\r][\n]"
DEBUG [Nov 21 2009 09:49:52]: Request body sent
DEBUG [Nov 21 2009 09:49:52]: << "HTTP/1.1 404 Not Found[\r][\n]"
DEBUG [Nov 21 2009 09:49:52]: << "HTTP/1.1 404 Not Found[\r][\n]"
DEBUG [Nov 21 2009 09:49:52]: << "Content-Length: 103[\r][\n]"
DEBUG [Nov 21 2009 09:49:52]: << "Content-Type: text/html[\r][\n]"
DEBUG [Nov 21 2009 09:49:52]: << "Date: Sat, 21 Nov 2009 08:49:52
GMT[\r][\n]"
DEBUG [Nov 21 2009 09:49:52]: << "Connection: close[\r][\n]"
DEBUG [Nov 21 2009 09:49:52]: << "[\r][\n]"
DEBUG [Nov 21 2009 09:49:52]:
getBundle(org.apache.axis2,org.apache.axis2.i18n,resource,null,...)
DEBUG [Nov 21 2009 09:49:52]: loadBundle: Ignoring MissingResourceException:
Can't find bundle for base name org.apache.axis2.resource, locale en_US
DEBUG [Nov 21 2009 09:49:52]: Created org.apache.axis2.i18n.resource, linked
to parent null
DEBUG [Nov 21 2009 09:49:52]:
getBundle(org.apache.axis2,org.apache.axis2.i18n,resource,null,...)
DEBUG [Nov 21 2009 09:49:52]:
org.apache.axis2.i18n.resource::handleGetObject(transportError)
INFO  [Nov 21 2009 09:49:52]: Unable to sendViaPost to url[
http://my.hot-sos.net/HTNGListener/HTNGListener.asmx]
org.apache.axis2.AxisFault: Transport error: 404 Error: Not Found
org.apache.axis2.AxisFault: Transport error: 404 Error: Not Found
    at
org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:310)
    at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:200)
    at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:76)
    at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:400)
    at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:225)
    at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)





On Sat, Nov 21, 2009 at 4:46 AM, Amila Suriarachchi <
amilasuriarachchi@gmail.com> wrote:

>
>
> On Fri, Nov 20, 2009 at 4:30 PM, gonso75 <go...@gmail.com> wrote:
>
>>
>> Hello
>>
>> Im trying to use AXIS's 2 wsdl2Java tool to build the client that will
>> consume a web service.
>>
>> I've run the tool and it has generated the required classes (a singel
>> .java
>> file).
>> I've added that to a project and many of the jar files under AXIS_HOME/lib
>> (until the code started building and then running).
>>
>> Looks like it ready to work, but when I invoke any web service I get this
>> error:
>>
>> INFO  [Nov 19 2009 20:55:04]: Unable to sendViaPost to
>> url[http://<host>/<dir>]
>> org.apache.axis2.AxisFault: Transport error: 404 Error: Not Found
>>
>> (where <host>/<dir> have the right values).
>>
>> The URL is ok, and I can invoke it without problems. Im using SOAPUI with
>> that same URL and it's working fine.
>>
>> Where could be the problem?
>>
>
> check the request and response messages using tcpmon[1]
>
> [1] http://ws.apache.org/commons/tcpmon/download.cgi
>
> thanks,
> Amila.
>
>>
>> Any hint will be much appreciated.
>>
>>
>> Thanks
>> Gonso
>> --
>> View this message in context:
>> http://old.nabble.com/Axis-2%3A-Transport-error%3A-404-Error%3A-Not-Found-tp26438327p26438327.html
>> Sent from the Axis - User mailing list archive at Nabble.com.
>>
>>
>
>
> --
> Amila Suriarachchi
> WSO2 Inc.
> blog: http://amilachinthaka.blogspot.com/
>



-- 
-----------------------------------
Gonzalo Floría Giráldez

Re: Axis 2: Transport error: 404 Error: Not Found

Posted by Amila Suriarachchi <am...@gmail.com>.
On Fri, Nov 20, 2009 at 4:30 PM, gonso75 <go...@gmail.com> wrote:

>
> Hello
>
> Im trying to use AXIS's 2 wsdl2Java tool to build the client that will
> consume a web service.
>
> I've run the tool and it has generated the required classes (a singel .java
> file).
> I've added that to a project and many of the jar files under AXIS_HOME/lib
> (until the code started building and then running).
>
> Looks like it ready to work, but when I invoke any web service I get this
> error:
>
> INFO  [Nov 19 2009 20:55:04]: Unable to sendViaPost to
> url[http://<host>/<dir>]
> org.apache.axis2.AxisFault: Transport error: 404 Error: Not Found
>
> (where <host>/<dir> have the right values).
>
> The URL is ok, and I can invoke it without problems. Im using SOAPUI with
> that same URL and it's working fine.
>
> Where could be the problem?
>

check the request and response messages using tcpmon[1]

[1] http://ws.apache.org/commons/tcpmon/download.cgi

thanks,
Amila.

>
> Any hint will be much appreciated.
>
>
> Thanks
> Gonso
> --
> View this message in context:
> http://old.nabble.com/Axis-2%3A-Transport-error%3A-404-Error%3A-Not-Found-tp26438327p26438327.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>


-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/