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.

[1376 byte] By [Vadnva] at [2007-11-26 18:12:36]
# 1

Hi,

I am facing the same issue. I did not verify with Tomcat but with an earlier version - 1.4.01

It used to work earlier with J2ee sdk 1.4.01. I installed the J2ee sdk 1.4.03 after uninstalling 1.4.01. I had a bunch of JSPs, and a web.xml specifying the welcome page. It used to work fine. Now after 1.4.03, (server 8.2), the welcome page does not work. Instead it displays the list of JSPs on the page. There have been no modifications to the web.xml. The 8.2 has a bug here.

jprogrammera at 2007-7-9 5:45:30 > top of Java-index,Application & Integration Servers,Application Servers...
# 2
Yes, I am having the same problem. With 1.4_01, a previous test application worked when I mentioned a JSP page in the welcome-file-list. But after I installed 1.4_03, it does not work. I have to manually enter the name of the jsp page to display.
h3x0rIr0na at 2007-7-9 5:45:30 > top of Java-index,Application & Integration Servers,Application Servers...