In netbeans I can right click on project name, select properties > run > and change the context path, how can I change the context path of the tomcat on my server which is accessible using cPanel?
Asked
Active
Viewed 7,082 times
1 Answers
3
Add root.xml file in $CATALINA_BASE/conf/[enginename]/[hostname]/
and add this as :
<Context
docBase="/opt/mywebapps/<yourApp>"
path=""
reloadable="true"
/>
For more detail you can use the Apache context configuration link : http://tomcat.apache.org/tomcat-7.0-doc/config/context.html

Vaibhav Jain
- 3,729
- 3
- 25
- 42
-
By default, CATALINA_HOME is /usr/share/tomcat6, and CATALINA_BASE is /var/lib/tomcat6. – Vaibhav Jain May 09 '13 at 05:28
-
these both can be set in /etc/default/tomcat6. – Vaibhav Jain May 09 '13 at 05:31
-
I do not how to access these, should I access them using ssh ? – J888 May 09 '13 at 05:33
-
1In ubuntu tomcat v6, if installed at /usr/lib/tomcat6/... both variables are stored in /etc/init.d/tomcat6 – Vaibhav Jain May 09 '13 at 06:46
-
chech this link contain unix/linux system access of this: http://mail-archives.apache.org/mod_mbox/tomcat-users/200505.mbox/%3C427A6C44.8030707@objektpark.de%3E – Vaibhav Jain May 09 '13 at 06:52