File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes basic Tomcat setup and MissingResourceException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "basic Tomcat setup and MissingResourceException" Watch "basic Tomcat setup and MissingResourceException" New topic
Author

basic Tomcat setup and MissingResourceException

Kai Middleton
Greenhorn

Joined: Jul 27, 2001
Posts: 12
When you're going to install or try something new, what do you do? You look at the example, tweak it a little bit, then try it yourself. To wit: I've tried installing Tomcat 4.0 on my windows 2000 box. It worked wonderfully, and I could browse http://localhost:8080/examples/servlet/HelloWorldExample
So naturally I wanted to try something like this: http://localhost:8080/MyApplication/servlet/HelloWorldExample
Right? I would just create my own directory structure similar to the existing examples structure, copy over the HelloWorldExample class file and fire it up.
I had
C:\tomcat\webapps\examples\WEB-INF\classes>
with HelloWorldExample.class in it
so I created
C:\tomcat\webapps\examples\WEB-INF\classes>
and copied it over.
Well, that's the easy part. I also modified
C:\tomcat\conf\server.xml
to have a <Context> for MyApplication.. hopefully I created this correctly.
And since there existed a file
C:\tomcat\webapps\examples\WEB-INF\web.xml
I created a
C:\tomcat\webapps\MyApplication\WEB-INF\web.xml
and put what I hoped was correct in it.
No love. This is the error trace I get:

A Servlet Exception Has Occurred
java.util.MissingResourceException: Can't find bundle for base name LocalStrings, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:712)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:604)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:559)
at HelloWorldExample.doGet(HelloWorldExample.java:25)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:219)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2251)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:446)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:984)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1074)
at java.lang.Thread.run(Thread.java:484)


<I>Kai M.</I>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: basic Tomcat setup and MissingResourceException
 
Similar Threads
500 ERROR HELP!!!!!
Can't Get Hunter 2nd edition Example 4-16 to work
JSPs not running on Tomcat -4.0.1 version
JSPs not running on Tomcat -4.0.1 version
struts-example.war