Hi all,
I am very new to the forum, but I have been programming in Java for years. I have the most weird problem running my own servlets in Tomcat. I believe that I have installed the Tomcat program correctly because there are no errors and I can run the example servlet applications provided. However, I cannot run my own servlet classes.
My own classes are placed in the c:\tomcat\webapps\proj1\WEB-INF\classes\ directory. It appears that Tomcat 4.1.27 cannot locate this project on its own even if I use the : localhost:8080/proj1/servlet/name.class syntax in a web browser. This approach is fine for the example files. I was wondering if anybody out there has had a similar problem and if so, I would be grateful if you tell me how to resolve it.
** I should mention that I have defined JAVA_HOME, CATALINA_HOME, and CLASSPATH.
thanks
Narjit
I am very new to the forum, but I have been programming in Java for years. I have the most weird problem running my own servlets in Tomcat. I believe that I have installed the Tomcat program correctly because there are no errors and I can run the example servlet applications provided. However, I cannot run my own servlet classes.
My own classes are placed in the c:\tomcat\webapps\proj1\WEB-INF\classes\ directory. It appears that Tomcat 4.1.27 cannot locate this project on its own even if I use the : localhost:8080/proj1/servlet/name.class syntax in a web browser. This approach is fine for the example files. I was wondering if anybody out there has had a similar problem and if so, I would be grateful if you tell me how to resolve it.
** I should mention that I have defined JAVA_HOME, CATALINA_HOME, and CLASSPATH.
thanks
Narjit