I get this error message when trying to use the ejbjar task with ant 1.5: > [ejbjar] Unable to load dependency analyzer: >org.apache.tools.ant.util.depend.bcel.AncestorAnalyzer
the ant task as written (see below) works fine in 1.4.1, but when i upgrade, i get the message above. complete output of "ant -debug clean ear" is attached in "ouput.log", and excerpts from it are below. i searched through the archive and found this message from Conor MacNeill: > http://www.mail-archive.com/ant-user@jakarta.apache.org/msg17071.html which tells me that i need to have bcel.jar in $ANT_HOME/lib, which i do: Directory of c:\ant\lib 03/27/2002 12:25p <DIR> . 03/27/2002 12:25p <DIR> .. 07/09/2002 11:13a 716,139 ant.jar 07/17/2002 06:10p 345,549 bcel.jar 07/09/2002 11:13a 653,661 optional.jar 07/09/2002 11:20a 933,730 xercesImpl.jar 07/09/2002 11:20a 108,484 xml-apis.jar thanks in advance! --e-- p.s. following is some relevant information. ********************************************************************* here is the relevant ant task: ********************************************************************* <target name="ejbjar" depends="compile"> <ejbjar dependency="full" srcdir="${build.dir}" destdir="${jar.dir}" descriptordir="${etc.dir}" basejarname="${ant.project.name}-ejb" classpath="${classpath}" includes="**/ejb-jar.xml"> <dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" location="http://java.sun.com/dtd/ejb-jar_2_0.dtd"/> <weblogic destdir="${jar.dir}" noejbc="true"/> <exclude name="**/weblogic*.xml"/> </ejbjar> </target> ********************************************************************* here is the output of ant -diagnostics: ********************************************************************* ------- Ant diagnostics report ------- Apache Ant version 1.5 compiled on July 9 2002 ------------------------------------------- Implementation Version (JDK1.2+ only) ------------------------------------------- core tasks : 1.5 optional tasks : 1.5 ------------------------------------------- ANT_HOME/lib jar listing ------------------------------------------- ant.jar (716139 bytes) optional.jar (653661 bytes) xercesImpl.jar (933730 bytes) xml-apis.jar (108484 bytes) bcel.jar (345549 bytes) ------------------------------------------- Tasks availability ------------------------------------------- com/starbase/starteam/Item ********************************************************************* here is the relevant output of ant -debug: ********************************************************************* C:\projects\Gartner\src\camps\2.0>ant -debug ear Classpath in use by ant: c:\jdk1.3.1\lib\tools.jar;c:\ant\lib\bcel.jar;c:\ant\lib\xml-apis.jar;c:\ant\lib\xercesImpl.jar; c:\ant\lib\optional.jar;c:\ant\lib\ant.jar; . . . Apache Ant version 1.5 compiled on July 9 2002 Buildfile: build.xml Detected Java version: 1.3 in: c:\jdk1.3.1\jre . . . +User task: jpcovmerge org.apache.tools.ant.taskdefs.optional.sitraka.CovMerge +User task: ejbjar org.apache.tools.ant.taskdefs.optional.ejb.EjbJar +User task: war org.apache.tools.ant.taskdefs.War . . . ejbjar: [ejbjar] Unable to load dependency analyzer: org.apache.tools.ant.util.depend.bcel.AncestorAnalyzer fileset: Setup scanner in dir C:\projects\Gartner\src\camps\2.0\etc with patternSet{ includes: [**/ejb-jar.xml] excludes : [**/weblogic*.xml] } [ejbjar] 1 deployment descriptors located. [ejbjar] Resolved -//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN to url http://java.sun.com/dtd/ejb-jar_ 2_0.dtd [ejbjar] The old method for locating CMP files has been DEPRECATED. [ejbjar] Please adjust your weblogic descriptor and set newCMP="true" to use the new CMP descriptor inclusion mechani sm. [ejbjar] building camps-ejb.jar with 25 files
output.log
Description: output.log
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>