[prev in list] [next in list] [prev in thread] [next in thread] 

List:       struts-user
Subject:    Re: Error deploying strus application to JBOSS --- The content of element type "taglib" must match
From:       "Max Cooper" <max () maxcooper ! com>
Date:       2004-01-31 0:40:00
Message-ID: 00a001c3e79f$0477eb10$f002010a () ozzy
[Download RAW message or body]

Could your struts-bean.tld file be damaged? It seems like the exceptions you
posted are ocurring when the .tld file is being parsed, rather than when the
server is reading your web.xml specifically.

WILD GUESSES: Look for "<urn" in the .tld file -- the parser seems to think
there is an XML element in there by that name. The second exception seems to
be complaining about the content of a <taglib> element -- perhaps a <uri>
element got changed to <urn> in the .tld file somehow? Or it might be bad in
the distribution and other app servers aren't as picky about it (what Struts
dist are you using? 1.1?).

-Max

----- Original Message ----- 
From: "Yibing Li" <yli@gnx.com>
To: "'Struts Users Mailing List'" <struts-user@jakarta.apache.org>
Sent: Friday, January 30, 2004 2:17 PM
Subject: Error deploying strus application to JBOSS --- The content of
element type "taglib" must match


>
> The following are the errors I got when deploying our Struts application
to
> JBOSS. I think it is related to taglibs. In web.xml it is like:
>
>  <taglib>
>     <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
>     <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
>   </taglib>
>
> Has anyone experienced the same problem?
>
> Thanks,
>
> Yibing
>
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> 2004-01-30 09:43:25,266 ERROR [org.apache.commons.digester.Digester] Parse
> Error at line 8 column 7: Element type "urn" must be declared.
> org.xml.sax.SAXParseException: Element type "urn" must be declared.
> org.xml.sax.SAXParseException
>
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(org.apach
> e.xerces.xni.parser.XMLParseException)
> ErrorHandlerWrapper.java:232
>
> and
>
> 2004-01-30 09:43:25,391 ERROR [org.apache.commons.digester.Digester] Parse
> Error at line 23 column 10: The content of element type "taglib" must
match
> "(tlibversion,jspversion?,shortname,uri?,info?,tag+)".
> org.xml.sax.SAXParseException: The content of element type "taglib" must
> match "(tlibversion,jspversion?,shortname,uri?,info?,tag+)".
> org.xml.sax.SAXParseException
>
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(org.apach
> e.xerces.xni.parser.XMLParseException)
> ErrorHandlerWrapper.java:232
> void org.apache.xerces.util.ErrorHandlerWrapper.error(java.lang.String,
> java.lang.String, org.apache.xerces.xni.parser.XMLParseException)
> ErrorHandlerWrapper.java:173
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>


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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic