Simple example delpoying to JBoss 5.0.1 not work
eldoncoutinho Mar 1, 2009 4:05 PMHi,
In the book Pratical Richfaces (Max Katz), there is a first and simple application calling Echo. When I did deploy this application to Tomcat 6.0.18 the application works fine. But the same war deployed to JBoss 5.0.1 cause this error:
javax.el.ELException: /echo.xhtml: Property 'countListener' not found on type echo.EchoBean
at com.sun.facelets.compiler.AttributeInstruction.write(AttributeInstruction.java:53)
at com.sun.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:39)
at com.sun.facelets.compiler.UILeaf.encodeAll(UILeaf.java:149)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)
....
Actually, the first time I did try to deploy I receive this error:
JSF1029: The specified InjectionProvider implementation 'org.jboss.web.jsf.integration.injection.JBossDelegatingInjectionProvider' does not implement the InjectionProvider interface.
I did search a solution in google and did find in:
http://dushyants.blogspot.com/2009/01/error-running-jsf-with-jboss.html
Error running JSF with Jboss
Error: The specified InjectionProvider implementation 'org.jboss.web.jsf.integration.injection.JBossDelegatingInjectionProvider' does not implement the InjectionProvider interface.
Solution:
You need to remove the bundled JSF implementation. To do so you need to comment/remove the following from the web.xml found under jboss-4.2.0.GA\server\\deploy\jboss-web.deployer\conf.
Under jboss 5.0.0GA jboss-5.0.0.GA\server\default\deployers\jbossweb.deployer\web.xml
<!-- Comment/Remove this -->
<!-- Configures JSF for a web application if the javax.faces.webapp.FacesServlet is declared -->
<!-- in web.xml. -->
<!--
<listener-class>org.jboss.web.jsf.integration.config.JBossJSFConfigureListener </listener-class>
-->
<!-- Comment/Remove this -->
<!-- Listens to all web app lifecycle events so that @PreDestroy can be called on -->
<!-- JSF managed beans that go out of scope. You can comment this out if you -->
<!-- don't use JSF or you don't use annotations on your managed beans. -->
<!--
<listener-class>com.sun.faces.application.WebappLifecycleListener</listener-class>
-->
After I did comment this lines, I did sucessfully deploy the war in Jboss 5.0.1 but following error occurs: javax.el.ELException: /echo.xhtml: Property 'countListener' not found on type echo.EchoBean