6 Replies Latest reply on Feb 27, 2012 7:48 AM by Lukáš Fryč

    Using RF4 as a JBoss 7 module

    Michael G Novice

      Hello,

       

      I trying to use RF4 as a module instead of including the jars that maven pulls in, so that i can simplify and reduce the size of my war.  I am able to create the module and put in the dependency in my war but when i run i get the following exception.

       

       

      javax.el.ELException: Function 'rich:component' not found
       org.apache.el.lang.ExpressionBuilder.visit(ExpressionBuilder.java:210)
       org.apache.el.parser.SimpleNode.accept(SimpleNode.java:150)
       org.apache.el.lang.ExpressionBuilder.prepare(ExpressionBuilder.java:168)
       org.apache.el.lang.ExpressionBuilder.build(ExpressionBuilder.java:186)
       org.apache.el.lang.ExpressionBuilder.createValueExpression(ExpressionBuilder.java:229)
       org.apache.el.ExpressionFactoryImpl.createValueExpression(ExpressionFactoryImpl.java:68)
       com.sun.faces.facelets.el.ELText$ELTextVariable.apply(ELText.java:201)
       com.sun.faces.facelets.el.ELText$ELTextComposite.apply(ELText.java:182)
       com.sun.faces.facelets.compiler.AttributeInstruction.apply(AttributeInstruction.java:101)
       com.sun.faces.facelets.compiler.UIInstructionHandler.apply(UIInstructionHandler.java:141)
       javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
       javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
       com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:184)
       javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
       javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
       com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:166)
       com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
       com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
       com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:308)
       com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:367)
       com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:346)
       com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:199)
       com.sun.faces.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:120)
       javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
       com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:184)
       javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
       javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
       com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:184)
       javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
       javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
       com.sun.faces.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:164)
       javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
       com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
       javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
       com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
       com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:152)
       com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:769)
       com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:100)
       com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
       com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
       javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)
      

       

      Not sure what i've configured incorrectly but does anyone know how i can go about doing this.  Should i also include the jars the richfaces uses like guava,sac, etc...

       

      Thanks