ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rahul Sood" <So...@wyeth.com>
Subject Classpath in Ant-Urgent please help!!
Date Sun, 03 Nov 2002 21:40:16 GMT
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:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message