1 Reply Latest reply on Aug 22, 2005 7:57 AM by Kai Ruhl

    Java Server Faces fail with JBoss 4.0.3 RC2 (EJB3 server)

    Kai Ruhl Newbie

      I installed a JBoss 4.0.3 RC 2 with the EJB3 server (both as "all" and as "default"). I am using JBoss IDE 1.5 M2.

      To the web.xml, I added the Apache MyFaces listener as told in the JBossFaces wiki: http://www.jboss.com/wiki/Wiki.jsp?page=JBossFaces

      However, when I try an absolutely minimal JSF file (sporting just <f:view></f:view>), an eror occurs:

      ERROR [UIComponentTag] Faces context not found. getResponseWriter will fail. Check if the FacesServlet has been initialized at all in your web.xml.

      And I am pretty sure it happend, because it IS in the web.xml and when I deploy my EAR, it says:

      [TomcatDeployer] deploy, ctxPath=/impact, warUrl=.../tmp/deploy/tmp33263impact.ear-contents/web-exp.war/
      [FacesConfigurator] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
      [FacesConfigurator] Reading config /WEB-INF/faces-config.xml
      [StartupServletContextListener] ServletContext 'C:\jboss-4.0.3RC2\server\default\.\tmp\deploy\tmp33263app.ear-contents\web-exp.war\' initialized.

      which sounds pretty good to me.

      Is there something obvious I have overlooked?

      And, just btw, is there any particular reason why a clean JBoss 4.0.3 RC2 installation throws a few exceptions on startup?