File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes ANT 1.4 With Websphere 4.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "ANT 1.4 With Websphere 4.0 " Watch "ANT 1.4 With Websphere 4.0 " New topic
Author

ANT 1.4 With Websphere 4.0

Abiram Radhakrishnan
Greenhorn

Joined: Jun 26, 2002
Posts: 13
Hi,
I have written the build file for EJB Task as follows This is the small portion of the my buildfile where I get the Error
This is my buildfile portion
<target name="EJBjar" depends="compile" description="To jar the Compiled Source" >
<ejbjar naming="descriptor" descriptordir="${descriptordir}" srcdir="${buildDir}" destdir="${srcDir}">
<!--<dtd location="${dd}"/>-->
<include name="Hello-Deploy.xml"/>
<include name="*.dtd"/>
<websphere dbvendor="DB2UDBWIN_V71" ejbdeploy="false" oldCMP="false" tempdir="/tmp" destdir="${srcDir}" dbVendor="DB2UDBWIN_V71">
<wasclasspath>
<pathelement location="${was4.home}/deploytool/itp/plugins/org.eclipse.core.boot/boot.jar"/>
<pathelement location="${was4.home}/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime/batch.jar"/>
<pathelement location="${was4.home}/lib/xerces.jar"/>
<pathelement location="${was4.home}/lib/ivjejb35.jar"/>
<pathelement location="${was4.home}/lib/j2ee.jar"/>
<pathelement location="${was4.home}/lib/vaprt.jar"/>
</wasclasspath>
</websphere>
</ejbjar>
</target>
The Error information I get is
*********************************
EJBjar.xml:31: The <ejbjar> task doesn't support the nested "websphere" element.
**********************************
I have followed the same steps as in the doccument and Iam not using nested <websphere> element as stated only one <websphere> element that to same as given in the doccument of EJB Task I donot undersatnd where it goes wrong
Thanks
R.Abiram
Erik Hatcher
Author
Ranch Hand

Joined: Jun 11, 2002
Posts: 111
Try upgrading to Ant 1.5 and see if the problem persists. Ant 1.4 is over a year old at this point, and Ant 1.5 brings many bug fixes and enhancements.


Co-author of Lucene in Action
Abiram Radhakrishnan
Greenhorn

Joined: Jun 26, 2002
Posts: 13
Hi,
I have Downloaded the ANT 1.5 & tried with the same then also getting the same Error
Can U give me the diifrent suggetions
R.Abiram
Erik Hatcher
Author
Ranch Hand

Joined: Jun 11, 2002
Posts: 111
Are you sure you aren't still using the older version of Ant?
Please take this issue over to ant-user e-mail list to discuss. I'm pretty sure this has been discussed there recently - so search the archives.
Originally posted by Abiram Radhakrishnan:
Hi,
I have Downloaded the ANT 1.5 & tried with the same then also getting the same Error
Can U give me the diifrent suggetions
R.Abiram
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ANT 1.4 With Websphere 4.0