This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Multiple applications- single web.xml? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "Multiple applications- single web.xml?" Watch "Multiple applications- single web.xml?" New topic
Author

Multiple applications- single web.xml?

A Kumar
Ranch Hand

Joined: Jul 04, 2004
Posts: 973
Is it possible that we can have multiple applications in the tomcat server but there is one single web.xml for all of them..

Is such a configuration possible?


Thanks in advance.
A Kumar
[ March 08, 2006: Message edited by: Bear Bibeault ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56191
    
  13

What are you trying to accomplish?


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
A Kumar
Ranch Hand

Joined: Jul 04, 2004
Posts: 973
Hi,

That was an interview question posed to a friend of mine...
And the interviewer had said that it is possible....but I am not sure..

Any light???
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12268
    
    1
Recall that there is a default web.xml that applies to ALL applications - perhaps that was what the interview question was trying to get at?
Bill
A Kumar
Ranch Hand

Joined: Jul 04, 2004
Posts: 973
Hi William,

I checked the file and it mentions..


<!-- ======================== Introduction ==============================-->
<!-- This document defines default values for *all* web applications --> <!-- loaded into this instance of Tomcat. As each application is --> <!-- deployed, this file is processed, followed by the --> <!-- "/WEB-INF/web.xml" deployment descriptor from your own --> <!-- applications. --> <!-- --> <!-- WARNING: Do not configure application-specific resources here! --> <!-- They should go in the "/WEB-INF/web.xml" file in your application.-->




So yes maybe he meant this ...I think we can configure here...

Appreciate your reply...

Regards
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Multiple applications- single web.xml?
 
Similar Threads
Runnig multiple applications in Jboss
Single mapping for multiple Servlets
questions about EARs and Assembling and deploying multiple web applications
Common Login Page for Multiple Web Application
code reusability ideas?