You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Um...@vjil.com on 2004/06/01 14:56:23 UTC
web.xml file problem
Hi,
This is my web.xml file. I dont know whats wrong here but my first session
gets expired. When I remove the error-page and welcome file list, then
everything works fine. Am I wrong somewhere?
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<error-page>
<error-code>404</error-code>
<location>/CustomErrorPage.jsp</location>
</error-page>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
Thank you,
Best Regards,
Uma
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: web.xml file problem
Posted by Tim Funk <fu...@joedog.org>.
The dtd (http://java.sun.com/dtd/web-app_2_3.dtd) says that
<welcome-file-list> must appear before <error-page>
-Tim
UmamaheswarKalluru@vjil.com wrote:
>
>
>
> Hi,
> This is my web.xml file. I dont know whats wrong here but my first session
> gets expired. When I remove the error-page and welcome file list, then
> everything works fine. Am I wrong somewhere?
>
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <!DOCTYPE web-app
> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> "http://java.sun.com/dtd/web-app_2_3.dtd">
>
> <web-app>
>
> <error-page>
> <error-code>404</error-code>
> <location>/CustomErrorPage.jsp</location>
> </error-page>
>
>
> <welcome-file-list>
> <welcome-file>index.jsp</welcome-file>
> </welcome-file-list>
>
> </web-app>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org