File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Ant, Maven and Other Build Tools and the fly likes EJB Task--ejbjar error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "EJB Task--ejbjar error" Watch "EJB Task--ejbjar error" New topic

EJB Task--ejbjar error

Vincy Kaczanowski

Joined: Sep 22, 2005
Posts: 19
Friends, I got the following error i am doing a EJB jar task using ANT in WSAD 5.1.2 ,i have bcel.jar in my class path,from the following message i am not sure it is building ejb.jar,Any help would be appriciated
[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
Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1953
I have a lot of problems with WSAD v5.1.2 too, but I got different error message from yours. I am thinking to try it on RAD, the new version "Rational Application Developer".

If you like, we can exchange some informations.

Find my email address from my website
Vincy Kaczanowski

Joined: Sep 22, 2005
Posts: 19
I can't move to RAD,i need to work on WSAD 5.1.2,let us be in sync
Pratik Lohia
Ranch Hand

Joined: May 05, 2005
Posts: 88
I too faced issues with ANT 1.6.2 and WSAD 5.1 when trying to deploy my EJBs. However I got around the problem by using the ejbdeploy batch file present in the following path of your WSAD installation.


I created my target to deploy the EJBs in the following manner...

<target name="deploy" depends ="ejbJarforCompile">
<echo>Deploying EJB JAR file</echo>
<exec executable="${WAS_HOME}/bin/ejbdeploy.bat" >
<arg value="${build.dir}\strideEJB.jar"/>
<arg value="${srcDir}"/>
<arg value="${build.dir}\strideEJB1.jar"/>
This worked pretty well.
The first arguement is a jar file which contains my compiled EJB files.
This acts as input using which I can generate the deployment code. The third arguement isthe output jar file with the deployment code.
Though this makes my build WSAD dependent, the tasks available with ANT for deploying EJBs in WSAD dont seem to be of much help.

Hope this helps.
Vincy Kaczanowski

Joined: Sep 22, 2005
Posts: 19
Thanks,I think this will help,i have to try
I agree. Here's the link:
subject: EJB Task--ejbjar error
It's not a secret anymore!