You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Yibing Li <yl...@gnx.com> on 2004/01/30 23:17:12 UTC

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


RE: Error deploying strus application to JBOSS --- The content of element type "taglib" must match

Posted by Yibing Li <yl...@gnx.com>.
Thanks, Max.

That is also my initial thoughts and I have searched for "<urn" but could
not find it in all the tld file. I am using struts 1.1 version and have also
checked the most current version and found that all the tld files are the
same.

The same application works fine in Oracle 9iAS.



-----Original Message-----
From: Max Cooper [mailto:max@maxcooper.com]
Sent: Friday, January 30, 2004 7:40 PM
To: Struts Users Mailing List
Subject: Re: Error deploying strus application to JBOSS --- The content
of element type "taglib" must match


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" <yl...@gnx.com>
To: "'Struts Users Mailing List'" <st...@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


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


Re: Error deploying strus application to JBOSS --- The content of element type "taglib" must match

Posted by Max Cooper <ma...@maxcooper.com>.
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" <yl...@gnx.com>
To: "'Struts Users Mailing List'" <st...@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