You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Mahfudh Junaryanto <ma...@readiminds.com> on 2003/01/10 09:10:36 UTC
Ant Class Loader Problem
Hi,
I found that Ant does not properly load classes sometimes. Here is one
of the script:
<target name="deploy_ws" depends="deploy">
<echo message="writing Axis at url:${url} wsdd:${wsdd} " />
<java classname="org.apache.axis.client.AdminClient"
output="jboss_out.txt">
<arg value="-l ${url}"/>
<arg value="${wsdd}"/>
<classpath>
<pathelement location="./lib/axis.jar"/>
<pathelement location="./lib/commons-logging.jar"/>
<pathelement location="./lib/dom.jar"/>
<!-- <fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
<pathelement location="./lib/log4j-1.2.4.jar"/>
<pathelement location="./lib/jaxrpc.jar"/>
<pathelement location="./lib/saaj.jar"/>
<pathelement location="./lib/tt-bytecode.jar.jar"/>
<pathelement location="./lib/commons-logging.jar"/>
<pathelement location="./lib/wsdl4j.jar"/>
<pathelement location="./lib/axis.jar"/>
-->
</classpath>
</java>
</target>
The error I encountered:" ClassNotFound Error for org.w3c.dom. ..." . I
have tried to use different methods, from speifying the jar file one by
one or use fileset Any idea how to solve this?
Thanks.
Re: Ant Class Loader Problem
Posted by Conor MacNeill <co...@cortexebusiness.com.au>.
Mahfudh Junaryanto wrote:
>
>
> Hi,
>
>
> The error I encountered:" ClassNotFound Error for org.w3c.dom. ..." . I
> have tried to use different methods, from speifying the jar file one by
> one or use fileset Any idea how to solve this?
The simplest fix for you is to specify fork="yes"
Conor
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>