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 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

building of project with Ant1.5 on WebSphere5.0

srinivas bagurubilli

Joined: May 19, 2003
Posts: 1
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}"
<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"/>
<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/"/>
<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"/>
<dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN"

Even though the pathelement consists of rt.jar where 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 Fix the classpath then try rebuilding this project
yegappan ramaiah

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

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

Joined: Jul 27, 2004
Posts: 1
Just guessing here (I'm trying to setup an autobuild process with ANT 1.6.2 and 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


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

hope this helps
I agree. Here's the link:
subject: building of project with Ant1.5 on WebSphere5.0
It's not a secret anymore!