• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

How to call external WAR file in J2EE Project using WSAD 5.1.1

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Guys,

I am Using WSAD 5.1.1 ,J2EE Project(Struts based application). I am developing J2EE Appication. In This application i want to reuse some other application war file(external war file).

*)what are the ways to use that war file in my present application.

*)Import the war file into present webmodule. Its working fine .But I want different way like it should not mix with this web module files

Is there any way plz suggest me
 
author & internet detective
Posts: 42027
916
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ramesh,
A J2EE app can have mutliple web modules. So you can use the existing web project and include it in your enterprise application project.
 
Ramesh Krishna
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Boyarsky,
Thanks for ur reply.
The thing is ...how to call this war file in that project ...Can I put that in /WEB-INF/lib? Tell me what r the ways to run the war file like import is the war file is one way like that.
 
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What exactly do you mean by reusing the war file. Are you trying to use some classes int it. You cannot put the war in some lib directory, it wont work.
 
Ramesh Krishna
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I mean ... the war file is external file which is exported from diff ear file(diff application).I want to use this war file in new application . so in this application already webcontent is there(web.xml& struts-config.xml). so with out disturbing present application how can i use this war file
 
Jeanne Boyarsky
author & internet detective
Posts: 42027
916
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ramesh,
That's what I was trying to explain. A WAR can be associated with different EARs without changing anythings. Steps in WSAD:
1) Go to J2EE perspective
2) Expand Enterprise application branch
3) Double click on EAR you want to add the WAR too
4) Click modules tab
5) Add WAR
 
They worship nothing. They say it's because nothing lasts forever. Like this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic