ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothy Kearney" <isotyp...@hotmail.com>
Subject Re: Deploying EJBs to WebSphere
Date Mon, 15 Sep 2003 20:36:41 GMT
Will,

     Thanks a lot for your reply, it was helpful.  While I was not able to 
deploy the EJBs using ANT's optional task, I did get around it using your 
suggestion.

For those still having difficulty, there is a IBM resource at 
http://www.redbooks.ibm.com/pubs/pdfs/redbooks/sg246134.pdf.

A couple of things to keep in mind
You must define an ant.home property if you plan to use the execute task
You must add permissions to antRun
   <chmod file="./Ant/bin/antRun" perm="777"/>

thanks again,
Tim




>From: "Timothy Kearney" <isotype76@hotmail.com>
>Reply-To: "Ant Users List" <user@ant.apache.org>
>To: user@ant.apache.org
>Subject: Deploying EJBs to WebSphere
>Date: Wed, 10 Sep 2003 20:54:57 +0000
>
>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(InternalPlatform.java:104)
>[ejbdeploy] 	at 
>org.eclipse.core.internal.runtime.InternalPlatform.loaderStartup(InternalPlatform.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/runtime/batch.jar"/>
>	<pathelement 
>location="${was.home}/deploytool/itp/plugins/org.eclipse.core.runtime/runtime.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-jar_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
>

_________________________________________________________________
Get 10MB of e-mail storage! Sign up for Hotmail Extra Storage.  
http://join.msn.com/?PAGE=features/es


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


Mime
View raw message