File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "ejbjar and websphere! " Watch "ejbjar and websphere! " New topic

ejbjar and websphere!

Sachin Lewis

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}">
<pathelement location="${websphere.home}\deploytool\itp\plugins\org.eclipse.core.boot_2.0.1\boot.jar"/>
<pathelement location="${websphere.home}\deploytool\itp\plugins\\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"/>
<dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" location="${dtd-location}"/>

Output of this is:
[ejbdeploy] Invoking Library Copying Builder on /cartEJB-generic.

[ejbdeploy] Invoking RMIC.
[ejbdeploy] error: Class true not found.
[ejbdeploy] 1 error


[ejbdeploy] Updating.

[ejbdeploy] [*Error] An unexpected exception was thrown. Halting execution.


[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

[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

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

Joined: Nov 18, 2004
Posts: 4
Hey man , did you fix this error?
I agree. Here's the link:
subject: ejbjar and websphere!
It's not a secret anymore!