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
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.
I believe you have to configure your deployment descriptor(web.xml) file for your servlets. If u have already configured it, then I would suggest you to post the error that you get so that we get an idea as to what goin on. -Kitz
Thanks to Nitish my problem has been solved. I will overcome my embarassment at the fix in case someone else has the same problem.
Per Nitish, "The <param_value> should be changed to <param-value>. (the underscore versus the hypen)"
That was it.
If someone wants me to post the source code for the 3 classes and the web.xml and directory structure and environment variables let me know - I would be happy to help. This forum has helped me alot and I'd like to return the favor.
When you have exhausted all possibilities, remember this: you haven't - Edison. Tiny ad: