Title: RE: Can deploy from command line, but not from Ant

You need a JAXP-compliant XML parser such as Xerces or Crimson in your CLASSPATH.

> -----Original Message-----
> From: Robert Evans [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 27, 2002 12: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\commo
> n\lib\naming-common.jar;c:\tomcat\common\lib\tt-bytecode.jar;c
> :\tomcat\common\lib\wsdl4j.jar
> org.apache.axis.client.AdminClient deploy.wsdd
>
> Thanks in advance!
>
> Bob Evans
> JHU/APL
>



***************************************************************************************
WARNING: All e-mail sent to and from this address will be received or
otherwise recorded by the A.G. Edwards corporate e-mail system and is
subject to archival, monitoring or review by, and/or disclosure to,
someone other than the recipient.
***************************************************************************************

Reply via email to