ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lopez, William" <william.lo...@eds.com>
Subject RE: Deploying EJBs to WebSphere
Date Wed, 10 Sep 2003 21:11:21 GMT
Timothy:

...we do it a bit different, probably not the cleanest way but I'm sure
you'll get more input...our ejb build is lengthy (WSAD 4.0.3)...we point to
the WAS 4.x lib dirs to get the jars we need...the code snippet below is how
we call the ejbdeploy:

  <target name="deploy.ejb.jar">
    <echo>...Generating deploy code for ${ant.project.name}</echo>
    <property name="deployed.jar.file"
value="${app.module.dir}\${jndiPrefix}\${deployed.jar.name}"/>
    <exec executable="${ejbdeploy}" 
          output="${deploy.logs}\ejbdeployFor${ant.project.name}.log" 
          failonerror="true">
         <arg value="${ejb.jar.file}"/>
         <arg value="${deploy.working.dir}"/>
         <arg value="${deployed.jar.file}"/>
         <arg line="-cp
&quot;${tempBOJar};${tempejbJar};${tempServletJar};${build.base}\lib\xml4j.j
ar &quot;"/>
         <arg line="-dbvendor ${dbvendor}"/>
         <arg line="-novalidate"/>
         <arg value="-trace"/>
    </exec>
    <echo>...finished generating deploy code for ${ant.project.name}</echo>
  </target>

HTH,
-Will

-----Original Message-----
From: Timothy Kearney [mailto:isotype76@hotmail.com] 
Sent: Wednesday, September 10, 2003 3:55 PM
To: user@ant.apache.org
Subject: Deploying EJBs to WebSphere


Hi all,

     I am attempting to generated the deployed code for an EJB jar using the

ANT's ejbjar WebSphere subtask.  I am running the build script locally and 
pointing to WebSphere resources in WSAD5.  While running the script I get 
the following error:

[ejbdeploy]
[ejbdeploy] Starting workbench.

[ejbdeploy]
[ejbdeploy] Shutting down workbench.
[ejbdeploy] *Could not delete 
E:\was\_ejbdeploy_temp\_.ejb.jar._\.metadata\.lock

[ejbdeploy] Error starting EJBDeploy environment: null. [ejbdeploy]
java.lang.reflect.InvocationTargetException: 
java.lang.NullPointerException
[ejbdeploy] 	at 
org.eclipse.core.internal.runtime.InternalPlatform.activateDefaultPlugins(In
ternalPlatform.java:104)
[ejbdeploy] 	at 
org.eclipse.core.internal.runtime.InternalPlatform.loaderStartup(InternalPla
tform.java:580)
[ejbdeploy] 	at java.lang.reflect.Method.invoke(Native Method)
[ejbdeploy] 	at 
org.eclipse.core.internal.boot.InternalBootLoader.startup(InternalBootLoader
.java:912)
[ejbdeploy] 	at 
org.eclipse.core.boot.BootLoader.startup(BootLoader.java:340)
[ejbdeploy] 	at 
com.ibm.etools.ejbdeploy.batch.impl.BatchDeploy.startup(BatchDeploy.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

Has anyone else encountered this problem?  My target is below:

<property name="websphere.home" value="E:/was"/>
<target name="test" depends="compileAIQEJB">
	<ejbjar srcdir="${DEST_DIR}/build_temp_aiq/AIQEJBJar" 
descriptordir="${AIQEJB}/source/META-INF">
	  <include name="ejb-jar.xml"/>
	<websphere ejbdeploy="true" oldCMP="false" destdir="${DEST_DIR}/ejb"

quiet="false">
	<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}/deploytool/itp/plugins/org.eclipse.core.runtime/runtim
e.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>
	</websphere>
<dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" 
location="${was.home}/deploytool/itp/plugins/com.ibm.etools.j2ee/dtds/ejb-ja
r_1_1.dtd"/>
</ejbjar>
</target>

In help resolving this matter would be appreciated.

thanks,
Tim

_________________________________________________________________
Try MSN Messenger 6.0 with integrated webcam functionality! 
http://www.msnmessenger-download.com/tracking/reach_webcam


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

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


Mime
View raw message