users@glassfish.java.net

JSF 1.1 on GlassFish?

From: <glassfish_at_javadesktop.org>
Date: Wed, 14 May 2008 11:26:17 PDT

I'm migrating an existing JSF 1.1 application from Tomcat 5.5 to GlassFish v2ru2. The trouble I'm having is that while I can get the application to deploy successfully, it appears that the JSF framework is not initializing or functional when I log into my application. For now, I need to stay on JSF 1.1.

The application web.xml was previously defined as web-app_2_3.dtd so I modified web.xml to comply with web-app_2_5.xsd. I have no erros in the web.xml so I'm reasonably certain that it is valid.

I have the following defined in the web.xml.
  <context-param>
    <param-name>javax.faces.application.CONFIG_FILES</param-name>
    <param-value>/WEB-INF/faces-config.xml</param-value>
  </context-param>

  <listener>
    <listener-class>
      com.sun.faces.config.ConfigureListener
    </listener-class>
  </listener>
  <listener>
    <listener-class>
      com.sun.faces.application.WebappLifecycleListener
    </listener-class>
  </listener>
 
  <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <init-param>
      <param-name>config</param-name>
      <param-value>/WEB-INF/faces-config.xml</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
  </servlet>

  <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.faces</url-pattern>
  </servlet-mapping>


Is there something else that I must do to get my application to run in the GlassFish container?

Thanks for the help...
[Message sent by forum member 'cmathrusse' (cmathrusse)]

http://forums.java.net/jive/thread.jspa?messageID=274361