Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

wsejbdeploy ANT task error

968 views
Skip to first unread message

gauz09

unread,
Jun 16, 2004, 4:01:28 PM6/16/04
to
WebSphere's ANT task "wsejbdeploy" is giving an error while creating the deployable EJB JAR file. The error is:

[*Error] /SampleEJB: The project was not built since its classpath is incomplete. Cannot find the class file for com.ibm.CORBA.iiop.ObjectResolver. Fix the classpath then try rebuilding this project.
[wsejbdeploy] [*Error] ejbModule/com/ibm/sample/persistence/dao/EJSRemoteStatelessLoggerDemo_21bee63e.java(0): This compilation unit indirectly references the missing type com.ibm.CORBA.iiop.ObjectResolver (typically some required class file is referencing a type outside the classpath)

I have tried everything, specified the WAS_HOME/lib/*.jar files in the classpath but no positive results. It still gives the same error. What other jar files are needed for this task to be able to create deployable EJB JAR and where will I get those JARs under WAS_HOME?

Thanks.

Gauzy

pitti80

unread,
Jul 5, 2004, 8:35:05 AM7/5/04
to
Hi!
I'm also trying to get the ant task "wsejbdeloy" running since 3 days. When I run the task, I get the following error:

[wsejbdeploy] Starting workbench.
[wsejbdeploy] 20040204_1915-WB213-AD-V512D-W5
[wsejbdeploy] Workspace location:
[wsejbdeploy] D:\Temp\487ea584
[wsejbdeploy] Debug-Options:
[wsejbdeploy] file:D:/Temp/.options
[wsejbdeploy] Install URL: file:/D:/Programme/IBM/WSAD511/runtimes/base_v5/deploytool/itp/
[wsejbdeploy] Shutting down workbench.

[wsejbdeploy] Failure invoking BootLoader.startup method
[wsejbdeploy] java.lang.reflect.InvocationTargetException: java.lang.RuntimeException: Fatal Error: Unable to locate matching org.eclipse.core.runtime plug-in.
[wsejbdeploy] at org.eclipse.core.internal.boot.PlatformConfiguration.locateDefaultPlugins(PlatformConfiguration.java:2264)
[wsejbdeploy] at org.eclipse.core.internal.boot.PlatformConfiguration.<init>(PlatformConfiguration.java:903)
[wsejbdeploy] at org.eclipse.core.internal.boot.PlatformConfiguration.startup(PlatformConfiguration.java:1368)
[wsejbdeploy] at org.eclipse.core.internal.boot.InternalBootLoader.initialize(InternalBootLoader.java:582)
[wsejbdeploy] at org.eclipse.core.internal.boot.InternalBootLoader.startup(InternalBootLoader.java:1035)
[wsejbdeploy] at org.eclipse.core.boot.BootLoader.startup(BootLoader.java:516)
[wsejbdeploy] at java.lang.reflect.Method.invoke(Native Method)
[wsejbdeploy] at com.ibm.etools.ejbdeploy.batch.impl.BootLoaderLoader.startup(BootLoaderLoader.java:315)
[wsejbdeploy] at com.ibm.etools.ejbdeploy.batch.impl.BatchDeploy.startup(BatchDeploy.java:207)
[wsejbdeploy] at com.ibm.etools.ejbdeploy.EJBDeploy.startup(EJBDeploy.java:382)
[wsejbdeploy] at com.ibm.etools.ejbdeploy.EJBDeploy.execute(EJBDeploy.java:77)
[wsejbdeploy] at com.ibm.etools.ejbdeploy.EJBDeploy.main(EJBDeploy.java:307)
[wsejbdeploy] EJBDeploy level: 20040204_1915-WB213-AD-V512D-W5
[wsejbdeploy] Java Result: 1

Do you know this error?

Thanks,
Doreen

shlomo....@optier.com

unread,
Jul 6, 2004, 2:08:36 AM7/6/04
to
Hi,
The error is because you dont have ibmorb.jar in your CLASSPATH.

1-To build the jars are build use ejbdeploy
taskdef name="wsejbdeploy" classname="com.ibm.websphere.ant.tasks.WsEjbDeploy
2-To build a war just use a regular pack task (has nothing to do with websphere)
3-To build your EAR use again an ant task that build an ear from your jars and war.

Several things to remember:
1-make sure ibmorb.jar is in your classpath
2-When you build an ejb-jar , make sure all the other ejb-jars it depends on are in the classpath parameter of the wsejbdeploy task.

You can use ANT externally from a command line. You need wsanttasks.jar and several more jars in your CLASSPATH. I use the server JVM for all my ANT tasks. For instance(I hope the tags are ok, send me an email if you need more detail):

taskdef name="wsejbdeploy" classname="com.ibm.websphere.ant.tasks.WsEjbDeploy"

target name="wsejbdeployTask"
wsejbdeploy
inputJar="${out.deploy.dir}/${basic.ejb.name}"
wasHome="${was5.home.dir}"
workingDirectory="${out.deploy.dir}"
outputJar="${out.deploy.dir}/${final.ejb.name}"
classpath="${wsejbdeploy.jar.files}"
target


pitti80

unread,
Jul 6, 2004, 6:21:42 AM7/6/04
to
Hi! Here are pieces of my build.xml:

<property name="was.home"
value="D:/Programme/IBM/WSAD511/runtimes/base_v5"/> <property
name="java.home" value="${was.home}/java/jre"/> <property
name="ejb.file" value="blabla/MyIP2ServiceEJB.jar"/> <property
name="ejb.file.out" value="blabla/MyIP2ServiceEJB_1.jar"/>

<path id="project.class.path"> <fileset dir="${was.home}/lib">
<include name="xerces.jar"/> <include name="ivjejb35.jar"/> <include
name="vaprt.jar"/> <include name="j2ee.jar"/> <include
name="wsanttasks.jar"/> <include name="xalan.jar"/> </fileset>
<fileset dir="${was.home}/deploytool/itp/plugins/com.ibm.etools.ejb-
deploy/runtime"> <include name="batch.jar"/> <include
name="codegen.jar"/> <include name="ejbdeploy.jar"/> <include
name="ejbincrement.jar"/> <include name="ejbvalidator.jar"/>
<include name="exec.jar"/> <include name="rmic.jar"/> </fileset>
<fileset
dir="${was.home}/deploytool/itp/plugins/org.eclipse.core.runtime">
<include name="runtime.jar"/> </fileset> <fileset dir="${was.home}/-
deploytool/itp/plugins/org.eclipse.core.boot_2.1.3"> <include
name="boot.jar"/> </fileset> <fileset dir="${java.home}/lib/ext">
<include name="ibmorb.jar"/> </fileset> </path>


<!-- Create the EJB Jar file for WAS --> <target name="deployEJB"
depends=""> <taskdef name="ejbdeploy"
classname="com.ibm.websphere.ant.tasks.WsEjbDeploy"
classpath="project.class.path" classpathref="project.class.path" />
<ejbdeploy codegen= "false" keepGenerated= "true" quiet= "false"
noValidate= "false" noWarnings= "false" noInform= "false"
failonerror= "false" trace= "true" washome="${was.home}"
inputjar="${ejb.file}" workingdirectory="d:/temp"
outputjar="${ejb.file.out}" /> </target>

The important thing is that there's no WAS installed on my computer.
Only WSAD 5.1.1. with the including WS is installed. Therefore, I copied
the whole "deploytool"-folder to the ws-internal server from a remote
was server installation to have all libraries on my computer.

Did I forgot some libraries?

Thx for help, Doreen

--
posted via MFF : http://www.MainFrameForum.com - USENET Gateway

Barry Searle

unread,
Jul 6, 2004, 1:45:48 PM7/6/04
to
Actually, I hate to say it, but you are doing things the (very) hard way.
Here is how all this stuff works, and some alternatives you have:
1) WSAD and WAS both ship a commandline ejbDeploy tool
1a) the WTE (Ws Test Environment) inside WSAD is a WAS subset
1b) hence the WTE ejbdeploy tool is not complete/useable
1c) hence in WSAD use its commandline tool (in its bin directory)
2) WSAD and WAS both ship AntTasks to do ejbDeploys
3) in WSAD, you cd into the Instdir\wstools\eclips\clugins\....j2ee.ant....
3a) you edit the runAnt.bat to point to your WORKSPACE
3b) you then use runAnt to run your build.xml, containing <ejbExport.../>
4) in WAS you cd into the Instdir\bin
4a) you then use ws_ant.bat to run your build.xml, containing
<wsEjbDeploy.../>

NOTE: that if you are in a WAS environment but dont use the ws_Ant.bat to
setup and instead run your environment, then you are totally responsible for
ensuring you have everything setup correctly, and that you are running a
compatible JDK (ebjDeploy uses its RMIC and is sensative to changes in it).

NOTE: that if you are in a WSAD environment, you really cannot just use a
collection of JARs, you need to use the runAnt to corectly startup a
'headless' Eclipse.

So, if you have Studio installed, just use its runAnt to run your build
files (dont copy any files from other WAS systems).
Or, if you had a WAS installed, just use its ws_Ant to run your build files.
In both cases, ejbDeploy should work seemlesly. Let me know if it doesnt.

If anyone has any questions, just post them here (and please CC me directly
sea...@ca.ibm.com)
Barry Searle, sea...@ca.ibm.com, 905-413-4020 , "Architect, WebSphere Tools
for Automated Production Build and Deployment".


"pitti80" <mem...@mainframeforum.com> wrote in message
news:ccdufm$42eq$1...@news.boulder.ibm.com...

msakirler

unread,
Jul 26, 2004, 7:05:09 AM7/26/04
to
Hi I have created a dynamic web project than I only create one database with a feew tables for data part.
Then (while I am in web perspective) I try to create a JSF and/or JSP file but the project doesn't compile!
Here are the errors:

This compilation unit indirectly references the missing type java.lang.Object (typically some required class file is referencing a type outside classpath)

Could anyone help me? thanks...

vg_...@hotmail.com

unread,
Apr 23, 2008, 11:45:12 AM4/23/08
to
On 6.1, I am using the following ant task but It fails as below.... any one can help me here?




include name=" */


