This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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.
Customer surveys are for companies who didn't pay proper attention to begin with.