danglingpointers
Technical User
I have had Tomcat 4.1 up and running on my linux box for some time and now I am giving Tomcat 5.5 a try on windows and I seem to be missing some nuance.
I have a standard servlet program for which I have created the following directory structure under %CATALINA_HOME%\webapps\myProject\WEB-INF\classes:
\controllers
\utils
\daos
I reference one of my controllers in a jsp as /servlet/controllers.myServlet. But I got a 404. So I tried registering the servlets in my own web.xml file (located in %CATALINA_HOME%\webapps\myProject\WEB-INF).
Thus far I have the following
But still I get a 404. There must be some minute detail that I am not seeing here.
All help is greatly appreciated.
I have a standard servlet program for which I have created the following directory structure under %CATALINA_HOME%\webapps\myProject\WEB-INF\classes:
\controllers
\utils
\daos
I reference one of my controllers in a jsp as /servlet/controllers.myServlet. But I got a 404. So I tried registering the servlets in my own web.xml file (located in %CATALINA_HOME%\webapps\myProject\WEB-INF).
Thus far I have the following
Code:
<servlet>
<servlet-name>myServlet</servlet>
<servlet-class>controllers.myServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>myServlet</servlet>
<url-pattern>/servlet/controllers.myServlet</url-pattern>
</servlet-mapping>
But still I get a 404. There must be some minute detail that I am not seeing here.
All help is greatly appreciated.