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 "Karr, David" <da...@attws.com> on 2002/10/18 22:13:52 UTC

RE: Help with JSTL and Tomcat 4.0.4 - Tomcat Sax Parser Error in Reading web.xml

I would want to see lines 1-20 of your web.xml file.  The error is on line
17, and has to do with the "servlet" element.  It doesn't appear to have
anything to do with taglibs.

> -----Original Message-----
> From: Rob Swan [mailto:robswan@objectpublish.com]
> Sent: Friday, October 18, 2002 1:32 PM
> To: 'Tag Libraries Users List'
> Subject: Help with JSTL and Tomcat 4.0.4 - Tomcat Sax Parser Error in
> Reading web.xml
> 
> 
> I am trying to convert from Tomcat 3.2.1 to 4.0.4. I get invalid xml
> parsing errors on app startup. When I remove the taglib 
> elements from my
> web.xml file, the app has no startup problems. These tags 
> work fine with
> 3.2.1. Is this caused by improper installation of the JSTL?
> 
> Error:
> 
> PARSE error at line 17 column 12
> 
> org.xml.sax.SAXParseException: The content of element type "servlet"
> must match
> 
> "(icon?,servlet-name,display-name?,description?,(servlet-class
> |jsp-file)
> 
> ,init-pa
> 
> ram*,load-on-startup?,security-role-ref*)".
> 
> web.xml excerpt
> 
> </servlet-mapping>
> 
> <taglib>
> 
> <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
> 
> <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
> 
> </taglib>
> 
> <taglib>
> 
> <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
> 
> <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
> 
> </taglib>
> 
> <taglib>
> 
> <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
> 
> <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
> 
> </taglib>
> 
> <taglib>
> 
> <taglib-uri>/WEB-INF/struts-template.tld</taglib-uri>
> 
> <taglib-location>/WEB-INF/struts-template.tld</taglib-location>
> 
> </taglib>
> 
> <taglib>
> 
> <taglib-uri>/WEB-INF/dbtags.tld</taglib-uri>
> 
> <taglib-location>/WEB-INF/dbtags.tld</taglib-location>
> 
> </taglib>
> 
> </web-app>
> 
> Any ideas?
> 
> Rob Swan
> Director of Operations
> Object Publishing Software
> Phone:  206-545-6851 ext 128
> Email: robswan@objectpublish.com
>  
> 

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Help with JSTL and Tomcat 4.0.4 - Tomcat Sax Parser Error in Reading web.xml

Posted by Rob Swan <ro...@objectpublish.com>.
David,

Thanks for answering.  I feel pretty stupid.  I made 2 changes at the
same time and incorrectly thought that removing the taglibs eliminated
the problem.

No so...

Sorry for the spam.

Rob Swan
Director of Operations
Object Publishing Software
Phone:  206-545-6851 ext 128
Email: robswan@objectpublish.com <ma...@objectpublish.com> 


-----Original Message-----
From: Karr, David [mailto:david.karr@attws.com] 
Sent: Friday, October 18, 2002 1:14 PM
To: 'Tag Libraries Users List'
Subject: RE: Help with JSTL and Tomcat 4.0.4 - Tomcat Sax Parser Error
in Reading web.xml


I would want to see lines 1-20 of your web.xml file.  The error is on
line 17, and has to do with the "servlet" element.  It doesn't appear to
have anything to do with taglibs.

> -----Original Message-----
> From: Rob Swan [mailto:robswan@objectpublish.com]
> Sent: Friday, October 18, 2002 1:32 PM
> To: 'Tag Libraries Users List'
> Subject: Help with JSTL and Tomcat 4.0.4 - Tomcat Sax Parser Error in 
> Reading web.xml
> 
> 
> I am trying to convert from Tomcat 3.2.1 to 4.0.4. I get invalid xml 
> parsing errors on app startup. When I remove the taglib elements from 
> my web.xml file, the app has no startup problems. These tags
> work fine with
> 3.2.1. Is this caused by improper installation of the JSTL?
> 
> Error:
> 
> PARSE error at line 17 column 12
> 
> org.xml.sax.SAXParseException: The content of element type "servlet" 
> must match
> 
> "(icon?,servlet-name,display-name?,description?,(servlet-class
> |jsp-file)
> 
> ,init-pa
> 
> ram*,load-on-startup?,security-role-ref*)".
> 
> web.xml excerpt
> 
> </servlet-mapping>
> 
> <taglib>
> 
> <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
> 
> <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
> 
> </taglib>
> 
> <taglib>
> 
> <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
> 
> <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
> 
> </taglib>
> 
> <taglib>
> 
> <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
> 
> <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
> 
> </taglib>
> 
> <taglib>
> 
> <taglib-uri>/WEB-INF/struts-template.tld</taglib-uri>
> 
> <taglib-location>/WEB-INF/struts-template.tld</taglib-location>
> 
> </taglib>
> 
> <taglib>
> 
> <taglib-uri>/WEB-INF/dbtags.tld</taglib-uri>
> 
> <taglib-location>/WEB-INF/dbtags.tld</taglib-location>
> 
> </taglib>
> 
> </web-app>
> 
> Any ideas?
> 
> Rob Swan
> Director of Operations
> Object Publishing Software
> Phone:  206-545-6851 ext 128
> Email: robswan@objectpublish.com
>  
> 

--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>