aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: more than one web app in tomcat
 
Similar Threads
Tomcat 6 and jsps
Servlet can't find intialisation paramters
Can't write Context element properly
Axis2 (Embded in tomcat5.5) - Moving services.xml to custom location (or JAX-WS)
where to store the .htm files related to the servlet