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

    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:
    <context-param> 
            <param-name>javax.servlet.jsp.jstl.fmt.locale</param-name> 
            <param-value>en_US</param-value> 
        </context-param>
    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/messages.properties 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(ResourceBundle.java:853)
    	at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:743)
    	at java.util.ResourceBundle.getBundle(ResourceBundle.java:593)
    	at org.eclipse.jdt.internal.compiler.problem.DefaultProblemFactory.loadMessageTemplates(DefaultProblemFactory.java:179)
    	at org.eclipse.jdt.internal.compiler.problem.DefaultProblemFactory.<init>(DefaultProblemFactory.java:42)
    	at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:339)
    	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
    	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
    	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
    	at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
    	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:316)
    	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
    	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
    	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
    	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
    	at java.lang.Thread.run(Thread.java:801)
    :eek::eek::eek:
    Last edited by sabelosimelane; 09-04-2008 at 05: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, 09:26 AM
  2. <core:forEach var="" begin="+<%=j%>+">???
    By freddieMaize in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 09-27-2008, 01:20 AM
  3. Replies: 4
    Last Post: 06-08-2008, 02:19 PM
  4. Replies: 5
    Last Post: 05-14-2008, 01:43 PM
  5. "Jumble" or "Scramble" Program
    By Shadow22202 in forum Java Applets
    Replies: 8
    Last Post: 04-30-2008, 03: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
  •