Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-8723

@FacesValidator annotation still doesn't work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 6.0.0.CR1
    • JSF
    • Hide

      1. create a simple validator class and mark is with @FacesValidator annotation. Please ensure it's not registered through faces-config.xml
      2. Use this validator in any JSF XHTML page and it throws "Named Object not found" exception. ( Copied exception stack trace in the description)

      Show
      1. create a simple validator class and mark is with @FacesValidator annotation. Please ensure it's not registered through faces-config.xml 2. Use this validator in any JSF XHTML page and it throws "Named Object not found" exception. ( Copied exception stack trace in the description)

    Description

      @FacesValidator doesn't work for registering JSF validators. Annotation doesn't work but it works when registered through faces-config.xml

      javax.faces.FacesException: Expression Error: Named Object: com.test.jsf.EmailValidator not found.
      at com.sun.faces.application.ApplicationImpl.createValidator(ApplicationImpl.java:1530)
      at org.jboss.weld.integration.webtier.jsf.ForwardingApplication.createValidator(ForwardingApplication.java:174)
      at com.sun.faces.facelets.tag.jsf.ValidatorTagHandlerDelegateImpl.createValidator(ValidatorTagHandlerDelegateImpl.java:234)
      at com.sun.faces.facelets.tag.jsf.ValidatorTagHandlerDelegateImpl.applyAttachedObject(ValidatorTagHandlerDelegateImpl.java:128)
      at com.sun.faces.facelets.tag.jsf.ValidatorTagHandlerDelegateImpl.applyNested(ValidatorTagHandlerDelegateImpl.java:201)
      at com.sun.faces.facelets.tag.jsf.ValidatorTagHandlerDelegateImpl.apply(ValidatorTagHandlerDelegateImpl.java:83)
      at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:114)
      at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:131)
      at org.richfaces.view.facelets.html.BehaviorsAddingComponentHandlerWrapper.applyNextHandler(BehaviorsAddingComponentHandlerWrapper.java:55)
      at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:162)
      at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:114)
      at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:94)
      at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:131)
      at org.richfaces.view.facelets.html.BehaviorsAddingComponentHandlerWrapper.applyNextHandler(BehaviorsAddingComponentHandlerWrapper.java:55)
      at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:162)
      at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:114)
      at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:94)
      at com.sun.faces.facelets.tag.ui.DefineHandler.applyDefinition(DefineHandler.java:99)
      at com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:174)
      at com.sun.faces.facelets.impl.DefaultFaceletContext$TemplateManager.apply(DefaultFaceletContext.java:392)
      at com.sun.faces.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:363)
      at com.sun.faces.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:104)
      at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:94)
      at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:131)
      at org.richfaces.view.facelets.html.BehaviorsAddingComponentHandlerWrapper.applyNextHandler(BehaviorsAddingComponentHandlerWrapper.java:55)
      at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:162)
      at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:114)
      at com.sun.faces.facelets.tag.ui.DefineHandler.applyDefinition(DefineHandler.java:99)
      at com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:174)
      at com.sun.faces.facelets.impl.DefaultFaceletContext$TemplateManager.apply(DefaultFaceletContext.java:392)
      at com.sun.faces.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:363)
      at com.sun.faces.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:104)
      at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:94)
      at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:131)
      at org.richfaces.view.facelets.html.BehaviorsAddingComponentHandlerWrapper.applyNextHandler(BehaviorsAddingComponentHandlerWrapper.java:55)
      at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:162)
      at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:114)
      at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:94)
      at com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:89)
      at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:94)
      at com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:79)
      at com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:304)
      at com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:363)
      at com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:342)
      at com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:196)
      at com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:151)
      at com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:89)
      at com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:79)
      at com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:304)
      at com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:363)
      at com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:342)
      at com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:196)
      at com.sun.faces.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:104)
      at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:94)
      at com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:89)
      at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:94)
      at com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:79)
      at com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:304)
      at com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:363)
      at com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:342)
      at com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:196)
      at com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:151)
      at com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:89)
      at com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:79)
      at com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:148)
      at com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:734)
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:96)
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)
      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:135)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:309)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
      at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:67)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181)
      at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285)
      at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88)
      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100)
      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:158)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)
      at java.lang.Thread.run(Thread.java:619)

      Attachments

        1. EmailValidator.java
          1 kB
        2. hello.war
          5 kB
        3. start.xhtml
          2 kB

        Issue Links

          Activity

            People

              ssilvert@redhat.com Stan Silvert
              devinderpal_jira Jboss fan99 (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: