Posts

Showing posts with the label Tomcat

403 Access Denied On Tomcat 8 Manager App Without Prompting For User/password

Answer : This may be work. Find the CATALINA_HOME/webapps/manager/META-INF/context.xml file and add the comment markers around the Valve. <Context antiResourceLocking="false" privileged="true" > <!-- <Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" /> --> </Context> You can find more details at this page. The solution that worked for me is edit context.xml files in both $CATALINA_HOME/webapps/manager/META-INF and $CATALINA_HOME/webapps/host-manager/META-INF where my ip is 123.123.123.123 . <Context antiResourceLocking="false" privileged="true" > <Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1|123.123.123.123" /> </Context> I installed Tomcat 8.5 on Ubuntu and edited $CATALINA_HOME/conf/tomcat-users.xml : <role ro...

Adding An External Directory To Tomcat Classpath

Answer : Just specify it in shared.loader or common.loader property of /conf/catalina.properties . See also question: Can I create a custom classpath on a per application basis in Tomcat Tomcat 7 Context hold Loader element. According to docs deployment descriptor (what in <Context> tag) can be placed in: $CATALINA_BASE/conf/server.xml - bad - require server restarts in order to reread config $CATALINA_BASE/conf/context.xml - bad - shared across all applications $CATALINA_BASE/work/$APP.war:/META-INF/context.xml - bad - require repackaging in order to change config $CATALINA_BASE/work/[enginename]/[hostname]/$APP/META-INF/context.xml - nice , but see last option!! $CATALINA_BASE/webapps/$APP/META-INF/context.xml - nice , but see last option!! $CATALINA_BASE/conf/[enginename]/[hostname]/$APP.xml - best - completely out of application and automatically scanned for changes!!! Here my config which demonstrate how to use development version of project files ...