I had the same problem. Try to set fork="yes":
<target name="deploy" depends="build">
<java classname="org.apache.axis.client.AdminClient" fork="yes">
<arg value="deploy.wsdd" />
<classpath refid = "classpath" />
</java>
</target>
so a new JVM is used. Regards.
Ram�n.
> -----Original Message-----
> From: Robert Evans [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 27, 2002 7:27 PM
> To: [EMAIL PROTECTED]
> Subject: Can deploy from command line, but not from Ant
>
>
> Greetings,
>
> I've been trying to get familiar with Axis, and am working
> through some
> beginning examples. I've been able to deploy the .jws based
> services,
> and as I am walking through the Axis users guide I have
> become stumped
> on manually deploying a service.
>
> If I try to deploy if from the command line, I have no
> problems. If I
> try to use Ant:
>
> (All of the Axis .jar files are in the /tomcat/common/lib directory..)
>
> <path id="classpath">
> <fileset dir="/tomcat/common/lib">
> <include name="**/*.jar"/>
> </fileset>
> </path>
>
> <target name="deploy" depends="build">
> <java classname="org.apache.axis.client.AdminClient" >
> <arg value="deploy.wsdd" />
> <classpath refid = "classpath" />
> </java>
> </target>
>
> I get the following error message:
>
> BUILD FAILED
>
> C:\work\HelloWorld2\build.xml:65: java.lang.NoClassDefFoundError:
> org/w3c/dom/Node
>
> I am using JDK 1.4 (and yes I have verified the path).
> Again, if I type
> the following at the command line, it works fine:
>
> java -classpath
> c:\tomcat\common\lib\axis.jar;c:\tomcat\common\lib\clutil.jar;
> c:\tomcat\common\lib\commons-logging.jar;c:\tomcat\common\lib\
jaxrpc.jar;c:\tomcat\common\lib\log4j-core.jar;c:\tomcat\common\lib>
\naming-common.jar;c:\tomcat\common\lib\tt-bytecode.jar;c:\tom
> cat\common\lib\wsdl4j.jar
> org.apache.axis.client.AdminClient deploy.wsdd
>
> Thanks in advance!
>
> Bob Evans
> JHU/APL
>