HI
I am trying to deploy session beans usinn an
ant script
I am using WSAD 5.1 and Ant 1.6.2. The JDK is 1.31.e the one supplied with Websphere.
An exerpt of my script is as follows:
<path id="ejbdeploy.classpath">
<pathelement location="D:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1\runtimes\base_v5\lib\deployutils.jar"/>
<pathelement location="D:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1\runtimes\base_v5\lib\wsanttasks.jar"/>
<pathelement location="D:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1\runtimes\base_v5\java\jre\lib\ext\ibmorb.jar"/>
<pathelement location="D:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1\bin\batch.jar"/>
<pathelement location="D:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1\wstools\eclipse\plugins\com.ibm.etools.ejbdeploy_5.1.0\runtime\codegen.jar"/>
<pathelement location="D:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1\wstools\eclipse\plugins\com.ibm.etools.ejbdeploy_5.1.0\runtime\ejbdeploy.jar"/>
<pathelement location="D:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1\wstools\eclipse\plugins\com.ibm.etools.ejbdeploy_5.1.0\runtime\ejbincrement.jar"/>
<pathelement location="D:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1\wstools\eclipse\plugins\com.ibm.etools.ejbdeploy_5.1.0\runtime\ejbvalidator.jar"/>
<pathelement location="D:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1\wstools\eclipse\plugins\com.ibm.etools.ejbdeploy_5.1.0\runtime\exec.jar"/>
<pathelement location="D:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1\wstools\eclipse\plugins\com.ibm.etools.ejbdeploy_5.1.0\runtime\rmic.jar"/>
<pathelement location="D:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1\eclipse\plugins\org.eclipse.core.boot_2.1.1\boot.jar"/>
<pathelement location="D:\Program Files\IBM\WebSphere Studio\Application
Developer\v5.1\runtimes\base_v5\lib\ivjejb35.jar"/>
<pathelement location="D:\Program Files\IBM\WebSphere Studio\Application
Developer\v5.1\runtimes\base_v5\lib\j2ee.jar"/>
<pathelement location="D:\Program Files\IBM\WebSphere Studio\Application
Developer\v5.1\runtimes\base_v5\lib\vaprt.jar"/>
<pathelement location="D:\Program Files\IBM\WebSphere Studio\Application
Developer\v5.1\runtimes\base_v5\lib\xerces.jar"/>
<pathelement location="D:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1\eclipse\plugins\org.eclipse.core.runtime_2.1.1\runtime.jar"/>
</path>
<target name="init">
<ejbjar
srcdir="${srcDir}\strideEJB\ejbModule"
destdir="${srcDir}\strideEJB"
descriptordir="strideEJB\ejbModule\META-INF"
>
<websphere dbvendor="DB2UDBWIN_V71"
ejbdeploy="true"
destdir="${srcDir}\strideEJB">
<classpath>
<path refid="ejbdeploy.classpath"/>
</classpath>
</websphere>
<dtd publicid="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
location= "D:\stride\vfcstride\strideEJB\ejbModule\META-INF\ejb-jar_2_0.dtd" />
<include name="**/*ejb-jar.xml"/>
<include name="**/*ibm-ejb-jar-bnd.xml"/>
</ejbjar>
</target>
On Execution of the script i get the following error:
Buildfile: build.xml
init:
[ejbjar] building ejb.jar with 41 files
[ejbdeploy] Class "com.ibm.etools.ejbdeploy.plugin.EJBDeployPlugin" must not be on the classpath
[ejbdeploy] com.ibm.etools.ejbdeploy.ConfigurationError: Class "com.ibm.etools.ejbdeploy.plugin.EJBDeployPlugin" must not
be on the classpath
[ejbdeploy] at com.ibm.etools.ejbdeploy.batch.impl.BatchDeploy.startup(BatchDeploy.java:204)
[ejbdeploy] at com.ibm.etools.ejbdeploy.EJBDeploy.startup(EJBDeploy.java:380)
[ejbdeploy] at com.ibm.etools.ejbdeploy.EJBDeploy.execute(EJBDeploy.java:77)
[ejbdeploy] at com.ibm.etools.ejbdeploy.EJBDeploy.main(EJBDeploy.java:307)
[ejbdeploy] EJBDeploy level: 20030726_2016-WB211-AD-V51D-GM
[ejbdeploy]
Java Result: 1
BUILD SUCCESSFUL
Total time: 6 seconds
I am just not able to figure out the reason for this as i have set the classpath for ejbdeploy.jar which has the EJBDeployPlugin.class file.
When this did not work, i copied the jar file to the lib directory...and of course... neither did that help.