• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

packaged war in ear project (Websphere RAD7)

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic