• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Deploy Session Bean using ejbjar task

 
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you are running your ANT script from WASD, you can do like this. Right click your build.xml and then external tools. In classpath tab, add ejbdeploy.jar and run it.
If you are running from command prompt, add your ejbdeploy jar to class path and run it.

Some reason it's not finding through pathelement.

Thanks.
 
First, you drop a couch from the plane, THEN you surf it. Here, take this tiny ad with you:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic