Jboss-6.0.0.Final - Taglib.tld error
ab_99 May 31, 2011 1:34 AMI just upgraded my jboss as to Jboss-6.0.0.Final. I am getting the following error on server startup -
Caused by: org.xml.sax.SAXException: Element type "deferred-value" must be declared. @ vfs:///C:/Tools/jboss-6.0.0.Final/server/Curve600/deploy/100test.ear/Test.war/WEB-INF/taglib.tld[19,20]
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.error(SaxJBossXBParser.java:416) [jbossxb.jar:2.0.3.GA]
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) [xercesImpl.jar:6.0.0.Final]
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) [xercesImpl.jar:6.0.0.Final]
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) [xercesImpl.jar:6.0.0.Final]
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) [xercesImpl.jar:6.0.0.Final]
at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source) [xercesImpl.jar:6.0.0.Final]
at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source) [xercesImpl.jar:6.0.0.Final]
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) [xercesImpl.jar:6.0.0.Final]
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) [xercesImpl.jar:6.0.0.Final]
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) [xercesImpl.jar:6.0.0.Final]
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) [xercesImpl.jar:6.0.0.Final]
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) [xercesImpl.jar:6.0.0.Final]
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) [xercesImpl.jar:6.0.0.Final]
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) [xercesImpl.jar:6.0.0.Final]
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) [xercesImpl.jar:6.0.0.Final]
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:209) [jbossxb.jar:2.0.3.GA]
... 52 more
My taglib.tld file is as follows -
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
"http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
<taglib>
<tlib-version>1.2</tlib-version>
<jsp-version>2.1</jsp-version>
<short-name>test</short-name>
<uri>http://ui.test.com/jsftaglib</uri>
<description>A tag library used for custom components and renderers</description>
<tag>
<name>menu</name>
<tag-class>com.common.taglib.MenuTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>id</name>
</attribute>
<attribute>
<name>styleClass</name>
<deferred-value><type>java.lang.Object</type></deferred-value> [[[[[[[[[ --> The error occurs here. ]]]]]]]]]]]]]
</attribute>
</tag>
<tag>..........................
I have no idea about how the taglib.tld works and tried searching for a solution in vain. My hunch is that Jboss-6.0.0.Final does not like the dtd that I have specified right at the top of the file; since the validation is strict and fails.
--Anurag