KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: clinton on October 24, 2007, 08:36:31 am

Title: web.xml dtd
Post by: clinton on October 24, 2007, 08:36:31 am
In konakart (client) 2.2.07, the top of the web.xml looks like:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
  "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
   <display-name>KonaKart</display-name>
    <listener>
        <listener-class>org.apache.axis.transport.http.AxisHTTPSessionListener</listener-class>
    </listener>
...

This is a problem because the <listener> element is only defined in the 2.3 dtd. When we ran this under Glassfish, it generated parsing errors and refused to deploy the konakart app.

Altering the web.xml to use the following dtd solved the parsing error:

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">

If your web.xml is validated you might run into a similar issue...

- Clinton



Title: Re: web.xml dtd
Post by: julie on October 24, 2007, 09:34:48 am
Thanks Clinton,

Looks like our deployed Tomcat is not validating the web.xml. We'll update this for all future releases.

Regards,

Julie