ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shamberger, Michael" <Michael.Shamber...@starwoodhotels.com>
Subject RE: help with websphere ejbjar task
Date Mon, 19 Aug 2002 19:48:54 GMT
Ok,

    I got a little further into this issue by debugging the source.  Though
I did not see it documented, it is required to have the websphere.home
property set in your build.xml in order not to get the NullPointerException.
After setting this, it worked fine assuming that you are using IBM's jdk.  I
will enter a bug report on this.

      <property name="websphere.home" value="C:/WebSphere/AppServer"/>

Mike

-----Original Message-----
From: Shamberger, Michael [mailto:Michael.Shamberger@starwoodhotels.com]
Sent: Monday, August 19, 2002 2:02 PM
To: 'ant-user@jakarta.apache.org'
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:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message