Submit a Ticket
Support Center » Knowledgebase » JSP - Tomcat » Mocha PrivateJvm Tool » How to protect a directory with Private JVM?

How to protect a directory with Private JVM?

IMPORTANT NOTE: Please do not modify system files without a backup copy of them.

In order to use protected directory with Private JVM enabled, you should edit the files below:

1) your application web.xml
2) tomcat-users.xml, which is located in your Private JVM configuration directory.

Your application web.xml should contains:

                        <web-resource-name>Wildcard means whole app requires authentication</web-resource-name>

Your tomcat-users.xml should contains:

<role rolename="tomcat"/>
 <user username="your_username" password="your_password" roles="tomcat"/>

 This answer was helpful  This answer was not helpful