include name=" */




then I call the task:



Fails:

wsejbdeploy Starting workbenc

h.

wsejbdeploy o0739.07com.ibm

etools.ejbdeploy.ConfigurationError: Invalid itp location property at com.ibm.etools.ejbdeploy.batch.impl

BootLoaderLoader.locateBootLoaderJar(BootLoaderLoader.java:183)

wsejbdeploy at com.ibm.etools.ejbdeploy.batch.impl.BootLoaderLoader.getInstance(BootLoaderLoad er.java:121)

wsejbdeploy at com.ibm.etools.ejbdeploy.batch.impl.BatchDeploy.startup(BatchDeploy.java:163)
wsejbdeploy at com.ibm.etools.ejbdeploy.EJBDeploy.startup(EJBDeploy.java:387)

wsejbdeploy at com.ibm.etools.ejbdeploy.EJBDeploy.execute(EJBDeploy.java:80)

wsejbdeploy at com.ibm.etools.ejbdeploy.EJBDeploy.main(EJBDeploy.java:313)

wsejbdeploy Shutting down wor

kbench.com.ibm.etools.ejbdeploy.ConfigurationError: Invalid itp location property

wsejbdeploy at com.ibm.etools.ejbdeploy.batch.impl.BootLoaderLoader.locateBootLoaderJar(BootLo aderLoader.j

ava:183)

