myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerhard Petracek (JIRA)" <...@myfaces.apache.org>
Subject [jira] Commented: (EXTVAL-78) Can't find resource for bundle, key javax.faces.component.UIInput.REQUIRED
Date Fri, 25 Dec 2009 01:09:29 GMT

    [ https://issues.apache.org/jira/browse/EXTVAL-78?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12794530#action_12794530
] 

Gerhard Petracek commented on EXTVAL-78:
----------------------------------------

#1 thx for reporting the issue!
#2 please ask on the mailing list(s) before you create a jira issue to make sure that it is
an issue
     (+ as you see jira isn't checked every day for new issues)
#3 you are also using bean-validation - if you would like to use it for the ui part as well
you need a different version of extval
#4 as i see: the issue happens if you have a custom bundle (see faces-config <message-bundle>
in <application>)
#5 workaround: copy the few std. messages re-used by extval to your custom bundle

> Can't find resource for bundle, key javax.faces.component.UIInput.REQUIRED
> --------------------------------------------------------------------------
>
>                 Key: EXTVAL-78
>                 URL: https://issues.apache.org/jira/browse/EXTVAL-78
>             Project: MyFaces Extensions Validator
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.2
>         Environment: Linux Ubuntu 
> Java 1.6.0_11
> Eclipse 3.4
> JBoss 4.2
>            Reporter: Marcos Roberto Petry
>
> Hello Guys, 
> I have found some problems to integrate ExtVal into our WebApp. The objective is to avoid
duplication of validation logic.
> Gerhard Petracek, in http://jsfcentral.com/articles/myfaces_extval_2.html show ExtVal
works fine for JSF 1.2 getting this.
> So I tried to use ExtVal on my JSF pages and got the an error.
> Can anybody help me?
> Regards,
> Petry
> log:
> 08:51:37,741 WARN  [lifecycle] Can't find resource for bundle java.util.PropertyResourceBundle,
key javax.faces.component.UIInput.REQUIRED
> java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle,
key javax.faces.component.UIInput.REQUIRED
> 	at java.util.ResourceBundle.getObject(ResourceBundle.java:384)
> 	at java.util.ResourceBundle.getString(ResourceBundle.java:344)
> 	at org.apache.myfaces.extensions.validator.util.ExtValUtils.replaceWithDefaultRequiredMessage(ExtValUtils.java:330)
> 	at org.apache.myfaces.extensions.validator.baseval.strategy.JpaValidationStrategy.processAfterValidatorException(JpaValidationStrategy.java:195)
> 	at org.apache.myfaces.extensions.validator.core.validation.strategy.AbstractValidationStrategy.validate(AbstractValidationStrategy.java:92)
> 	at org.apache.myfaces.extensions.validator.core.interceptor.ValidationInterceptor.processValidation(ValidationInterceptor.java:191)
> 	at org.apache.myfaces.extensions.validator.core.interceptor.ValidationInterceptor.beforeGetConvertedValue(ValidationInterceptor.java:147)
> 	at org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.getConvertedValue(ExtValRendererWrapper.java:468)
> 	at javax.faces.component.UIInput.getConvertedValue(UIInput.java:942)
> 	at javax.faces.component.UIInput.validate(UIInput.java:868)
> 	at javax.faces.component.UIInput.executeValidate(UIInput.java:1072)
> 	at javax.faces.component.UIInput.processValidators(UIInput.java:672)
> 	at javax.faces.component.UIForm.processValidators(UIForm.java:235)
> 	at org.ajax4jsf.component.AjaxViewRoot$3.invokeContextCallback(AjaxViewRoot.java:435)
> 	at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:235)
> 	at org.ajax4jsf.component.AjaxViewRoot.processValidators(AjaxViewRoot.java:451)
> 	at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)
> 	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
> 	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
> 	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:246)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:154)
> 	at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:260)
> 	at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:366)
> 	at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:493)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:301)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> 	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:182)
> 	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
> 	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:619)
> 08:51:37,741 ERROR [lifecycle] JSF1054: (Phase ID: PROCESS_VALIDATIONS 3, View ID: /private/pages/tipo_doc_habil.xhtml)
Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@b471fe]
> 08:51:37,742 ERROR [BaseXMLFilter] Exception in the filter chain
> javax.servlet.ServletException: Can't find resource for bundle java.util.PropertyResourceBundle,
key javax.faces.component.UIInput.REQUIRED
> 	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:246)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:154)
> 	at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:260)
> 	at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:366)
> 	at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:493)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:301)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> 	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:182)
> 	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
> 	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:619)
> Caused by: java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle,
key javax.faces.component.UIInput.REQUIRED
> 	at java.util.ResourceBundle.getObject(ResourceBundle.java:384)
> 	at java.util.ResourceBundle.getString(ResourceBundle.java:344)
> 	at org.apache.myfaces.extensions.validator.util.ExtValUtils.replaceWithDefaultRequiredMessage(ExtValUtils.java:330)
> 	at org.apache.myfaces.extensions.validator.baseval.strategy.JpaValidationStrategy.processAfterValidatorException(JpaValidationStrategy.java:195)
> 	at org.apache.myfaces.extensions.validator.core.validation.strategy.AbstractValidationStrategy.validate(AbstractValidationStrategy.java:92)
> 	at org.apache.myfaces.extensions.validator.core.interceptor.ValidationInterceptor.processValidation(ValidationInterceptor.java:191)
> 	at org.apache.myfaces.extensions.validator.core.interceptor.ValidationInterceptor.beforeGetConvertedValue(ValidationInterceptor.java:147)
> 	at org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.getConvertedValue(ExtValRendererWrapper.java:468)
> 	at javax.faces.component.UIInput.getConvertedValue(UIInput.java:942)
> 	at javax.faces.component.UIInput.validate(UIInput.java:868)
> 	at javax.faces.component.UIInput.executeValidate(UIInput.java:1072)
> 	at javax.faces.component.UIInput.processValidators(UIInput.java:672)
> 	at javax.faces.component.UIForm.processValidators(UIForm.java:235)
> 	at org.ajax4jsf.component.AjaxViewRoot$3.invokeContextCallback(AjaxViewRoot.java:435)
> 	at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:235)
> 	at org.ajax4jsf.component.AjaxViewRoot.processValidators(AjaxViewRoot.java:451)
> 	at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)
> 	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
> 	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
> 	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
> 	... 31 more
> 08:51:37,742 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw
exception
> java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle,
key javax.faces.component.UIInput.REQUIRED
> 	at java.util.ResourceBundle.getObject(ResourceBundle.java:384)
> 	at java.util.ResourceBundle.getString(ResourceBundle.java:344)
> 	at org.apache.myfaces.extensions.validator.util.ExtValUtils.replaceWithDefaultRequiredMessage(ExtValUtils.java:330)
> 	at org.apache.myfaces.extensions.validator.baseval.strategy.JpaValidationStrategy.processAfterValidatorException(JpaValidationStrategy.java:195)
> 	at org.apache.myfaces.extensions.validator.core.validation.strategy.AbstractValidationStrategy.validate(AbstractValidationStrategy.java:92)
> 	at org.apache.myfaces.extensions.validator.core.interceptor.ValidationInterceptor.processValidation(ValidationInterceptor.java:191)
> 	at org.apache.myfaces.extensions.validator.core.interceptor.ValidationInterceptor.beforeGetConvertedValue(ValidationInterceptor.java:147)
> 	at org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.getConvertedValue(ExtValRendererWrapper.java:468)
> 	at javax.faces.component.UIInput.getConvertedValue(UIInput.java:942)
> 	at javax.faces.component.UIInput.validate(UIInput.java:868)
> 	at javax.faces.component.UIInput.executeValidate(UIInput.java:1072)
> 	at javax.faces.component.UIInput.processValidators(UIInput.java:672)
> 	at javax.faces.component.UIForm.processValidators(UIForm.java:235)
> 	at org.ajax4jsf.component.AjaxViewRoot$3.invokeContextCallback(AjaxViewRoot.java:435)
> 	at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:235)
> 	at org.ajax4jsf.component.AjaxViewRoot.processValidators(AjaxViewRoot.java:451)
> 	at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)
> 	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
> 	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
> 	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:246)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:154)
> 	at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:260)
> 	at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:366)
> 	at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:493)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:301)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> 	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:182)
> 	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
> 	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:619)
> I'm using the libs:
> activation-1.1.jar
> antlr-2.7.6.jar
> asm-1.5.3.jar
> asm-attrs-1.5.3.jar
> aspectjrt-1.5.4.jar
> batik-awt-util-1.6-1.jar
> batik-ext-1.6-1.jar
> batik-gui-util-1.6-1.jar
> batik-util-1.6-1.jar
> cglib-2.1_3.jar
> commons-beanutils-1.7.0.jar
> commons-beanutils-core-1.7.0.jar
> commons-codec-1.3.jar
> commons-configuration-1.5.jar
> commons-digester-1.8.jar
> commons-el-1.0.jar
> commons-fileupload-1.2.1.jar
> commons-io-1.3.2.jar
> commons-lang-2.4.jar
> commons-logging-1.1.1.jar
> commons-validator-1.3.1.jar
> conector-cics-client-1.0.0.jar
> dom4j-1.6.1.jar
> ehcache-1.2.3.jar
> hibernate-3.2.6.ga.jar
> hibernate-annotations-3.2.1.ga.jar
> hibernate-validator-4.0.2.GA.jar
> itext-1.4.8.jar
> jasperreports-3.1.0.jar
> jaxb-api-2.1.jar
> jaxb-impl-2.1.3.jar
> jboss-envers-1.1.0.GA.jar
> jboss-j2ee-4.2.2.GA.jar
> jcommon-1.0.12.jar
> jdom-1.0.jar
> jdtcore-3.2.0.v_658.jar
> jfreechart-1.0.9.jar
> jsf-facelets-1.1.14.jar
> jstl-1.1.0.jar
> myfaces-extval-core-1.2.2.jar
> myfaces-extval-property-validation-1.2.2.jar
> ojdbc-14.jar
> oro-2.0.8.jar

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message