I have a tld file which starts with
<?xml version="1.0" encoding="UTF-8"?>
<taglib version="2.0" xmlns="
http://java.sun.com/xml/ns/j2ee" xmlns:xsi="
http://www.w3.org/2001/xml.xsd" xsi:schemaLocation="
http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd">
<tlibversion>1.0</tlibversion>
<jsp-version>1.0</jsp-version>
<shortname>trader</shortname>
<uri>/WEB-INF/traderTags.tld</uri>
<info>Trader custom tag library</info>
<tag>Some tags here</tag></taglib>
Can anyone tell me what I need to change to pass the Glassfish verifier? At the moment I'm getting this error message.
Error Name : XML Error line : 2 in [ /WEB-INF/traderTags.tld ]. cvc-elt.1: Cannot find the declaration of element 'taglib'.
Error Description : org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'taglib'.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1887)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:685)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:400)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:626)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3084)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:912)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:225)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
at com.sun.enterprise.tools.verifier.web.TagLibFactory.createDocument(TagLibFactory.java:240)
at com.sun.enterprise.tools.verifier.web.TagLibFactory.getTagLibDescriptors(TagLibFactory.java:129)
at com.sun.enterprise.tools.verifier.web.WebCheckMgrImpl.createTaglibDescriptors(WebCheckMgrImpl.java:147)
at com.sun.enterprise.tools.verifier.web.WebCheckMgrImpl.check(WebCheckMgrImpl.java:92)
at com.sun.enterprise.tools.verifier.BaseVerifier.verify(BaseVerifier.java:146)
at com.sun.enterprise.tools.verifier.web.WebVerifier.verify(WebVerifier.java:92)
at com.sun.enterprise.tools.verifier.VerificationHandler.runVerifier(VerificationHandler.java:236)
at com.sun.enterprise.tools.verifier.VerificationHandler.verifyArchive(VerificationHandler.java:147)
at com.sun.enterprise.tools.verifier.Verifier.verify(Verifier.java:144)
at com.sun.enterprise.tools.verifier.Verifier.main(Verifier.java:114)
[Message sent by forum member 'talman' (talman)]
http://forums.java.net/jive/thread.jspa?messageID=224333