File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

EJBJAR error using ANT 1.5

Karl Hauschildt

Joined: Mar 17, 2003
Posts: 2
I get teh followng error when my build starts the ejbjar task:[ejbjar] Unable to load dependency analyzer:
The snipit form the buildfile is:
<ejbjar srcdir="${CCBase}/FIISCBSAppEJB/ejbModule" classpath="${CL_PATH}">
<websphere ejbdeploy="true"
<pathelement location="${websphere.home}/deploytool/itp/plugins/org.eclipse.core.boot/boot.jar"/>
<pathelement location="${websphere.home}/deploytool/itp/plugins/"/>
<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}"/>
<classpath path="${CL_PATH}"/>
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

Joined: Oct 01, 2001
Posts: 2968

You need bcel.jar in your ANT_HOME/lib directory. Go to:
Download the, and bcel.jar is in there.
Karl Hauschildt

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:
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

Joined: Oct 01, 2001
Posts: 2968

Yes, you're right that 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

Joined: Dec 09, 2003
Posts: 1
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:
subject: EJBJAR error using ANT 1.5
It's not a secret anymore!