tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mim...@netscape.net
Subject It doesn't work when I invoke servlets using http://localhost/servlet/MyServlet]
Date Fri, 21 Jul 2000 12:15:05 GMT


Hey All,
     I am using Tomcat and Apache and I can run the examples using the following url:
     http://localhost:8040/examples/servlet/OneExample.
     It doesn't work when I invoke servlets using http://localhost/servlet/MyServlet
     or
     http://localhost:8040/servlet/MyServlet

     I get Error 404 Location:/servlet/HelloWorldExample.
When I look at the logs I find:


Starting endpoint port="80" handler="org.apache.tomcat.service.http.HttpConnectionHandler"

Starting endpoint port="8007" handler="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"
Context log: path="" Can't find servet HelloWorldExample
Context log: path="" Exception in init servlet Can't find resource for base name LocalStrings,
locale en_US
 java.util.MissingResourceException: Can't find resource for base name LocalStrings, locale
en_US
    at java.util.ResourceBundle.getBundle(Unknown Source)
    at java.util.ResourceBundle.getBundle(Unknown Source)
    at HelloWorldExample.<init>(HelloWorldExample.java:19)
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Unknown Source)
    at org.apache.tomcat.core.ServletWrapper.initServlet(ServletWrapper.java, Compiled Code)
    at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled
Code)
    at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:597)
    at org.apache.tomcat.servlets.InvokerServlet.service(InvokerServlet.java:257)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled
Code)
    at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
    at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java,
Compiled Code)
    at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java, Compiled
Code)
    at java.lang.Thread.run(Unknown Source)
Context log: path="" Can't find servet HelloWorldExample



     I changed the port in the server.xml to 80 instead of 8080 as suggested.
     Any ideas?
     Thanks,
     Mimi

----------
Get your own FREE, personal Netscape Webmail account today at http://home.netscape.com/webmail/


----------
Get your own FREE, personal Netscape Webmail account today at http://home.netscape.com/webmail/

Mime
View raw message