welcome-file issue in App Server 8.2
Hello all,
can you explain some strange behaviour of Application Server?
I have to set some page as a starting page. We all know that i have to put
<welcome-file-list>
<welcome-file>MyStartPage.jsp</welcome-file>
</welcome-file-list>
</web-app>
to web.xml.
So, my app does not include servlets, and i have web.xml as following:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<welcome-file-list>
<welcome-file>MyStartPage.jsp</welcome-file>
</welcome-file-list>
</web-app>
BUT: this works in Tomcat, but does NOT work in Sun App Server 8.2.
In SUN App server, i have to add
<servlet>
<servlet-name>Fake servlet</servlet-name>
<jsp-file>MyStartPage.jsp</jsp-file>
</servlet>
to web.xml (obviously, before welcome-file-list element).
IMHO, it's an issue... Why do i have to use some fake declaration?
Can someone test this curious issue against other App servers?
Thanks in advance, Vad.