wsejbdeploy at com.ibm.etools.ejbdeploy.batch.impl.BootLoaderLoader.getInstance(BootLoaderLoad er.java:121)

wsejbdeploy at com.ibm.etools.ejbdeploy.batch.impl.BatchDeploy.shutdown(BatchDeploy.java:125)
wsejbdeploy at com.ibm.etools.ejbdeploy.EJBDeploy.shutdown(EJBDeploy.java:376)

wsejbdeploy at com.ibm.etools.ejbdeploy.EJBDeploy.execute(EJBDeploy.java:90)

wsejbdeploy at com.ibm.etools.ejbdeploy.EJBDeploy.main(EJBDeploy.java:313)

wsejbdeploy Failure locating osgi plugin jar

wsejbdeploy com.ibm.etools.ejbdeploy.ConfigurationError: Invalid itp location property

wsejbdeploy at com.ibm.etools.ejbdeploy.batch.impl.BootLoaderLoader.locateBootLoaderJar(BootLo aderLoader.j

ava:183)

wsejbdeploy at com.ibm.etools.ejbdeploy.batch.impl.BootLoaderLoader.getInstance(BootLoaderLoad er.java:121)

wsejbdeploy at com.ibm.etools.ejbdeploy.batch.impl.BatchDeploy.startup(BatchDeploy.java:163)
wsejbdeploy at com.ibm.etools.ejbdeploy.EJBDeploy.startup(EJBDeploy.java:387)

wsejbdeploy at com.ibm.etools.ejbdeploy.EJBDeploy.execute(EJBDeploy.java:80)

wsejbdeploy at com.ibm.etools.ejbdeploy.EJBDeploy.main(EJBDeploy.java:313)

wsejbdeploy EJBDeploy level: o0739.07

wsejbdeploy Java Result: 1

min...@yahoo.com

unread,
Aug 20, 2009, 11:04:42 AM8/20/09
to
Hi venus2,

I’ve solved this on windows by editing the file WAS_HOME\bin\setupCmdLine.bat and replacing ALL instances of %WAS_HOME% with their fully qualified path (no environment variable references), then running the WAS_HOME\bin\setupCmdLine.bat

0 new messages