File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes How to make a WAR file for EJB project in WSAD Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "How to make a WAR file for EJB project in WSAD" Watch "How to make a WAR file for EJB project in WSAD" New topic
Author

How to make a WAR file for EJB project in WSAD

Jian Yi
Ranch Hand

Joined: Feb 01, 2002
Posts: 127
I'm porting an iPlanet project to Websphere. The project has an EJB and a servlet. So I created an EJB project in WSAD and ported both EJB code and servlet in it. However, I can't export a WAR file out of EJB project. I can only export an EJB JAR file. How can I make a WAR file out of an EJB project in WSAD?
Thanks,
Jenny
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

You need to create an EJB project for your EJB, a WAR project for your servlet, then create an EAR project and associate the EJB and WAR projects in the EAR project. You then deploy the EAR project.
Dave
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30537
    
150

David, do you mean WAR project or Web project. (I think it's called a web project in the pulldown.)
Jenny, I don't think you can put an EJB in a WAR (web application archive) file. You can put in an EAR (enterprise application archive) file for deployment. A WAR file is for JSPs and Servlets. An EAR file is for EJBs, ... WSAD includes a WAR file along with the EJB jars inside the EAR.
EAR
-WAR
-EJB jar one
-EJB jar two


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to make a WAR file for EJB project in WSAD