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 Vinicius Carvalho <ja...@gmail.com> on 2005/09/20 20:39:06 UTC
HTTP Method POST not supported
Hello I'm running AdminClient to deploy my webservices in an embebed Axis
installation on my existant web-app.
Here's my ant script:
<java classname="org.apache.axis.client.AdminClient"
fork="true"
failonerror="true"
classpathref="axis.classpath"
>
<classpath refid="project.class.path"/>
<arg value="-lhttp://localhost:8080/mgjug/servlet/AdminServlet"/>
<arg value="${wsdd.dir}/mgjug.wsdd"/>
</java>
Here's the error:
Buildfile: D:\workspace\MGJUG\build.xml
init:
publish-webservices:
[java] - Unable to find required classes (javax.activation.DataHandler and
javax.mail.internet.MimeMultipart). Attachment support is disabled.
[java] Processing file web/wsdd/mgjug.wsdd
[java] Exception: AxisFault
[java] faultCode: {http://xml.apache.org/axis/}HTTP
[java] faultSubcode:
[java] faultString: (400)HTTP method POST is not supported by this URL
[java] faultActor:
[java] faultNode:
[java] faultDetail:
[java] {}:return code: 400
[java] <html><head><title>Apache Tomcat/5.5.9 - Error
report</title><style><!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
{color : black;}A.name {color : black;}HR {color :
#525D76;}--></style> </head><body><h1>HTTP Status
400 - HTTP method POST is not supported by this URL</h1><HR
size="1"
noshade="noshade"><p><b>type</b> Status
report</p><p><b>message</b> <u>HTTP method
POST is not supported by this
URL</u></p><p><b>description</b> <u>The
request sent by the client was syntactically incorrect (HTTP method POST is
not supported by this URL).</u></p><HR size="1"
noshade="noshade"><h3>Apache
Tomcat/5.5.9</h3></body></html>
[java] {http://xml.apache.org/axis/}HttpErrorCode:400
BUILD FAILED
D:\workspace\MGJUG\build.xml:140: Java returned: 1
Regards
--
"Everything should be made as simple as possible, but not simpler."
Albert Einstein
Re: HTTP Method POST not supported
Posted by Vinicius Carvalho <ja...@gmail.com>.
Antoher thing is, on the default axis application
(localhost:8080/axis/servlet/AdminServlet)
it works :? ??????
On 9/20/05, Vinicius Carvalho <ja...@gmail.com> wrote:
>
> Hello I'm running AdminClient to deploy my webservices in an embebed Axis
> installation on my existant web-app.
> Here's my ant script:
>
> <java classname="org.apache.axis.client.AdminClient"
> fork="true"
> failonerror="true"
> classpathref="axis.classpath"
>
> >
> <classpath refid="project.class.path"/>
> <arg value="-lhttp://localhost:8080/mgjug/servlet/AdminServlet"/>
> <arg value="${wsdd.dir}/mgjug.wsdd"/>
> </java>
>
> Here's the error:
>
> Buildfile: D:\workspace\MGJUG\build.xml
> init:
> publish-webservices:
> [java] - Unable to find required classes (javax.activation.DataHandler and
> javax.mail.internet.MimeMultipart). Attachment support is disabled.
> [java] Processing file web/wsdd/mgjug.wsdd
> [java] Exception: AxisFault
> [java] faultCode: {http://xml.apache.org/axis/}HTTP<http://xml.apache.org/axis/%7DHTTP>
> [java] faultSubcode:
> [java] faultString: (400)HTTP method POST is not supported by this URL
> [java] faultActor:
> [java] faultNode:
> [java] faultDetail:
> [java] {}:return code: 400
> [java] <html><head><title>Apache Tomcat/5.5.9 - Error
> report</title><style><!--H1
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
> H2
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
> H3
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
> BODY
> {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
> P
> {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
> {color : black;}A.name {color : black;}HR {color :
> #525D76;}--></style> </head><body><h1>HTTP Status
> 400 - HTTP method POST is not supported by this URL</h1><HR
> size="1"
> noshade="noshade"><p><b>type</b> Status
> report</p><p><b>message</b> <u>HTTP method
> POST is not supported by this
> URL</u></p><p><b>description</b> <u>The
> request sent by the client was syntactically incorrect (HTTP method POST is
> not supported by this URL).</u></p><HR size="1"
> noshade="noshade"><h3>Apache
> Tomcat/5.5.9</h3></body></html>
> [java] {http://xml.apache.org/axis/}HttpErrorCode:400<http://xml.apache.org/axis/%7DHttpErrorCode:400>
>
> BUILD FAILED
> D:\workspace\MGJUG\build.xml:140: Java returned: 1
>
> Regards
>
> --
> "Everything should be made as simple as possible, but not simpler."
> Albert Einstein
--
"Everything should be made as simple as possible, but not simpler."
Albert Einstein