File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Websphere and the fly likes packaged war in ear project (Websphere RAD7) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "packaged war in ear project (Websphere RAD7)" Watch "packaged war in ear project (Websphere RAD7)" New topic
Author

packaged war in ear project (Websphere RAD7)

andreas kundig
Greenhorn

Joined: Jul 23, 2008
Posts: 2
I am trying to use a packaged war file inside a ear project.

Until now I had war projects which I could put into the EAR as a module dependency in the application.xml. This worked fine for running the application inside the local Websphere server.

Now I want to get rid of the war project and use a packaged war file instead. I put the war file at the root of the ear project but I can't find how to register it with the ear. I tried editing the source of application.xml but RAD gives me an error message saying he can't find the deployment descriptor. (I don't have the exact error message right now, I am writing from home still angry at a problem from work).

I have two questions:
1. Is it possible to work with a packaged war file inside an ear project?
2. If yes, where do I put the packaged war and how do I tell RAD where to look for it?
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
My understanding is that with RAD the only way to include a war file within an ear is to make it a web project. Just use the file-->import function to import the war file as a web project. Then you can associate it with the ear.


Merrill
Consultant, Sima Solutions
andreas kundig
Greenhorn

Joined: Jul 23, 2008
Posts: 2
You are right, it works! You just saved me from at least three days of clueless clicking.

Is there a way to import several war files at the same time?

Is there by any chance a way to import war files by executing an ant script? That would be extremely useful because I am retrieving the war file with ant + ivy.

Thanks

[ July 24, 2008: Message edited by: andreas kundig ]
[ July 24, 2008: Message edited by: andreas kundig ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: packaged war in ear project (Websphere RAD7)
 
Similar Threads
ear task issue
Installing new Application
Creating ear file
maven: the war directory structure
JSP lookup of EJB fails