ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rahul Sood" <>
Subject Classpath in Ant-Urgent please help!!
Date Sun, 03 Nov 2002 21:40:16 GMT

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
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" /> 
- <target name="wsgen">
- <wsgen destpath="weather.ear" context="/weather">
- <rpcservices path="weather.jar">
  <rpcservice bean="statelessSession" uri="/weatheruri" /> 

Thanks a lot

Rahul Sood
IT Engineer
Wyeth Research
(T)  +44 (0)1628 683432
Email :
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:   <>
For additional commands, e-mail: <>

View raw message