• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

howto configure tomcat to hold web application~~

 
Alvin chew
Ranch Hand
Posts: 834
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, how to i configure tomcat and make a new folder that contains web application, i don't want create subfolder in "webapp" folder ?
tq
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64617
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your web app can exist anywhere on the filesystem that Tomcat has access. Create a new Context in server.xml for the app and specify the location as the docbase.
 
Alvin chew
Ranch Hand
Posts: 834
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry, bear ,i'm quite new in tomcat , i didn't get it ? can u show me more detail ?
1)example i want a make a folder "test" under c:\tomcat to hold my web application , how i set it in server.xml?
2)can i just make a folder say "test" as c:\test , rather than under c:\tomcat\test ?
tq
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add a line like this to '<tomcat>/conf/server.xml' inside the 'HOST' tag

Rene
[ February 28, 2004: Message edited by: Rene Larsen ]
 
Alvin chew
Ranch Hand
Posts: 834
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tq, i get it ....thks very much , Rene Larsen and Bear Bibeault
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic