tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rajesh Kalluri" <rkkall...@hotmail.com>
Subject Re: web.xml problems
Date Thu, 15 Nov 2001 00:47:45 GMT

Hi,

web.xml expects elements in a certain order, put you <context-param> before 
<taglib-uri>.

rajesh
rkalluri@manduca.com



From: "Ingmar Stein" <IngmarStein@digital-phenomenon.com>
Reply-To: "Tag Libraries Users List" <taglibs-user@jakarta.apache.org>
To: <taglibs-user@jakarta.apache.org>
Subject: web.xml problems
Date: Wed, 14 Nov 2001 22:47:09 +0100

Hi all,

what is the problem with the following file?

<?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>
         <!-- general description -->
         <display-name>xfiles</display-name>
         <description>The xfiles</description>

         <!-- include dbtags taglib -->
         <taglib>

<taglib-uri>http://jakarta.apache.org/taglibs/dbtags</taglib-uri>
                 <taglib-location>/WEB-INF/dbtags.tld</taglib-location>
         </taglib>

         <!-- set database parameters -->
         <context-param>
                 <param-name>db_url</param-name>
                 <param-value>jdbc:mysql://bender/xfiles</param-value>
                 <description>DB URL</description>
         </context-param>
</web-app>

Tomcat reports:

Parse error in application web.xml
org.xml.sax.SAXParseException: The content of element type "web-app"
must match
"(icon?,display-name?,description?,distributable?,context-param*,filter*
,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mim
e-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,reso
urce-ref*,security-constraint*,login-config?,security-role*,env-entry*,e
jb-ref*,ejb-local-ref*)".

Cheers,

Ingmar



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



_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


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


Mime
View raw message