• Post Reply Bookmark Topic Watch Topic
  • New Topic

ejbjar and websphere!  RSS feed

Sachin Lewis
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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\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"/>
<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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey man , did you fix this error?
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!