Hey, To add more details. I am running this on a server that doesn't have WAS4 installed. I just have the JARs in a lib folder:
xerces.jar, ivjejb35.jar, j2ee.jar, vaprt.jar, boot.jar, batch.jar and runtime.jar. Would this cause a problem. Do I need more JARs? Or do I have to run the build script on a server that has WAS 4 installed? Thanks -----Original Message----- From: George Spalding [mailto:[EMAIL PROTECTED]] Sent: Friday, December 13, 2002 4:01 AM To: Ant Users List Subject: Re: NPE with ejbdeploy/ejbjar for WAS 4.0 Ant 1.5.1 Out of the top of my head, these were - The was.home variable must be set before calling <ejbjar>. <property name="websphere.home" value="${was.home}"/> - I did not get it working with spaces in the path to jars and ${websphere.home} I posted something about this about two months back. /george --- "Roarke, Partha" <[EMAIL PROTECTED]> wrote: > HI, > > I am trying to build an EJB jar for websphere 4.0 using Ant 1.5.1 and > I get the following error: > > >>>> Begin log > > [ejbjar] Unable to load dependency analyzer: > org.apache.tools.ant.util.depend .bcel.AncestorAnalyzer > [ejbjar] building MusaEJB.jar with 55 files > [ejbdeploy] Starting workbench. > [ejbdeploy] Shutting down workbench. > [ejbdeploy] > [ejbdeploy] Error starting EJBDeploy environment: null. > [ejbdeploy] java.lang.reflect.InvocationTargetException: > java.lang.NullPointerEx > ception > [ejbdeploy] at > org.eclipse.core.internal.runtime.InternalPlatform.activateDe > faultPlugins(InternalPlatform.java:104) > [ejbdeploy] at > org.eclipse.core.internal.runtime.InternalPlatform.loaderStar > tup(InternalPlatform.java:580) > [ejbdeploy] at java.lang.reflect.Method.invoke(Native Method) > [ejbdeploy] at > org.eclipse.core.internal.boot.InternalBootLoader.startup(Int > ernalBootLoader.java:912) > [ejbdeploy] at > org.eclipse.core.boot.BootLoader.startup(BootLoader.java:340) > [ejbdeploy] at > com.ibm.etools.ejbdeploy.batch.impl.BatchDeploy.startup(Batch > Deploy.java:169) > [ejbdeploy] at > com.ibm.etools.ejbdeploy.EJBDeploy.startup(EJBDeploy.java:309 > ) > [ejbdeploy] at > com.ibm.etools.ejbdeploy.EJBDeploy.execute(EJBDeploy.java:65) > [ejbdeploy] at > com.ibm.etools.ejbdeploy.EJBDeploy.main(EJBDeploy.java:248) > [ejbdeploy] Java Result: 1 > > BUILD SUCCESSFUL > > <<<<< End Log > > MY target looks like this: > > >>> Begin snippet > <target name="MusaEJB" depends="compile_ejb"> > <record name="MusaBuild.log" action="start"/> > <property name="websphere.home" value="${was4.home}"/> > <ejbjar srcdir="${BUILD}/MusaEJB" > descriptordir="${BUILD}/MusaEJB/META-INF" > > > <classpath> > <pathelement location="/usr/local/ant/lib/bcel.jar"/> > </classpath> > <include name="*-ejb-jar.xml"/> > <websphere ejbdeploy="true" > quiet="false" > trace="true" > oldCMP="false" > tempdir="${STAGING}" > destdir="${DIST}"> > <wasclasspath> > <pathelement location="${was4.home}/lib/xerces.jar"/> > <pathelement location="${was4.home}/lib/ivjejb35.jar"/> > <pathelement location="${was4.home}/lib/j2ee.jar"/> > <pathelement location="${was4.home}/lib/vaprt.jar"/> > <pathelement location="/usr/local/ant/lib/bcel.jar"/> > <pathelement > location="${was4.home}/lib/deploytool/itp/plugins/org.ecl > ipse.core.boot/boot.jar"/> > <pathelement > location="${was4.home}/lib/deploytool/itp/plugins/com.ibm > .etools.ejbdeploy/runtime/batch.jar"/> > <pathelement > location="${was4.home}/lib/deploytool/itp/plugins/org.ecl > ipse.core.runtime/runtime.jar"/> > </wasclasspath> > </websphere> > <dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise > JavaBeans 1.1//EN > " > location="${was4.home}/lib/dtd/ejb-jar_1_1.dtd"/> > </ejbjar> > <record name="MusaBuild.log" action="stop"/> > </target> > > <<< End snippet > > I have included the bcel.jar file in my classpath. I am not sure why > it complains that it cant load it. Any help will be appreicated. > > Thanks! > > ===== -\|/-/|\-\|/-/|\-\|/-/|\-\|/-/|\-\|/-/|\-\|/- George Spalding Private: [EMAIL PROTECTED] Phone: Mobile: +46 701 849 507 Home: +46 8 21 36 59 -/|\-\|/-/|\-\|/-/|\-\|/-/|\-\|/-/|\-/|\-\|/- __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- 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]>