I have my servlets working in the examples directory but I need to create the directory C:\myapp\iwa\servlets I set the context in server.xml <Context path="/myapp/iwa/servlets" docBase="myapp/iwa/servlets" debug="0" reloadable="true"/> it does not find the servlet when I post to it. currently the context below: <!-- Tomcat Examples Context --> <Context path="/examples" docBase="examples" debug="0" reloadable="true"> I can run my servlets placing all my class file servlets here without no problems. but,I need to change the directory structure to use C:\jakarta-tomcat-4.0\webapps\myapp\iwa\servlets thanks in advance
------------------ Sun Certified Java Programmer Sun Certified Java Developer I-Net Certified A+ Certified Network+ Certified MCP
I think you'll have better luck if you put an absolute filesystem path in the docBase attribute. By default, I believe it's relative to TOMCAT_HOME/webapps. "docBase" can be any directory, BTW, docBase doesn't have to form its name relative to the URL path. Though consistency does make it easier to maintain.
An IDE is no substitute for an Intelligent Developer.