You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by Mike Hulse <mh...@rmcisdc3.rmc.com> on 2003/06/05 19:12:51 UTC

standard-examples web.xml wrong?

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: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Re: standard-examples web.xml wrong?

Posted by Mike Hulse <mh...@rmcisdc3.rmc.com>.
Thanks that helped.  There were a few that had to be changed.  I wasn't
expecting to change any in the examples.

----- Original Message -----
From: "Michael Duffy" <du...@yahoo.com>
To: "Tag Libraries Users List" <ta...@jakarta.apache.org>
Sent: Thursday, June 05, 2003 1:34 PM
Subject: Re: standard-examples web.xml wrong?


> Where's the DOCTYPE?
>
> Start with the attached web.xml and add tags according
> to the DTD. - MOD
>
>
> --- Mike Hulse <mh...@rmcisdc3.rmc.com> wrote:
> > 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:
> > taglibs-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > taglibs-user-help@jakarta.apache.org
> >
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
> http://calendar.yahoo.com


----------------------------------------------------------------------------
----


> <?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>
>
>     <display-name>Minimal JSTL Deployment</display-name>
>     <description>Minimal JSTL Deployment</description>
>
> </web-app>
>
>
>


----------------------------------------------------------------------------
----


> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Re: standard-examples web.xml wrong?

Posted by Michael Duffy <du...@yahoo.com>.
Where's the DOCTYPE?  

Start with the attached web.xml and add tags according
to the DTD. - MOD


--- Mike Hulse <mh...@rmcisdc3.rmc.com> wrote:
> 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:
> taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> taglibs-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com