3 Replies Latest reply: Sep 29, 2011 9:39 PM by Maycon Oliveira RSS

JSF1004 on 7.0.2 .

Maycon Oliveira Newbie

I have an application that was working on 7.0.1 , but when deploying on 7.0.2 i get the following error.

 

 

My environment:

 

jboss 7.0.2

richfaces 3.3.3

jsf 1.2

 

richfaces libraries is in the WEB-INF/lib folder.

 

 

This class really does not exists on richfaces implementation, maybe i need to specify something else on some deployment descriptor?

 

 

 

 

 

 

00:54:29,497 GRAVE [javax.enterprise.resource.webcontainer.jsf.application] (http-127.0.0.1-127.0.0.1-8080-2) JSF1004: Cannot instantiate component of type org.ajax4jsf.AjaxRegion

00:54:29,501 GRAVE [facelets.viewhandler] (http-127.0.0.1-127.0.0.1-8080-2) Error Rendering View[/public/utl/UtlLogin.xhtml]: javax.faces.FacesException: Erro na expressão: Objeto de nome: org.ajax4jsf.AjaxRegion não encontrado.

          at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:571) [jsf-impl-1.2_15-jbossorg-1.jar:1.2_15.jbossorg-1-20110810-SNAPSHOT]

          at com.sun.facelets.tag.jsf.ComponentHandler.createComponent(ComponentHandler.java:243) [jsf-facelets.jar:]

          at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:139) [jsf-facelets.jar:]

          at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47) [jsf-facelets.jar:]

          at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49) [jsf-facelets.jar:]

          at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47) [jsf-facelets.jar:]

          at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25) [jsf-facelets.jar:]

          at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248) [jsf-facelets.jar:]

          at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294) [jsf-facelets.jar:]

          at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273) [jsf-facelets.jar:]

          at com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:140) [jsf-facelets.jar:]

          at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113) [jsf-facelets.jar:]

          at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49) [jsf-facelets.jar:]

          at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25) [jsf-facelets.jar:]

          at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95) [jsf-facelets.jar:]

at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:524) [jsf-facelets.jar:]

          at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:567) [jsf-facelets.jar:]

          at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110) [jsf-impl-1.2_15-jbossorg-1.jar:1.2_15.jbossorg-1-20110810-SNAPSHOT]

          at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) [jsf-impl-1.2_15-jbossorg-1.jar:1.2_15.jbossorg-1-20110810-SNAPSHOT]

          at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) [jsf-impl-1.2_15-jbossorg-1.jar:1.2_15.jbossorg-1-20110810-SNAPSHOT]

          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266) [jsf-api-1.2_15-jbossorg-1.jar:1.2_15.jbossorg-1-20110810-SNAPSHOT]

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206) [richfaces-impl-3.3.3.Final.jar:]

          at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290) [richfaces-impl-3.3.3.Final.jar:]

          at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388) [richfaces-impl-3.3.3.Final.jar:]

          at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515) [richfaces-impl-3.3.3.Final.jar:]

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]

          at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]

          at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:49) [jboss-as-jpa-7.0.2.Final.jar:7.0.2.Final]

          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at java.lang.Thread.run(Thread.java:662) [:1.6.0_24]

 

 

 

Thanks !

  • 1. Re: JSF1004 on 7.0.2 .
    caetanovendrami Newbie

    Same issue here. Seems to be a problem on registering the components from jars deployed on WEB-INF (META-INF/faces-config.xml not parsed?). The org.ajax4jsf.AjaxRegion is the component type of tag a4j:region, not a class..

  • 2. Re: JSF1004 on 7.0.2 .
    caetanovendrami Newbie

    Switching the jsf modules by the ones provided on 7.0.1 solves the issue, but I´m not sure about possible side effects.

     

    I´ve changed

         modules/javax/faces/api/1.2/

         modules/com/sun/jsf-impl/1.2/

     

    to the ones on 7.0.1:

     

         jsf-api-1.2_15-jbossorg-1.jar  -->  jsf-api-1.2_13.jar

         jsf-impl-1.2_15-jbossorg-1.jar --> jsf-impl-1.2_13.jar

  • 3. Re: JSF1004 on 7.0.2 .
    Maycon Oliveira Newbie

    Guys,

     

    I solved using this way:

     

    I put the mojarra jars and the richfaces jars (and also tomahawk in my case) on WEB-INF/lib (WAR) and the rest on the EAR lib folder.

    Before all my jars were in the ear lib folder.

     

     

    Well.. I think the modular classloader are creating this problems. Maybe when We start to develop OSGI bundles We get used to.