dev@glassfish.java.net

welcome-file and servlet-mapping config being ignored?

From: Max Poon <maxpoon_at_dev.java.net>
Date: Tue, 12 Jun 2007 13:56:08 +0800

Hi *

On SJS AppServer 9.0_01 (+ NetBeans 5.5) :

(1) It seems that the <welcome-file> configured in my app's
WEB-INF/web.xml :

    <welcome-file-list>
        <welcome-file>/faces/index.jsp</welcome-file>
    </welcome-file-list>

is always ignored as

    * seen from NetBeans (attached image) and
    * in actual application, i.e. requesting http://<host>/<uri> always
      goes to http://<host>/<uri>/index.jsp instead of
      http://<host>/<uri>/faces/index.jsp

(2) Also, FacesServlet is not invoked for http://<host>/<uri>/index.jsf
even if web.xml has the following:

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


Any input much appreciated.

Thanks!
Max





welcome-file-ignored.PNG
(image/png attachment: welcome-file-ignored.PNG)