Greetings,
I have had a numbers of problems that I believe are related to my use of
Tomcat and my deployment directory structure and environment variables. Perhaps someone could confirm/correct my understanding. For this discussion I would like to leave the development environment out of scope. This example is from HF page 176.
Here is the deployment structure I am working with:
C:
jakarta-tomcat-5.5.4
webapps
listenerTest
WEB-INF contains web.xml
classes
com
example contains Dog.class, ListenerTester.class, and
MyServletContextListener.class
CLASSPATH= .;C:\MyProjects\listenerTest;C:\jakarta-tomcat-5.5.4;
C:\jakarta-tomcat-5.5.4\common\lib\servlet-api.jar;
C:\jakarta-tomcat-5.5.4\common\lib\jsp-api.jar
JAVA_HOME = C:\Program Files\Java\jdk1.5.0_01
TOMCAT_HOME = C:\jakarta-tomcat-5.5.4
My understanding is that under this configuration Tomcat will start at the install directory, look for the web-xml file in WEB-INF. Tomcat will also look for the class files in the example directory as listed above.
All three classes have a package name of com.example
Given the directory structure and the location of components (web-xml and three class files) I am at a loss to determine why Tomcat is not finding the
servlet it needs.
Can anyone enlighten me?
Thanks,
Sincerely,
Jerry Bustamente