You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Rahul Sood <So...@wyeth.com> on 2002/11/03 22:40:16 UTC

Classpath in Ant-Urgent please help!!

Hi!

I am trying to use ant to build a .ear file using a .jar file I have created.

I am attcahing my build.xml herewith. I am using the weblogic's wsgen task to accomplish this.

I get a NoClassDefFound for weblogicx/xml/stream/xmlEvent...............
can u please tell me what jar file is needed for this and also how to set the classpath in ant, as ant does not seem to read the classpath set in the environment variables. Please help.
i have tried setting the classpath using javac in build.xml but this did not help.....here is my build.xml

**************************************
 <project name="weather-webservice" default="wsgen">
  <taskdef name="wsgen" classname="weblogic.ant.taskdefs.ejb.WSGen" classpath="c:/bea/weblogic/lib/weblogic.jar" /> 
  <property environment="env" /> 
- <target name="build">
- <javac srcdir="." debug="true" optimize="false" includes="**/*.java">
- <classpath>
  <pathelement location="c:/bea/weblogic/lib/xmlx.jar" /> 
  <pathelement location="c:/j2sdkee1.3.1/lib/j2ee.jar" /> 
  </classpath>
  </javac>
  </target>
- <target name="wsgen">
- <wsgen destpath="weather.ear" context="/weather">
- <rpcservices path="weather.jar">
  <rpcservice bean="statelessSession" uri="/weatheruri" /> 
  </rpcservices>
  </wsgen>
  </target>
  </project>
*****************************************8

Thanks a lot
Rahul

Rahul Sood
IT Engineer
Wyeth Research
(T)  +44 (0)1628 683432
Email : soodr@wyeth.com
This communication (including any attachments) is confidential and may contain information that is legally privileged or exempt from disclosure.  The communication is intended only for the use of the addressee(s) named.  If you are not an intended recipient, or the employee or agent responsible for delivery to an intended recipient, please note that any unauthorised viewing, copying, printing, storage, dissemination or distribution of this communication is strictly prohibited.  If you have received this communication in error, please notify us immediately by replying to the message and then delete it from your computer.

Wyeth Research (U.K.) Limited.   Registered in England & Wales No. 1 813 687
Registered Office: Huntercombe Lane South, Taplow, Maidenhead, Berkshire, SL6 0PH, UK



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>