Why the servlets examples in Tomcat3.1 don't work?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anton_Liu
Posted On:   Saturday, November 1, 2003 08:33 PM

I use Tomcat3.1 and jdk1.3.1_09, Win98 Why the servlets examples in Tomcat3.1 don't work? The error message follows: Error: 500 Location: /examples/servlet/RequestHeaderExample Internal Servlet Error: java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key requestheader.title at java.util.ResourceBundle.getObject(Unknown Source) at java.util.ResourceBundle.getString(Unknown Source) at RequestHeaderExample.doGet(RequestHeaderExample.java:32) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleReque   More>>

I use Tomcat3.1 and jdk1.3.1_09, Win98
Why the servlets examples in Tomcat3.1 don't work?
The error message follows:
Error: 500
Location: /examples/servlet/RequestHeaderExample
Internal Servlet Error:

java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key requestheader.title
at java.util.ResourceBundle.getObject(Unknown Source)
at java.util.ResourceBundle.getString(Unknown Source)
at RequestHeaderExample.doGet(RequestHeaderExample.java:32)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
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:503)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
at java.lang.Thread.run(Unknown Source)

Moreover, how can I set the correct classpath about servlet.jar and serverweb.jar? I have been set the classpath=disk omcat_dirlibservlet.jar ,but javac still cannot import javax.servlet.*.

   <<Less

Re: Why the servlets examples in Tomcat3.1 don't work?

Posted By:   AlessandroA_Garbagnati  
Posted On:   Monday, November 3, 2003 05:26 AM

Hi,

regarding your first question, there must be something wrong in how you have set up Tomcat. By the way, considering that Tomcat 3.1 is a very (really) old version, I would focus my attentions to the latest version of Tomcat 4.1.


Regarding your second question, are you using 'classpath' or 'CLASSPATH'?

About | Sitemap | Contact