Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ant task ejbjar for Websphere

 
prasad Chandrasekaran Iyer
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Has anyone tried using ejbjar task for websphere application.
I require code for developing deployment descriptor using ejbjar
I am facing problem creating jar file
following is the code

<ejbjar srcdir="${build.classes.dir}" descriptordir="${tmp.ejb.descriptor.websphere.dir}" basejarname="${profinance.ejb.basename}">
<include name="*-ejb-jar.xml"/>
<websphere ejbdeploy="false"
destdir="${tmp.ejb.jar.websphere.dir}">
<wasclasspath>
<pathelement location="${was5.home}/deploytool/itp/plugins/org.eclipse.core.boot_2.0.2.1/boot.jar"/>
<pathelement location="${was5.home}/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime/batch.jar"/>
<pathelement location="${was5.home}/lib/xerces.jar"/>
<pathelement location="${was5.home}/lib/ivjejb35.jar"/>
<pathelement location="${was5.home}/lib/j2ee.jar"/>
<pathelement location="${was5.home}/lib/vaprt.jar"/>
</wasclasspath>
<classpath>
<path refid="build.classpath"/>
</classpath>
</websphere>
<dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" location="http://java.sun.com/dtd/ejb-jar_2_0.dtd"/>
</ejbjar>
 
Bug Menot
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does that work at all for you? I'm doing something similar and it doesn't fail, but also doesn't seem to do anything.

In the mean time you way want to look at using ejbdeploy.bat (which comes with was) and execing it from within your script.
 
Vincy Kaczanowski
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting following error when doing ejbjar task,using wsad5.1.2

ejb-jar:
[ejbjar] building ejb.jar with 42 files
[ejbdeploy] Input options error: The input filename must end in '.jar' or '.ear'. It was C:\Documents..
[ejbdeploy] 0 Errors, 0 Warnings, 0 Informational Messages
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic