*
The moose likes Tomcat and the fly likes more than one web app in tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "more than one web app in tomcat" Watch "more than one web app in tomcat" New topic
Author

more than one web app in tomcat

Sree Nivas
Ranch Hand

Joined: Jul 24, 2003
Posts: 95
How do I work with more than one web app in Tom cat. I'm using jakarta-tomcat-5.0.12. Say I have two webapps (like abc and xyz) under tomcat's webapp folder. Under each webapp I have WEB-INF and WEB-INF/classes. And web.xml in each WEB-INF with proper web.xml elements.

Can somebody clarify this.

regards
Sreenivas
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Just deploy them as two war files. Tomcat is happy enough with more than one web app deployed at once. Tomcat on the machine I'm sitting at just now is happily serving four web apps.
[ January 05, 2005: Message edited by: Paul Sturrock ]

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Originally posted by Sree Nivas:
Under each webapp I have WEB-INF and WEB-INF/classes. And web.xml in each WEB-INF with proper web.xml elements.


No clarification needed. You've got it exactly right.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
Don't get me started about those stupid light bulbs.
 
subject: more than one web app in tomcat
 
Similar Threads
where to store the .htm files related to the servlet
Axis2 (Embded in tomcat5.5) - Moving services.xml to custom location (or JAX-WS)
Tomcat 6 and jsps
Can't write Context element properly
Servlet can't find intialisation paramters