tags:

views:

454

answers:

1

Could anyone answer my question, please?

I'd like to deploy a web application folder

C:\app\myapp

to Tomcat6.x instead of having a copy under

%TOMCAT_HOME%\webapps

Which configuration is required on tomcat server?

Thanks

+4  A: 

You should create a context.xml file for this app and place it in %TOMCAT_HOME%\conf\Catalina\localhost.

The file looks something like this:

<Context displayName="yourapp" 
     docBase="C:\app\myapp"
     path="yourapp"
     reloadable="true">
Kees de Kooter
That works. Thanks.Just to be more precise. context.xml should be myappname.xml, then you will be able to use http://localhost/myappname instead of http://localhost/context
manetic
You are absolutely right. Glad I could help.
Kees de Kooter