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:[EMAIL PROTECTED]
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" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to