File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes ejbjar and websphere! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "ejbjar and websphere! " Watch "ejbjar and websphere! " New topic
Author

ejbjar and websphere!

Sachin Lewis
Greenhorn

Joined: Nov 14, 2003
Posts: 8
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 ]
nilton groberio
Greenhorn

Joined: Nov 18, 2004
Posts: 4
Hey man , did you fix this error?
 
jQuery in Action, 2nd edition
 
subject: ejbjar and websphere!
 
Similar Threads
generating deployment code for websphere using Ant's ejbjar
EJBJAR error using ANT 1.5
What ejbjar task does ?
using ant to generate ejb deploy code
Unable to deploy ejbs