aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes building of project with Ant1.5 on WebSphere5.0 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 "building of project with Ant1.5 on WebSphere5.0" Watch "building of project with Ant1.5 on WebSphere5.0" New topic
Author

building of project with Ant1.5 on WebSphere5.0

srinivas bagurubilli
Greenhorn

Joined: May 19, 2003
Posts: 1
Hi,
I am trying to build my application with ant1.5 on WebSphere5.0,
sample of the build.xml where i am getting error .
<ejbjar srcdir="${was.classes.dir}" descriptordir="${was.src.dir}" basejarname="${was.basename}-was" genericjarsuffix="">
<include name="**/ejb-jar.xml"/>
<support dir="${was.classes.dir}"
includes="**/*.class"
excludes="${was.exclude}"/>
<websphere trace="true" ejbdeploy="true" oldCMP="false" destdir="${build.lib.dir}" tempdir="${build.lib.dir}/temp" novalidate="true">
<classpath path="${was.server.lib};${ejbsb.classpath};${ejbdep.classpath};${build.lib.dir}/txnserver-md.jar;${build.lib.dir}/common-sb-was.jar;${was.server.lib};${wascustom.lib};${build.lib.dir}/wascmp.jar;${build.lib.dir}/rfc-was.jar"/>
<wasclasspath>
<pathelement location="${was.home}/AppServer/deploytool/itp/plugins/org.eclipse.core.boot_2.0.1/boot.jar"/>
<pathelement location="${was.home}/AppServer/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime/batch.jar"/>
<pathelement location="${was.home}/AppServer/lib/xerces.jar"/>
<pathelement location="${was.home}/AppServer/lib/ivjejb35.jar"/>
<pathelement location="${was.home}/AppServer/lib/j2ee.jar"/>
<pathelement location="${was.home}/AppServer/lib/vaprt.jar"/>
<pathelement location="${was.home}/AppServer/java/jre/lib/rt.jar"/>
</wasclasspath>
</websphere>
<dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN"
location="${build.dir}/dtds/ejb-jar_1_1.dtd"/>
</ejbjar>

Even though the pathelement consists of rt.jar where com.ibm.CORBA.iiop.ObjectResolver exists i am getting the following error .
can someone help me .
[ejbdeploy] [*Error] /rfc-was-generic: The project was not built since its classpath is incomplete. Can not find the class file for com.ibm.CORBA.iiop.ObjectResolver. Fix the classpath then try rebuilding this project
yegappan ramaiah
Greenhorn

Joined: Dec 29, 2003
Posts: 27
hi all,
even iam facing the problem, any help would be appreciated, thanx.
Al Robertson
Greenhorn

Joined: Mar 22, 2004
Posts: 1
I've just had this problem - but using the was5 maven plugin (which wraps the ant task). I'm sure you resolved your problem ages ago but as there was no reply I thought I'd post my resolution.
The problem was that my JAVA_HOME environment variable was set to a Sun jdk and not the was5 java directory. Therefore, the iiop classes in the IBM jre could not be found. Changed it and the build worked OK. Hope this helps.
Ricardo Clements
Greenhorn

Joined: Jul 27, 2004
Posts: 1
Just guessing here (I'm trying to setup an autobuild process with ANT 1.6.2 and WAS5.xxx as well.

In my digging, there is a line in the setupCmdLine.bat that references a WAS_BOOTCLASSPATH.

Here are the lines... of potential interest
WAS_HOME=:c:\Program Files\WebSphere\AppServer
JAVA_HOME=:c:\Program Files\WebSphere\AppServer\java

WAS_BOOTCLASSPATH=%JAVA_HOME%\jre\lib\ext\ibmorb.jar

It is possible that the IBM corba stuff needs to be in a bootstrap classpath...

hope this helps
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: building of project with Ant1.5 on WebSphere5.0