Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

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 ]
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic