Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

packaged war in ear project (Websphere RAD7)

 
andreas kundig
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
andreas kundig
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic