Forums Login/signup

How to make a WAR file for EJB project in WSAD

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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

reply
reply
This thread has been viewed 1298 times.
Similar Threads
How to start EJB
Exporting WAR file within RAD or WSAD
Problem with packaging and deploying
how to create jar file in WSAD?
Regarding war file export in eclipseWTP1.5
More...

All times above are in ranch (not your local) time.
The current ranch time is
Jun 28, 2025 02:04:29.