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] &lt;html&gt;&lt;head&gt;&lt;title&gt;Apache Tomcat/5.5.9 - Error 
report&lt;/title&gt;&lt;style&gt;&lt;!--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;}--&gt;&lt;/style&gt; &lt;/head&gt;&lt;body&gt;&lt;h1&gt;HTTP Status 
400 - HTTP method POST is not supported by this URL&lt;/h1&gt;&lt;HR 
size=&quot;1&quot; 
noshade=&quot;noshade&quot;&gt;&lt;p&gt;&lt;b&gt;type&lt;/b&gt; Status 
report&lt;/p&gt;&lt;p&gt;&lt;b&gt;message&lt;/b&gt; &lt;u&gt;HTTP method 
POST is not supported by this 
URL&lt;/u&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;description&lt;/b&gt; &lt;u&gt;The 
request sent by the client was syntactically incorrect (HTTP method POST is 
not supported by this URL).&lt;/u&gt;&lt;/p&gt;&lt;HR size=&quot;1&quot; 
noshade=&quot;noshade&quot;&gt;&lt;h3&gt;Apache 
Tomcat/5.5.9&lt;/h3&gt;&lt;/body&gt;&lt;/html&gt;
[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] &lt;html&gt;&lt;head&gt;&lt;title&gt;Apache Tomcat/5.5.9 - Error 
> report&lt;/title&gt;&lt;style&gt;&lt;!--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;}--&gt;&lt;/style&gt; &lt;/head&gt;&lt;body&gt;&lt;h1&gt;HTTP Status 
> 400 - HTTP method POST is not supported by this URL&lt;/h1&gt;&lt;HR 
> size=&quot;1&quot; 
> noshade=&quot;noshade&quot;&gt;&lt;p&gt;&lt;b&gt;type&lt;/b&gt; Status 
> report&lt;/p&gt;&lt;p&gt;&lt;b&gt;message&lt;/b&gt; &lt;u&gt;HTTP method 
> POST is not supported by this 
> URL&lt;/u&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;description&lt;/b&gt; &lt;u&gt;The 
> request sent by the client was syntactically incorrect (HTTP method POST is 
> not supported by this URL).&lt;/u&gt;&lt;/p&gt;&lt;HR size=&quot;1&quot; 
> noshade=&quot;noshade&quot;&gt;&lt;h3&gt;Apache 
> Tomcat/5.5.9&lt;/h3&gt;&lt;/body&gt;&lt;/html&gt;
> [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