Results 1 to 1 of 1
  1. #1
    Join Date
    Sep 2008
    Rep Power

    Unhappy setting JSTL locale "java.util.MissingResourceException"

    I have an application that runs well on my local machine but when I deploy it on the server I get a "java.util.MissingResourceException" exception. I am using JBOSS, JSTL and spring. I have tried to use these pieces of code:

    Java Code:
    <fmt:setLocale value="en_US" />
    I have also tried this in my web.xml

    Java Code:
    When I debug locally the locale is "en_US" but when deployed to the server the exception shows that it's actually "en_ZA". Is there a way I can force this locale on the server to look for "en_US" just like it is locally? Could someone help please?

    This is my stack trace:
    Java Code:
    2008-09-04 15:07:59,562 INFO  [STDOUT] Missing resource : org/eclipse/jdt/internal/compiler/problem/ for locale en_ZA
    2008-09-04 15:07:59,562 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/MSS].[jsp]] Servlet.service() for servlet jsp threw exception
    java.util.MissingResourceException: Can't find bundle for base name org.eclipse.jdt.internal.compiler.problem.messages, locale en_ZA
    	at java.util.ResourceBundle.throwMissingResourceException(
    	at java.util.ResourceBundle.getBundleImpl(
    	at java.util.ResourceBundle.getBundle(
    	at org.eclipse.jdt.internal.compiler.problem.DefaultProblemFactory.loadMessageTemplates(
    	at org.eclipse.jdt.internal.compiler.problem.DefaultProblemFactory.<init>(
    	at org.apache.jasper.compiler.JDTCompiler.generateClass(
    	at org.apache.jasper.compiler.Compiler.compile(
    	at org.apache.jasper.compiler.Compiler.compile(
    	at org.apache.jasper.compiler.Compiler.compile(
    	at org.apache.jasper.JspCompilationContext.compile(
    	at org.apache.jasper.servlet.JspServletWrapper.service(
    	at org.apache.jasper.servlet.JspServlet.serviceJspFile(
    	at org.apache.jasper.servlet.JspServlet.service(
    	at javax.servlet.http.HttpServlet.service(
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(
    	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(
    	at org.apache.catalina.core.StandardWrapperValve.invoke(
    	at org.apache.catalina.core.StandardContextValve.invoke(
    	at org.apache.catalina.core.StandardHostValve.invoke(
    	at org.apache.catalina.valves.ErrorReportValve.invoke(
    	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(
    	at org.apache.catalina.core.StandardEngineValve.invoke(
    	at org.apache.catalina.connector.CoyoteAdapter.service(
    	at org.apache.coyote.http11.Http11Processor.process(
    	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
    Last edited by sabelosimelane; 09-04-2008 at 06:05 PM.

Similar Threads

  1. Hwlp with "Open", "Save", "Save as..."
    By trill in forum New To Java
    Replies: 3
    Last Post: 11-02-2010, 10:26 AM
  2. <core:forEach var="" begin="+<%=j%>+">???
    By freddieMaize in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 09-27-2008, 02:20 AM
  3. Replies: 4
    Last Post: 06-08-2008, 03:19 PM
  4. Replies: 5
    Last Post: 05-14-2008, 02:43 PM
  5. "Jumble" or "Scramble" Program
    By Shadow22202 in forum Java Applets
    Replies: 8
    Last Post: 04-30-2008, 04:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts