java.util.MissingResourceException: Can't find bundle for base name MessagesBundle

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • oll3i
    Contributor
    • Mar 2007
    • 679

    java.util.MissingResourceException: Can't find bundle for base name MessagesBundle

    when i run my jsp file i get an error


    SEVERE: Servlet.service () for servlet jsp threw exception
    java.util.Missi ngResourceExcep tion: Can't find bundle for base name MessagesBundle, locale pl_PL
    at java.util.Resou rceBundle.throw MissingResource Exception(Resou rceBundle.java: 1508)
    at java.util.Resou rceBundle.getBu ndleImpl(Resour ceBundle.java:1 262)
    at java.util.Resou rceBundle.getBu ndle(ResourceBu ndle.java:789)
    at Classes.Config. <init>(Config.j ava:20)
    at Classes.Config. getInstance(Con fig.java:11)
    at org.apache.jsp. candidates.inde x_jsp._jspServi ce(index_jsp.ja va:51)
    at org.apache.jasp er.runtime.Http JspBase.service (HttpJspBase.ja va:98)
    at javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java:803)
    at org.apache.jasp er.servlet.JspS ervletWrapper.s ervice(JspServl etWrapper.java: 331)
    at org.apache.jasp er.servlet.JspS ervlet.serviceJ spFile(JspServl et.java:329)
    at org.apache.jasp er.servlet.JspS ervlet.service( JspServlet.java :265)
    at javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java:803)
    at org.apache.cata lina.core.Appli cationFilterCha in.internalDoFi lter(Applicatio nFilterChain.ja va:269)
    at org.apache.cata lina.core.Appli cationFilterCha in.doFilter(App licationFilterC hain.java:188)
    at org.apache.cata lina.core.Stand ardWrapperValve .invoke(Standar dWrapperValve.j ava:213)
    at org.apache.cata lina.core.Stand ardContextValve .invoke(Standar dContextValve.j ava:174)
    at org.apache.cata lina.core.Stand ardHostValve.in voke(StandardHo stValve.java:12 7)
    at org.apache.cata lina.valves.Err orReportValve.i nvoke(ErrorRepo rtValve.java:11 7)
    at org.apache.cata lina.core.Stand ardEngineValve. invoke(Standard EngineValve.jav a:108)
    at org.apache.cata lina.connector. CoyoteAdapter.s ervice(CoyoteAd apter.java:174)
    at org.apache.coyo te.http11.Http1 1Processor.proc ess(Http11Proce ssor.java:874)
    at org.apache.coyo te.http11.Http1 1BaseProtocol$H ttp11Connection Handler.process Connection(Http 11BaseProtocol. java:665)
    at org.apache.tomc at.util.net.Poo lTcpEndpoint.pr ocessSocket(Poo lTcpEndpoint.ja va:528)
    at org.apache.tomc at.util.net.Lea derFollowerWork erThread.runIt( LeaderFollowerW orkerThread.jav a:81)
    at org.apache.tomc at.util.threads .ThreadPool$Con trolRunnable.ru n(ThreadPool.ja va:689)
    at java.lang.Threa d.run(Thread.ja va:619)
    2008-06-03 13:25:19 org.apache.coyo te.http11.Http1 1BaseProtocol pause
    INFO: Pausing Coyote HTTP/1.1 on http-8080
    2008-06-03 13:25:23 org.apache.cata lina.core.Stand ardService stop
    INFO: Stopping service Catalina
    2008-06-03 13:25:34 org.apache.coyo te.http11.Http1 1BaseProtocol destroy
    INFO: Stopping Coyote HTTP/1.1 on http-8080
    2008-06-03 13:25:34 org.apache.cata lina.core.AprLi fecycleListener lifecycleEvent
    INFO: Failed shutdown of Apache Portable Runtime

    i know polish locale is not tested what should i do?


    Thank You
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Does a file "MessagesBundle " or "MessagesBundle _pl" exist?

    kind regards,

    Jos

    Comment

    • oll3i
      Contributor
      • Mar 2007
      • 679

      #3
      You are right i had a typo

      Comment

      • oll3i
        Contributor
        • Mar 2007
        • 679

        #4
        i corrected the typo and i still get the same error:(

        Comment

        • r035198x
          MVP
          • Sep 2006
          • 13225

          #5
          Originally posted by oll3i
          i corrected the typo and i still get the same error:(
          Did you rebuild the project?
          Also Jos' question above is still valid.

          Comment

          • JosAH
            Recognized Expert MVP
            • Mar 2007
            • 11453

            #6
            Originally posted by oll3i
            i corrected the typo and i still get the same error:(
            Well, the exception tells you that it still can't find that resource bundle so either
            the name is not correct or the file is not stored in the right place.

            kind regards,

            Jos

            Comment

            • oll3i
              Contributor
              • Mar 2007
              • 679

              #7
              yupi it works i moved it to the classes package and it works :)

              Comment

              Working...