RE: HTTP 404 Error
try this: http://localhost:8080/servlet/ServletTest Rgrds, Klaas -Original Message- From: Apache Java [mailto:[EMAIL PROTECTED]] Sent: donderdag 2 augustus 2001 20:15 To: [EMAIL PROTECTED] Subject: Re: HTTP 404 Error Use following url http://localhost:8080/ServletTest/ServletTest Jeffrey - Original Message - From: Jeff Rancier [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 01, 2001 1:25 PM Subject: HTTP 404 Error Hello, I'm stumped. I have the following directory structure/files: c:/tomcat/webapps/ServletTest/WEB-INF/web.xml c:/tomcat/webapps/ServletTest/WEB-INF/classes/ServletTest.class I added the following to my server.xml file: Context path=/ServletTest docBase=webapps/ServletTest crossContext=false debug=0 reloadable=true /Context And my web.xml contains: web-app servlet servlet-nameServletTest/servlet-name servlet-classServletTest/servlet-class /servlet servlet-mapping servlet-nameServletTest/servlet-name url-pattern/ServletTest/url-pattern /servlet-mapping /web-app If I attempt to open http://localhost/ServletTest, I get HTTP 404, file not found. If I attempt to open http://localhost:8080/ServletTest, I get the page cannot be displayed. Any suggestions would be appreciated. Jeff _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
RE: HTTP 404 Error
I'm stumped. I have the following directory structure/files: c:/tomcat/webapps/ServletTest/WEB-INF/web.xml c:/tomcat/webapps/ServletTest/WEB-INF/classes/ServletTest.class I added the following to my server.xml file: Context path=/ServletTest docBase=webapps/ServletTest crossContext=false debug=0 reloadable=true /Context And my web.xml contains: web-app servlet servlet-nameServletTest/servlet-name servlet-classServletTest/servlet-class /servlet servlet-mapping servlet-nameServletTest/servlet-name url-pattern/ServletTest/url-pattern /servlet-mapping /web-app If I attempt to open http://localhost/ServletTest, I get HTTP 404, file not found. If I attempt to open http://localhost:8080/ServletTest, I get the page cannot be displayed. To get your desired results you can either change your server.xml to be Context path=/ docBase=webapps/ServletTest crossContext=false debug=0 reloadable=true /Context where the important thing to note is the path, or you can change the request to be http://localhost:8080/ServletTest/ServletTest. --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com
RE: HTTP 404 Error
1) Tomcat, by default, connects on port 8080. If you want to change that, edit your server.xml. 2) It sounds like your HTML is malformed or empty. Use the View source menu in the browser to see what you're spitting out. -- Bill K. -Original Message- From: Jeff Rancier [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 01, 2001 10:26 AM To: [EMAIL PROTECTED] Subject: HTTP 404 Error Hello, I'm stumped. I have the following directory structure/files: c:/tomcat/webapps/ServletTest/WEB-INF/web.xml c:/tomcat/webapps/ServletTest/WEB-INF/classes/ServletTest.class I added the following to my server.xml file: Context path=/ServletTest docBase=webapps/ServletTest crossContext=false debug=0 reloadable=true /Context And my web.xml contains: web-app servlet servlet-nameServletTest/servlet-name servlet-classServletTest/servlet-class /servlet servlet-mapping servlet-nameServletTest/servlet-name url-pattern/ServletTest/url-pattern /servlet-mapping /web-app If I attempt to open http://localhost/ServletTest, I get HTTP 404, file not found. If I attempt to open http://localhost:8080/ServletTest, I get the page cannot be displayed. Any suggestions would be appreciated. Jeff
RE: HTTP 404 Error
Thanks. I got it. I forgot to mention I was running with IIS 5.0. The addition of the following: /ServletTest/*=ajp12 to my uriworkermap.properties file did the trick. Jeff -Original Message- From: Michael Wentzel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 01, 2001 12:46 PM To: '[EMAIL PROTECTED]' Subject: RE: HTTP 404 Error I'm stumped. I have the following directory structure/files: c:/tomcat/webapps/ServletTest/WEB-INF/web.xml c:/tomcat/webapps/ServletTest/WEB-INF/classes/ServletTest.class I added the following to my server.xml file: Context path=/ServletTest docBase=webapps/ServletTest crossContext=false debug=0 reloadable=true /Context And my web.xml contains: web-app servlet servlet-nameServletTest/servlet-name servlet-classServletTest/servlet-class /servlet servlet-mapping servlet-nameServletTest/servlet-name url-pattern/ServletTest/url-pattern /servlet-mapping /web-app If I attempt to open http://localhost/ServletTest, I get HTTP 404, file not found. If I attempt to open http://localhost:8080/ServletTest, I get the page cannot be displayed. To get your desired results you can either change your server.xml to be Context path=/ docBase=webapps/ServletTest crossContext=false debug=0 reloadable=true /Context where the important thing to note is the path, or you can change the request to be http://localhost:8080/ServletTest/ServletTest. --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com
Re: HTTP 404 Error
You are mapping the servlet relative to the context only. try http://localhost/ServletTest/ServletTest make sure your Tomcat's listening port number such as 8080 or 80 from the server.xml file. - Original Message - From: Jeff Rancier [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 01, 2001 10:55 PM Subject: HTTP 404 Error Hello, I'm stumped. I have the following directory structure/files: c:/tomcat/webapps/ServletTest/WEB-INF/web.xml c:/tomcat/webapps/ServletTest/WEB-INF/classes/ServletTest.class I added the following to my server.xml file: Context path=/ServletTest docBase=webapps/ServletTest crossContext=false debug=0 reloadable=true /Context And my web.xml contains: web-app servlet servlet-nameServletTest/servlet-name servlet-classServletTest/servlet-class /servlet servlet-mapping servlet-nameServletTest/servlet-name url-pattern/ServletTest/url-pattern /servlet-mapping /web-app If I attempt to open http://localhost/ServletTest, I get HTTP 404, file not found. If I attempt to open http://localhost:8080/ServletTest, I get the page cannot be displayed. Any suggestions would be appreciated. Jeff