*
The moose likes Ant, Maven and Other Build Tools and the fly likes EJBJAR error using ANT 1.5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "EJBJAR error using ANT 1.5" Watch "EJBJAR error using ANT 1.5" New topic
Author

EJBJAR error using ANT 1.5

Karl Hauschildt
Greenhorn

Joined: Mar 17, 2003
Posts: 2
I get teh followng error when my build starts the ejbjar task:[ejbjar] Unable to load dependency analyzer: org.apache.tools.ant.util.depend
.bcel.AncestorAnalyzer
The snipit form the buildfile is:
<ejbjar srcdir="${CCBase}/FIISCBSAppEJB/ejbModule" classpath="${CL_PATH}">
<websphere ejbdeploy="true"
oldCMP="false"
tempdir="/tmp"
destdir="${earTip}">
<wasclasspath>
<pathelement location="${websphere.home}/deploytool/itp/plugins/org.eclipse.core.boot/boot.jar"/>
<pathelement location="${websphere.home}/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime/batch.jar"/>
<pathelement location="${websphere.home}/lib/xerces.jar"/>
<pathelement location="${websphere.home}/lib/ivjejb35.jar"/>
<pathelement location="${websphere.home}/lib/j2ee.jar"/>
<pathelement location="${websphere.home}/lib/vaprt.jar"/>
<pathelement location="${ANTJARS}"/>
</wasclasspath>
<classpath path="${CL_PATH}"/>
</websphere>
</ejbjar>
and ${CL_PATH} does include the 3 or 4 jars in the Ant 1.5 distribution among them is optiona.jar where the AncestorAnalyser class lives.
Amy suggestions greatly appreciated!
Greg Charles
Sheriff

Joined: Oct 01, 2001
Posts: 2835
    
  11

You need bcel.jar in your ANT_HOME/lib directory. Go to:
http://jakarta.apache.org/builds/jakarta-bcel/release/v5.0/
Download the bcel-5.0.zip, and bcel.jar is in there.
Karl Hauschildt
Greenhorn

Joined: Mar 17, 2003
Posts: 2
Thank you for the suggestion but it did not work.
The complaint is pretty specific in that it states: "Unable to load dependency analyzer: org.apache.tools.ant.util.depend
.bcel.AncestorAnalyzer"
I can locate that class in the ANT package provide optional.jar. It does not exist in the bcel.jar.
My feeling is I am up against a classpath problem but can't put my finger on it yet.
Greg Charles
Sheriff

Joined: Oct 01, 2001
Posts: 2835
    
  11

Yes, you're right that org.apache.tools.ant.util.depend.bcel.AncestorAnalyzer is in optional.jar. However, it uses org.apache.bcel.classfile.ClassParser, which is in bcel.jar. Are you sure you got bcel.jar into your Ant lib?
Oscar Azanon
Greenhorn

Joined: Dec 09, 2003
Posts: 1
Hi,
I had just the same problem with the same error message. Just downloaded bcel, copied it into ant.home/lib and it started working right away.
hope this helps.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJBJAR error using ANT 1.5
 
Similar Threads
using ant to generate ejb deploy code
ejbjar and websphere!
Ant task ejbjar for Websphere
What ejbjar task does ?
Unable to deploy ejbs