File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple apps in Tomcat

 
Rajan Chinna
Ranch Hand
Posts: 320
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lets say i have 3 different web applications under webapps folder as
App1, App2 and App3. I want all three apps to be running when tomcat is started.

1.What should my Context docBase in server.xml pointing to....?
<Context path="" docBase="???" debug="0" reloadable="true">

2.Why my new jsp is not reloaded automatically when i set like this....?
<Context path="" docBase="App1" debug="0" reloadable="true">

Thanks
 
Rajan Chinna
Ranch Hand
Posts: 320
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can somebody give me the best suggestion about how to organize the folder structure which cater different web applications in single tomcat instance....

Thanks
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Rajan Chinna:
Lets say i have 3 different web applications under webapps folder as
App1, App2 and App3. I want all three apps to be running when tomcat is started.


Thanks


Sure, All web application should be run, After tomcat server started.


1.What should my Context docBase in server.xml pointing to....?
<Context path="" docBase="???" debug="0" reloadable="true">



In tomcat 4.x/5.x, you don't worry in this issue which tomcat server automatically manage.

"docBase" attribute name of Context tag, it's refer to directory in webapp directory but you can refer to another directory (c:\, d:\)

2.Why my new jsp is not reloaded automatically when i set like this....?
<Context path="" docBase="App1" debug="0" reloadable="true">


By default , Tomcat can automatically reloaded jsp.

And another solution : you can reload webapp in Tomcat Manager.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic