The first few lines of the web.xml unpacked from the war file says:

<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-app_2_4.xsd"
    version="2.4">

    <display-name>JSTL Examples</display-name>
    <description>
        Examples for the 'standard' taglib (JSTL)
    </description>

I get:
PARSE error at line 5 column 19
org.xml.sax.SAXParseException: Element type "web-app" must be declared.

Looking at other web.xml files  I thought I noticed my problem so I changed
it to be
<?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 xmlns="http://java.sun.com/xml/ns/j2ee";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-app_2_4.xsd"
    version="2.4">

    <display-name>JSTL Examples</display-name>
    <description>
        Examples for the 'standard' taglib (JSTL)
    </description>

Now I get
PARSE error at line 9 column 19
org.xml.sax.SAXParseException: Attribute "xmlns:xsi" must be declared for
element type "web-app".

Can somebody help?

Thanks in advance,
Mike



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to