Re: Can't access my servlet
Yes - I have another servlet in this same application and in order to access that one I had to add another entry into the web.xml file. New web.xml looks like this: servlet servlet-nameTestServlet/servlet-name servlet-classTestServlet/servlet-class /servlet servlet servlet-nameCalendarData/servlet-name servlet-classCalendarData/servlet-class /servlet servlet-mapping servlet-nameTestServlet/servlet-name url-pattern/TestServlet/url-pattern /servlet-mapping servlet-mapping servlet-nameCalendarData/servlet-name url-pattern/CalendarData/url-pattern /servlet-mapping Lori - Original Message - From: JS [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 03, 2003 5:09 PM Subject: Re: Can't access my servlet Hi there, I was just wondering, does this action have to be performeed with all servlets produced?? Thanks Many thanks!!! I added this entry to the web.xml servlet-mapping servlet-nameTestServlet/servlet-name url-pattern/TestServlet/url-pattern /servlet-mapping and was able to access it with this url: http://localhost:8080/stcecilia/TestServlet Thanks, Lori - Original Message - From: Tam, Michael [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, April 02, 2003 7:14 PM Subject: RE: Can't access my servlet you need url mapping for your servlet in your web.xml file. Servlet inovker is disable since 4.1.12 I believe if you do read the release note carefully in your tomcat installation. -Original Message- From: Lori Bishop [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2003 4:12 PM To: tomcat maillist Subject: Can't access my servlet I just installed Tomcat and am able to start it up successfully and access the examples servlet successfully using: http://localhost:8080/examples/servlet/HelloWorldExample I have my own servlet in C:\jakarta-tomcat-4.1.24\webapps\stcecilia\WEB-INF\classes\TestServlet.class When I try to access it with http://localhost:8080/stcecilia/servlet/TestServlet I get this message: description The requested resource (/stcecilia/servlet/TestServlet) is not available. Based on other postings in this mailing list, I added this entry to the server.xml !-- stcecilia Context -- Context path=/stcecilia docBase=stcecilia debug=0 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_stcecilia_log. suffix=.txt timestamp=true/ /Context Here is my C:\jakarta-tomcat-4.1.24\webapps\stcecilia\WEB-INF\web.xml ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app display-nameStCeciliaSite/display-name description St Cecilia Website /description servlet servlet-nameTestServlet/servlet-name servlet-classTestServlet/servlet-class /servlet /web-app Any ideas on what I am doing wrong. Thanks for your help, Lori - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can't access my servlet
I just installed Tomcat and am able to start it up successfully and access the examples servlet successfully using: http://localhost:8080/examples/servlet/HelloWorldExample I have my own servlet in C:\jakarta-tomcat-4.1.24\webapps\stcecilia\WEB-INF\classes\TestServlet.class When I try to access it with http://localhost:8080/stcecilia/servlet/TestServlet I get this message: description The requested resource (/stcecilia/servlet/TestServlet) is not available. Based on other postings in this mailing list, I added this entry to the server.xml !-- stcecilia Context -- Context path=/stcecilia docBase=stcecilia debug=0 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_stcecilia_log. suffix=.txt timestamp=true/ /Context Here is my C:\jakarta-tomcat-4.1.24\webapps\stcecilia\WEB-INF\web.xml ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app display-nameStCeciliaSite/display-name description St Cecilia Website /description servlet servlet-nameTestServlet/servlet-name servlet-classTestServlet/servlet-class /servlet /web-app Any ideas on what I am doing wrong. Thanks for your help, Lori - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't access my servlet
Many thanks!!! I added this entry to the web.xml servlet-mapping servlet-nameTestServlet/servlet-name url-pattern/TestServlet/url-pattern /servlet-mapping and was able to access it with this url: http://localhost:8080/stcecilia/TestServlet Thanks, Lori - Original Message - From: Tam, Michael [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, April 02, 2003 7:14 PM Subject: RE: Can't access my servlet you need url mapping for your servlet in your web.xml file. Servlet inovker is disable since 4.1.12 I believe if you do read the release note carefully in your tomcat installation. -Original Message- From: Lori Bishop [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2003 4:12 PM To: tomcat maillist Subject: Can't access my servlet I just installed Tomcat and am able to start it up successfully and access the examples servlet successfully using: http://localhost:8080/examples/servlet/HelloWorldExample I have my own servlet in C:\jakarta-tomcat-4.1.24\webapps\stcecilia\WEB-INF\classes\TestServlet.class When I try to access it with http://localhost:8080/stcecilia/servlet/TestServlet I get this message: description The requested resource (/stcecilia/servlet/TestServlet) is not available. Based on other postings in this mailing list, I added this entry to the server.xml !-- stcecilia Context -- Context path=/stcecilia docBase=stcecilia debug=0 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_stcecilia_log. suffix=.txt timestamp=true/ /Context Here is my C:\jakarta-tomcat-4.1.24\webapps\stcecilia\WEB-INF\web.xml ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app display-nameStCeciliaSite/display-name description St Cecilia Website /description servlet servlet-nameTestServlet/servlet-name servlet-classTestServlet/servlet-class /servlet /web-app Any ideas on what I am doing wrong. Thanks for your help, Lori - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]