hillel (5) [Avatar] Offline
#1
[ejbjar] Unable to load dependency analyzer: org.apache.tools.ant.util.depend.bcel.AncestorAnalyzer - dependent class not found: org/apache/bcel/classfile/ClassParser

I've included ant-apache-bcel.jar but it still does not help.

Any ideas as this would be a useful class
habuma (279) [Avatar] Offline
#2
Re: [Error when compiling Chapter3 build.xml
Hmmm...This appears to be a problem with Ant's "ejbjar" task (not XDoclet). Which version of Ant are you using?

Although I've never encountered this exact problem, I have had trouble using XDoclet 1.2 with Ant 1.6.x. The problems between XDoclet 1.2 and Ant 1.6.x may be resolved in the newest stuff, but I'm still using Ant 1.5.3 on all of the project where I use XDoclet, so I don't know.

I'll try to help, but give me more details on which version of Ant and XDoclet you are working with so that I know how to help.
hillel (5) [Avatar] Offline
#3
Re: [Error when compiling Chapter3 build.xml
I'm using apache-ant-1.6.2
In xdocletlib/
ant-apache-bcel.jar commons-logging.jar xdoclet-ejb-module-1.2.1.jar
ant.jar log4j.jar xjavadoc-1.0.3.jar
bcel-5.1.jar
commons-collections-2.0.jar xdoclet-1.2.1.jar

In lib/
ant-apache-bcel.jar jboss-j2ee.jar
I've tried j2ee.jar instead of jboss-j2ee.jar and you get the same error.
I've put ant-apache-bcel.jar in both directories to try get the xdoclet to read it.

Thanks for the help