Mike- Take a look at this page from the docs: http://jakarta.apache.org/ant/manual/index.html
You need to install bcel.jar in ant/lib. Cheers! Eddie -----Original Message----- From: Shamberger, Michael [mailto:[EMAIL PROTECTED]] Sent: Monday, August 19, 2002 11:02 AM To: '[EMAIL PROTECTED]' Subject: help with websphere ejbjar task Hi, I am trying to use the websphere ejbjar task and am getting a NullPointerException. It does not give much info about the problem so I am wondering if anyone else has seen it. Thanks, Mike ejb: [ejbjar] Unable to load dependency analyzer: org.apache.tools.ant.util.depend.bcel.AncestorAnalyzer [ejbjar] 1 deployment descriptors located. [ejbjar] Mapped publicId -//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN to file ..\..\lib\dtd\ejb-jar_1_1.dtd [ejbjar] Resolved -//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN to local file ..\..\lib\dtd\ejb-jar_1_1.dtd [ejbjar] Unable to locate websphere extensions. It was expected to be in C:\mike\cvs\sg\src\components\customer\customer-ibm-ejb-jar-ext.xmi [ejbjar] Unable to locate websphere bindings. It was expected to be in C:\mike\cvs\sg\src\components\customer\customer-ibm-ejb-jar-bnd.xmi [ejbjar] Unable to locate the websphere Map: C:\mike\cvs\sg\src\components\customer\customer-ORACLE_V8-Map.mapxmi [ejbjar] Unable to locate the websphere Schema: C:\mike\cvs\sg\src\components\customer\customer-ORACLE_V8-Schema.dbxmi [ejbjar] building customer.jar with 4 files [ejbjar] adding file 'META-INF/ejb-jar.xml' [ejbjar] adding file 'com\test\customer\CustomerBean.class' [ejbjar] adding file 'com\test\customer\CustomerHomeRemote.class' [ejbjar] adding file 'com\test\customer\CustomerRemote.class' [ejbjar] EJB Deploy Options: C:\mike\cvs\sg\src\components\build\customer\customer-generic.jar c:/temp C:\mike\cvs\s g\src\components\build\customer\customer.jar -dbvendor ORACLE_V8 -cp C:\mike\cvs\sg\lib\struts.jar;C:\mike\cvs\sg\lib\o racle_driver.jar;C:\mike\cvs\sg\lib\log4j-1.2.6.jar BUILD FAILED file:C:/mike/cvs/sg/src/components/build.xml:77: Exception while calling ejbdeploy. Details: java.lang.NullPointerException at org.apache.tools.ant.taskdefs.optional.ejb.WebsphereDeploymentTool.buildWebs phereJar(WebsphereDeploymentTool.java:669) at org.apache.tools.ant.taskdefs.optional.ejb.WebsphereDeploymentTool.writeJar( WebsphereDeploymentTool.java:689) at org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool.processDesc riptor(GenericDeploymentTool.java:478) at org.apache.tools.ant.taskdefs.optional.ejb.EjbJar.execute(EjbJar.java:592) at org.apache.tools.ant.Task.perform(Task.java:317) at org.apache.tools.ant.Target.execute(Target.java:309) Here is my target: <!-- =========================================================== --> <!-- Ejb target. Recompiles any out-of-date ejbs. --> <!-- =========================================================== --> <target name="ejb" depends="compile"> <ejbjar srcdir="${components.build}/classes" descriptordir="${components.home}"> <include name="**/*-ejb-jar.xml"/> <websphere dbvendor="ORACLE_V8" ejbdeploy="true" oldCMP="false" quiet="false" tempdir="c:/temp" destdir="${components.build}"> <wasclasspath> <pathelement location="${was.home}/deploytool/itp/plugins/org.eclipse.core.boot/boot.jar" /> <pathelement location="${was.home}/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtim e/batch.jar"/> <pathelement location="${was.home}/lib/xerces.jar"/> <pathelement location="${was.home}/lib/ivjejb35.jar"/> <pathelement location="${was.home}/lib/j2ee.jar"/> <pathelement location="${was.home}/lib/vaprt.jar"/> </wasclasspath> <classpath> <path refid="lib.classpath"/> </classpath> </websphere> <dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" location="${components.lib}/dtd/ejb-jar_1_1.dtd"/> </ejbjar> </target> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
