Erro MissingResourceException

04/03/2013

4

Boa tarde.

Estou com o seguinte problema:

HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Can't find bundle for base name ApplicationResources, locale pt_BR
javax.faces.webapp.FacesServlet.service(FacesServlet.java:325)
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)


root cause

java.util.MissingResourceException: Can't find bundle for base name ApplicationResources, locale pt_BR
java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
java.util.ResourceBundle.getBundleImpl(Unknown Source)
java.util.ResourceBundle.getBundle(Unknown Source)
com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:159)
com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:136)
com.sun.faces.util.MessageUtils.getExceptionMessageString(MessageUtils.java:385)
com.sun.faces.application.ApplicationImpl.setViewHandler(ApplicationImpl.java:563)
org.ajax4jsf.event.InitPhaseListener.beforePhase(InitPhaseListener.java:92)
com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:228)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:99)
com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:111)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)


note The full stack trace of the root cause is available in the Apache Tomcat/7.0.16 logs.

console:
Mar 04, 2013 3:00:08 PM org.apache.catalina.core.AprLifecycleListener init
Informações: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\app\rbarcelos\product\11.2.0\client_1;D:\app\rbarcelos\product\11.1.0\db_1\bin;D:\app\rbarcelos\product\11.2.0\client_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\TortoiseSVN\bin;C:\Program Files (x86)\SlikSvn\bin\;C:\Program Files\Internet Explorer;C:\Program Files (x86)\SSH Communications Security\SSH Secure Shell;.
Mar 04, 2013 3:00:08 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
Advertência: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:processoseletivo' did not find a matching property.
Mar 04, 2013 3:00:08 PM org.apache.coyote.AbstractProtocol init
Informações: Initializing ProtocolHandler ["http-bio-8080"]
Mar 04, 2013 3:00:08 PM org.apache.coyote.AbstractProtocol init
Informações: Initializing ProtocolHandler ["ajp-bio-8009"]
Mar 04, 2013 3:00:08 PM org.apache.catalina.startup.Catalina load
Informações: Initialization processed in 442 ms
Mar 04, 2013 3:00:08 PM org.apache.catalina.core.StandardService startInternal
Informações: Starting service Catalina
Mar 04, 2013 3:00:08 PM org.apache.catalina.core.StandardEngine startInternal
Informações: Starting Servlet Engine: Apache Tomcat/7.0.16
Mar 04, 2013 3:00:09 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
Informações: validateJarFile(D:\projeto java\worspaceProducao\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\processoseletivo\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Mar 04, 2013 3:00:09 PM org.apache.catalina.startup.TaglibUriRule body
Informações: TLD skipped. URI:
http://java.sun.com/jsf/html
is already defined
Mar 04, 2013 3:00:09 PM org.apache.catalina.startup.TaglibUriRule body
Informações: TLD skipped. URI: http://java.sun.com/jsf/core is already defined
Mar 04, 2013 3:00:09 PM org.apache.catalina.startup.TaglibUriRule body
Informações: TLD skipped. URI: http://mojarra.dev.java.net/mojarra_ext is already defined
Mar 04, 2013 3:00:09 PM org.apache.catalina.core.StandardContext addApplicationListener
Informações: The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.
Mar 04, 2013 3:00:09 PM com.sun.faces.config.ConfigureListener contextInitialized
Informações: Inicializando Mojarra 2.0.4 (FCS b09) para o contexto '/processoseletivo'
Mar 04, 2013 3:00:10 PM com.sun.faces.spi.InjectionProviderFactory createInstance
Informações: JSF1048: Anotações PostConstruct/PreDestroy presentes. Os métodos ManagedBeans marcados com essas anotações informarão as anotações processadas.
Mar 04, 2013 3:00:11 PM com.sun.faces.mgbean.BeanManager addBean
Advertência: JSF1074: O bean gerenciado denominado 'a4j' já foi registrado. Substituindo o tipo de classe do bean gerenciado org.richfaces.VersionBean por org.richfaces.VersionBean.
Mar 04, 2013 3:00:11 PM com.sun.faces.mgbean.BeanManager addBean
Advertência: JSF1074: O bean gerenciado denominado 'a4jSkin' já foi registrado. Substituindo o tipo de classe do bean gerenciado org.richfaces.skin.SkinBean por org.richfaces.skin.SkinBean.
Mar 04, 2013 3:00:11 PM com.sun.faces.mgbean.BeanManager addBean
Advertência: JSF1074: O bean gerenciado denominado 'richSkin' já foi registrado. Substituindo o tipo de classe do bean gerenciado org.richfaces.skin.SkinBean por org.richfaces.skin.SkinBean.
Mar 04, 2013 3:00:11 PM com.sun.faces.mgbean.BeanManager addBean
Advertência: JSF1074: O bean gerenciado denominado 'ajaxContext' já foi registrado. Substituindo o tipo de classe do bean gerenciado org.ajax4jsf.context.AjaxContextImpl por org.ajax4jsf.context.AjaxContextImpl.
Mar 04, 2013 3:00:11 PM org.ajax4jsf.cache.CacheManager getCacheFactory
Informações: Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
Mar 04, 2013 3:00:11 PM org.ajax4jsf.cache.LRUMapCacheFactory createCache
Informações: Creating LRUMap cache instance using parameters: {javax.servlet.jsp.jstl.fmt.localizationContext=resources.application, javax.faces.STATE_SAVING_METHOD=client, javax.faces.DEFAULT_SUFFIX=.xhtml}
Mar 04, 2013 3:00:11 PM org.ajax4jsf.cache.LRUMapCacheFactory createCache
Informações: Creating LRUMap cache instance of default capacity
Mar 04, 2013 3:00:11 PM org.ajax4jsf.cache.CacheManager getCacheFactory
Informações: Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
Mar 04, 2013 3:00:11 PM org.ajax4jsf.cache.LRUMapCacheFactory createCache
Informações: Creating LRUMap cache instance using parameters: {javax.servlet.jsp.jstl.fmt.localizationContext=resources.application, javax.faces.STATE_SAVING_METHOD=client, javax.faces.DEFAULT_SUFFIX=.xhtml}
Mar 04, 2013 3:00:11 PM org.ajax4jsf.cache.LRUMapCacheFactory createCache
Informações: Creating LRUMap cache instance of default capacity
Mar 04, 2013 3:00:11 PM org.apache.coyote.AbstractProtocol start
Informações: Starting ProtocolHandler ["http-bio-8080"]
Mar 04, 2013 3:00:11 PM org.apache.coyote.AbstractProtocol start
Informações: Starting ProtocolHandler ["ajp-bio-8009"]
Mar 04, 2013 3:00:11 PM org.apache.catalina.startup.Catalina start
Informações: Server startup in 2534 ms
Mar 04, 2013 3:00:15 PM org.ajax4jsf.webapp.BaseXMLFilter doXmlFilter
Grave: Exception in the filter chain
javax.servlet.ServletException: Can't find bundle for base name ApplicationResources, locale pt_BR
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:325)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:403)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:301)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:162)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:140)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.util.MissingResourceException: Can't find bundle for base name ApplicationResources, locale pt_BR
at java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
at java.util.ResourceBundle.getBundleImpl(Unknown Source)
at java.util.ResourceBundle.getBundle(Unknown Source)
at com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:159)
at com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:136)
at com.sun.faces.util.MessageUtils.getExceptionMessageString(MessageUtils.java:385)
at com.sun.faces.application.ApplicationImpl.setViewHandler(ApplicationImpl.java:563)
at org.ajax4jsf.event.InitPhaseListener.beforePhase(InitPhaseListener.java:92)
at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:228)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:99)
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:111)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
... 23 more

