users@glassfish.java.net

Re: SessionListener not firing

From: <glassfish_at_javadesktop.org>
Date: Fri, 20 Jun 2008 07:08:41 PDT

Your web.xml is invalid. The element order is incorrect, and it doesn't have dtd or schema declaration. It seems Tomcat is more lenient in this regard. I suggest adding the following

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.5" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

-cheng
[Message sent by forum member 'cf126330' (cf126330)]

http://forums.java.net/jive/thread.jspa?messageID=281626