Help coderanch get a
new server
by contributing to the fundraiser
  • 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

Ant task ejbjar for Websphere

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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>
 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
It was the best of times. It was the worst of times. It was a tiny ad.
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic