Here's the Tomcat ClassLoader HOWTO: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html
Also, you might want to check the AppDeveloper HOWTO: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html If you are creating a new directory in TOMCAT_HOME/webapps, you need a Context entry for that directory in server.xml. Basically, a default install of Tomcat has TOMCAT_HOME/webapps/examples (or CATALINA_HOME/webapps/examples). If you create something on the same "level" as examples, like TOMCAT_HOME/webapps/myDir, you should duplicate everything that is done for the examples. In server.xml, for example, there is a separate Context entry for "examples". There should, then, be an entry for "myDir" in server.xml. There are ways to get Tomcat to auto-deploy web apps, info on how to do this is here: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Automatic%2 0Application%20Deployment HTH John > -----Original Message----- > From: Andy Wickson [mailto:andy@;awtech.co.uk] > Sent: Friday, October 18, 2002 9:00 AM > To: [EMAIL PROTECTED] > Subject: Beginner's config problem with TomCat 4.1.12 on Win2K > > > Hi, > > I seem to have a similar problem to many others when running > TomCat for the first time. > I can run the TomCat examples OK, but cannot run my own tests. > I tried to run an example called 'greeting' from Ch7 of > Wrox's Java Server Programming. This suggests putting the > code under the %TOMCAT_HOME%\webapps\myDir and includes the > web.xml file etc, but I get HTTP Status 404 resource not available. > I also followed a Sun example which suggested putting the > code under %TOMCAT_HOME%\webapps\ROOT but this fails in the same way. > Is there a resource somewhere which states clearly where code > should go and what is affected by its location (CLASSPATH, > web.xml etc). > > Regards > > Andy Wickson > > -- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
