Servlet deployment problems (Apache 2.0.44 / Jakarta-Tomcat 4.1.18)
Hi. I have some problems with the deployment of servlets with Apahce / Jakarta-Tomcat. 1.) I have placed the servlet class in: .../webapps/application/WEB-INF/classes/servlet class 2.) I have added a web.xml file in: .../webapps/application/WEB-INF/web.xml 3.) I have added the following lines to the web.xml file: - servlet -servlet-nameTesting/servlet-name -servlet-classTesting/servlet-class - /servlet 4.) I have then tried to execute the servlet with this: - a href=/servlet/TestingTesting servlet/a and - a href=/application/servlet/TestingTesting servlet/a but I am always getting a HTTP Status 404 ERR: - The requested resource (path to servlet class) is not available. Any help is appriciated. Best regards, Lars Nielsen Lind
RE: Servlet deployment problems (Apache 2.0.44 / Jakarta-Tomcat 4.1.18)
Add servlet-mapping servlet-nameTesting/servlet-name url-pattern/servlet/MyServlet/url-pattern (change this as needed) /servlet-mapping to your web.xml below the entry you already made. The entry you have is incomplete, there is no URL map. That's the reason for the 404. John -Original Message- From: Lars Nielsen Lind [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 6:56 AM To: Tomcat Users List Subject: Servlet deployment problems (Apache 2.0.44 / Jakarta-Tomcat 4.1.18) Hi. I have some problems with the deployment of servlets with Apahce / Jakarta-Tomcat. 1.) I have placed the servlet class in: .../webapps/application/WEB-INF/classes/servlet class 2.) I have added a web.xml file in: .../webapps/application/WEB-INF/web.xml 3.) I have added the following lines to the web.xml file: - servlet -servlet-nameTesting/servlet-name -servlet-classTesting/servlet-class - /servlet 4.) I have then tried to execute the servlet with this: - a href=/servlet/TestingTesting servlet/a and - a href=/application/servlet/TestingTesting servlet/a but I am always getting a HTTP Status 404 ERR: - The requested resource (path to servlet class) is not available. Any help is appriciated. Best regards, Lars Nielsen Lind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Servlet deployment problems (Apache 2.0.44 / Jakarta-Tomcat 4.1.18)
Are you using jdk 1.4, in 1.4 you can no longer have non packaged classes.. Also you might need to setup the default servlet as it is disabled by default for security reasons. If you do not want to enable the default servlet you could also create a servlet mapping. John -Original Message- From: Lars Nielsen Lind [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 6:56 AM To: Tomcat Users List Subject: Servlet deployment problems (Apache 2.0.44 / Jakarta-Tomcat 4.1.18) Hi. I have some problems with the deployment of servlets with Apahce / Jakarta-Tomcat. 1.) I have placed the servlet class in: .../webapps/application/WEB-INF/classes/servlet class 2.) I have added a web.xml file in: .../webapps/application/WEB-INF/web.xml 3.) I have added the following lines to the web.xml file: - servlet -servlet-nameTesting/servlet-name -servlet-classTesting/servlet-class - /servlet 4.) I have then tried to execute the servlet with this: - a href=/servlet/TestingTesting servlet/a and - a href=/application/servlet/TestingTesting servlet/a but I am always getting a HTTP Status 404 ERR: - The requested resource (path to servlet class) is not available. Any help is appriciated. Best regards, Lars Nielsen Lind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]