19

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

1 Answer 1

40

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

The file looks something like this:

<Context displayName="myapp" docBase="C:/app/myapp" path="/myapp" reloadable="true" /> 
Sign up to request clarification or add additional context in comments.

3 Comments

That works. Thanks. Just to be more precise. context.xml should be myappname.xml, then you will be able to use localhost/myappname instead of localhost/context
Caused by: java.lang.IllegalArgumentException: The main resource set specified [C:\app\myApp] is not valid What could be the reason for this error
Either use forward slashes or double `\\` backslashes for paths in Windows.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.