> From: Me Self [mailto:wmso...@gmail.com] > Subject: context doesnt pick up
> When I put the context in server.xml it works fine, but if I put the same > context tag in a xml file under /conf/Catalina/localhost/test.xml then > tomcat doesn't pick it up. I would rather want to use the latter. > The test.xml is > <?xml version="1.0" encoding="UTF-8"?> > <Context docBase="/opt/tomcat/webapps/test"> > What Am I missing? Reading the doc, which for the docBase attribute states: "The value of this field must not be set unless the Context element is defined in server.xml or the docBase is not located under the Host's appBase." http://tomcat.apache.org/tomcat-8.0-doc/config/context.html I suspect that if you examined the logs you would find an error message related to deployment of the test webapp. If all you have in the <Context> element is the docBase and your webapp is located in the <Host>'s appBase directory, you don't need a <Context> element at all. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org