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 Juan Alvarez <ja...@gmail.com> on 2006/05/31 18:11:38 UTC

axis-admin ant task problem

Hello. I'm using axis1.1. My problem is tha the axis ant task don't work
properly
This is that I have:
<axis-admin
  url="http://localhost:8080/axis1_1/services/AdminService"
  xmlfile="${endpoint-stub.wsdd}" />

When I execute this ant task I obtain the next error from ant

BUILD FAILED
  java.lang.NoSuchMethodError: org.apache.axis.client.AdminClient.<init>(Z)V

I enabled the AdminService in web.xml removing comments in
<servlet-mapping>
    <servlet-name>AdminServlet</servlet-name>
    <url-pattern>/servlet/AdminServlet</url-pattern>
  </servlet-mapping>

and put the 'true' value in the enableRemoteAdmin in AdminService in
server-config.wsdd as in next

 <service name="AdminService" provider="java:MSG">
  <parameter name="allowedMethods" value="AdminService"/>
  <parameter name="enableRemoteAdmin" value="true"/>
  <parameter name="className" value="org.apache.axis.utils.Admin"/>
  <namespace>http://xml.apache.org/axis/wsdd/</namespace>
 </service>

Note:
The alternative to publish a ws (java -cp $CLASSPATH AdminClient options)
does work correctly.

Thanks in advance.

Re: axis-admin ant task problem

Posted by Juan Alvarez <ja...@gmail.com>.
Thansk Warren. I solved the problem. It's was only a axis version problem
between axis 1.1 and 1.3. In Eclipse ant plugin I has pointing to a wrong
jar file.

bye.

Re: axis-admin ant task problem

Posted by Warren Crossing <wa...@nec.com.au>.
Upgrade to axis 1-4? Just download the asxis1.4.war webapp.
run
javap -classpath $AXIS_CLIENTJAR org.apache.axis.client.AdminClient is 
there a constructor(boolean)?

Juan Alvarez wrote:
> Hello. I'm using axis1.1. My problem is tha the axis ant task don't work
> properly
> This is that I have:
> <axis-admin
>  url="http://localhost:8080/axis1_1/services/AdminService"
>  xmlfile="${endpoint-stub.wsdd}" />
> 
> When I execute this ant task I obtain the next error from ant
> 
> BUILD FAILED
>  java.lang.NoSuchMethodError: org.apache.axis.client.AdminClient.<init>(Z)V
> 
> I enabled the AdminService in web.xml removing comments in
> <servlet-mapping>
>    <servlet-name>AdminServlet</servlet-name>
>    <url-pattern>/servlet/AdminServlet</url-pattern>
>  </servlet-mapping>
> 
> and put the 'true' value in the enableRemoteAdmin in AdminService in
> server-config.wsdd as in next
> 
> <service name="AdminService" provider="java:MSG">
>  <parameter name="allowedMethods" value="AdminService"/>
>  <parameter name="enableRemoteAdmin" value="true"/>
>  <parameter name="className" value="org.apache.axis.utils.Admin"/>
>  <namespace>http://xml.apache.org/axis/wsdd/</namespace>
> </service>
> 
> Note:
> The alternative to publish a ws (java -cp $CLASSPATH AdminClient options)
> does work correctly.
> 
> Thanks in advance.
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org