Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

server.xml sample

Status
Not open for further replies.

OlivierFR

Programmer
Jul 16, 2005
4
FR
Hi all.

Does anyone have a sample configuration server.xml so that I may put my web app in :
J:\INTRANET\Tomcat\jsp-servlet_test\
instead of the Tomcat 5.0.28 install dir ?

Thanks & regards to all.
Olivier.
 
Find your relevant host section, and change the appBase attribute :

If "jsp-servlet_test" is your webapp name, change :

Code:
      <Host name="localhost" debug="0" appBase="webapps"
       unpackWARs="true" autoDeploy="true"
       xmlValidation="false" xmlNamespaceAware="false">

to :

Code:
      <Host name="localhost" debug="0" appBase="J:\INTRANET\Tomcat\"
       unpackWARs="true" autoDeploy="true"
       xmlValidation="false" xmlNamespaceAware="false">

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
In fact I wish to have several web app in
J:\INTRANET\Tomcat\
 
Well thats fine - the example I posted means the instead of looking in TOMCAT_HOME/webapps for your web apps, it will look in J:\INTRANET\Tomcat\ . Did you even try it ?

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Not yet as I prepare in the same time a long voyage to South Asia.

I will before leaving ; Im going to copy/paste all web-app from install dir and will try
I will tell you !
Thanks sedj :)
 
OK, well give it a try and come back if you cannot get it to work :)

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top