• 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
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic