The following web.xml doesn't seem to work:
<servlet-mapping>
<servlet-name>MyServlet</servlet-name>
<url-pattern>*.wfn</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>SelectSessionServer.wfn</welcome-file>
</welcome-file-list>
Instead, a directory listing is shown. I have an index.html file in there, and that index.html file has a link to exactly the same SelectSessionServer URL, and then it works properly.
("it" = Glassfish & Tomcat)
How come ?
I've seen this question ( servlet as welcome-file-list in tomcat 7 ) and its responses seem to suggest that my setup should be working.