Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJBJAR error using ANT 1.5

 
Karl Hauschildt
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2987
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2987
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic