Hello everybody,
I am trying to create deployed code of
ejb's for websphere using
<ejbjar> and <websphere> however my build won't stop even on encountering the error!!!
The part i don't don't understand is, how to stop the build if it fails to create the output jar containing deployed code!! Please give it a thought.
(Please Note : My question here is how to stop the build....)
Here is my part of build code:
____________________________________________________________________________
<ejbjar descriptordir="${xmls}/ejb" srcdir="${dest}/classes" naming="directory" genericjarsuffix="EJB.jar" >
<include name="**/*ejb-jar.xml"/>
<classpath refid="project.classpath"/>
<websphere ejbdeploy="true" quiet="false" rmicOptions="true" keepgeneric="no" oldCMP="false" tempdir="/tmp" destdir="${jars}">
<wasclasspath>
<pathelement location="${websphere.home}\deploytool\itp\plugins\org.eclipse.core.boot_2.0.1\boot.jar"/>
<pathelement location="${websphere.home}\deploytool\itp\plugins\com.ibm.etools.ejbdeploy\runtime\batch.jar"/>
<pathelement location="${websphere.home}\lib\xerces.jar"/>
<pathelement location="${websphere.home}\lib\ivjejb35.jar"/>
<pathelement location="${websphere.home}\lib\j2ee.jar"/>
<pathelement location="${websphere.home}\lib\vaprt.jar"/>
</wasclasspath>
</websphere>
<dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" location="${dtd-location}"/>
</ejbjar>
</target>
____________________________________________________________________________
Output of this is:
----------------------------------------------------------------------------
[ejbdeploy] Invoking Library Copying Builder on /cartEJB-generic.
[ejbdeploy]
[ejbdeploy] Invoking RMIC.
[ejbdeploy] error: Class true not found.
[ejbdeploy] 1 error
[ejbdeploy]
[ejbdeploy] Updating.
[ejbdeploy]
[ejbdeploy] [*Error] An unexpected exception was thrown. Halting execution.
[ejbdeploy]
[ejbdeploy] Shutting down workbench.
[ejbdeploy] Error generating RMI code: RMIC Command returns RC = 1. The problems
which stopped RMIC are displayed, and have also been recorded in the log file..
[ejbdeploy]
Java Result: 1
[ejbjar] deleting generic jar E:\base\antcase2\jars\cartEJB-generic.jar
earrin:
[echo] Creating the ear file......
[ear] Building ear: E:\base\antcase2\dest\MyEar.ear
[ear] adding directory META-INF/
[ear] adding entry META-INF/MANIFEST.MF
[ear] adding entry META-INF/application.xml
BUILD SUCCESSFUL
Total time: 33 seconds
----------------------------------------------------------------------------
( How can it say "BUILD SUCCESSFUL" when no ejb-jar is created! I know what the error/mistake i have done, but want my build to stop on facing the error. Here my error/mistake is of "rmicoption="true")
All thanks in advance,
Sachin Lewis.
[ November 18, 2004: Message edited by: Bear Bibeault ]