Mar 04, 2013 3:00:15 PM org.apache.catalina.core.StandardWrapperValve invoke
Grave: Servlet.service() for servlet [Faces Servlet] in context with path [/processoseletivo] threw exception [Can't find bundle for base name ApplicationResources, locale pt_BR] with root cause
java.util.MissingResourceException: Can't find bundle for base name ApplicationResources, locale pt_BR
at java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
at java.util.ResourceBundle.getBundleImpl(Unknown Source)
at java.util.ResourceBundle.getBundle(Unknown Source)
at com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:159)
at com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:136)
at com.sun.faces.util.MessageUtils.getExceptionMessageString(MessageUtils.java:385)
at com.sun.faces.application.ApplicationImpl.setViewHandler(ApplicationImpl.java:563)
at org.ajax4jsf.event.InitPhaseListener.beforePhase(InitPhaseListener.java:92)
at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:228)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:99)
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:111)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:403)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:301)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:162)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:140)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)



Alguém pode nos ajudar?

Att.:
Ricardo
Responder

Posts

05/03/2013

Davi Costa

Acho que resolve seu problema

http://www.mkyong.com/jsf2/cant-find-bundle-for-base-name-xxx-locale-en_us/

att Davi
Responder

05/03/2013

Danilo Gomes

Esse
mkyong.com
é sempre uma boa fonte de pesquisa para coisas imediatas, simples e objetivo.
Responder

24/07/2013

José

Como a dúvida aparentemente foi sanada, estou dando o tópico por concluído.
Responder
×
+1 DevUP
Acesso diário, +1 DevUP
Parabéns, você está investindo na sua carreira