6 Replies Latest reply on Apr 6, 2004 7:16 AM by atomas

    JSTL 2.0

    Tim Shaw Newbie

      Trying to use Taglibs for JSTL 2.0 results in the error below when deploying.

      I assume it's because they're in XSD and the Digester seems to be using the DTD validator.

      Has anyone got a pointer to help please?

      Thanks

      tim

      10:58:05,898 ERROR [Digester] Parse Error at line 6 column 19: Document root element taglib, must match DOCTYPE root null.
      org.xml.sax.SAXParseException: Document root element taglib, must match DOCTYPE root null.
      at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232)
      at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:173)
      at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:362)
      at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:296)
      at org.apache.xerces.impl.dtd.XMLDTDValidator.rootElementSpecified(XMLDTDValidator.java:2546)
      at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDValidator.java:2850)
      at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:792)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:752)
      at org.apache.xerces.impl.XMLDocumentScannerImpl.scanRootElementHook(XMLDocumentScannerImpl.java:927)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.dispatch(XMLDocumentFragmentScannerImpl.java:1519)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
      at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:529)
      at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:585)
      at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
      at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j

        • 1. Re: JSTL 2.0
          Chris Petersen Newbie

          I am having the exact same problem. I would really appreciate some help.

          Thanks,
          Chris

          • 2. Re: JSTL 2.0
            Farokh Herfat Newbie

            I'm also running into the same problem. Has this issue been resolved? I would really appreciate a response

            • 3. Re: JSTL 2.0
              lmcbeml Newbie

              I'm running Jboss 3.2.3 with java 1.4.

              Not a solution but at least it is possible to get farther. I got the error you guys
              mentionned today so I added this on top of the .tld file.

              <?xml version="1.0" encoding="UTF-8"?>

              <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_2_0.dtd">

              <taglib xmlns="http://java.sun.com/xml/ns/j2ee"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
              version="2.0">

              But now, the error I receive is

              18:59:41,044 ERROR [Digester] Parse Error at line 17 column 17: Attribute "xmlns" with value "http://java.sun.com/xml/ns/j2ee" must have a value of "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd".
              org.xml.sax.SAXParseException: Attribute "xmlns" with value "http://java.sun.com/xml/ns/j2ee" must have a value of "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd".
              at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232)
              at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:173)
              at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:362)
              at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:296)
              at org.apache.xerces.impl.dtd.XMLDTDValidator.addDTDDefaultAttrsAndValidate(XMLDTDValidator.java:2210)
              at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDValidator.java:2885)
              at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:792)
              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:752)
              at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(XMLDocumentSca
              nnerImpl.java:927)
              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1519)
              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
              at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:529)
              at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:585)
              at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
              at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1148)
              at org.apache.commons.digester.Digester.parse(Digester.java:1567)
              at org.jboss.web.tomcat.tc4.SingleSignOnContextConfig.tldScanStream(SingleSignOnContextConfig.java:1132)
              at org.jboss.web.tomcat.tc4.SingleSignOnContextConfig.tldScanTld(SingleSignOnContextConfig.java:1165) at org.jboss.web.tomcat.tc4.SingleSignOnContextConfig.tldScan(SingleSignOnContextConfig.java:1003)
              at org.jboss.web.tomcat.tc4.SingleSignOnContextConfig.start(SingleSignOnContextConfig.java:752)
              at org.jboss.web.tomcat.tc4.SingleSignOnContextConfig.lifecycleEvent(SingleSignOnContextConfig.java:255)
              at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
              at org.apache.catalina.core.StandardContext.start(StandardContext.java:3582)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
              at org.jboss.web.tomcat.tc4.EmbeddedTomcatService.createWebContext(EmbeddedTomcatService.java:549)
              at org.jboss.web.tomcat.tc4.EmbeddedTomcatService.performDeploy(EmbeddedTomcatService.java:309)
              at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:428)
              at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
              at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
              at $Proxy6.deploy(Unknown Source)
              at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
              at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
              at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
              at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
              at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
              18:59:41,119 ERROR [Digester] Parse Error at line 17 column 17: Attribute "xmlns:xsi" must be declared for element type "taglib".
              org.xml.sax.SAXParseException: Attribute "xmlns:xsi" must be declared for element type "taglib".
              at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232)
              at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:173)
              at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:362)
              at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:296)
              at org.apache.xerces.impl.dtd.XMLDTDValidator.addDTDDefaultAttrsAndValidate(XMLDTDValidator.java:2166)
              at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDValidator.java:2885)
              at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:792)
              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:752)
              at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(XMLDocumentScannerImpl.java:927)
              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1519)
              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
              at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:529)
              at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:585)
              at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
              at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1148)
              at org.apache.commons.digester.Digester.parse(Digester.java:1567)
              at org.jboss.web.tomcat.tc4.SingleSignOnContextConfig.tldScanStream(SingleSignOnContextConfig.java:1132)
              at org.jboss.web.tomcat.tc4.SingleSignOnContextConfig.tldScanTld(SingleSignOnContextConfig.java:1165) at org.jboss.web.tomcat.tc4.SingleSignOnContextConfig.tldScan(SingleSignOnContextConfig.java:1003)
              at org.jboss.web.tomcat.tc4.SingleSignOnContextConfig.start(SingleSignOnContextConfig.java:752)
              at org.jboss.web.tomcat.tc4.SingleSignOnContextConfig.lifecycleEvent(SingleSignOnContextConfig.java:255)
              at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
              at org.apache.catalina.core.StandardContext.start(StandardContext.java:3582)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
              at org.jboss.web.tomcat.tc4.EmbeddedTomcatService.createWebContext(EmbeddedTomcatService.java:549)
              at org.jboss.web.tomcat.tc4.EmbeddedTomcatService.performDeploy(EmbeddedTomcatService.java:309)
              at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:428)
              at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
              at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
              at $Proxy6.deploy(Unknown Source)
              at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
              at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
              at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
              at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
              at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
              18:59:41,192 ERROR [Digester] Parse Error at line 17 column 17: Attribute "xsi:schemaLocation" must be declared for element type "taglib".
              org.xml.sax.SAXParseException: Attribute "xsi:schemaLocation" must be declared for element type "taglib".
              at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232)
              at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:173)
              at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:362)
              at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:296)
              at org.apache.xerces.impl.dtd.XMLDTDValidator.addDTDDefaultAttrsAndValidate(XMLDTDValidator.java:2166)
              at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDValidator.java:2885)
              at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:792)
              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:752)
              at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(XMLDocumentScannerImpl.java:927)
              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1519)
              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
              at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:529)

              • 4. Re: JSTL 2.0
                magia100 Newbie

                It looks like there is a bunch of us having the same problem, Is there any moderator or JBOSS guru that knows how to setup JSTL 1.1 on Jboss 3.2.2?? We need some answers pleasee

                The error I get is:

                16:57:35,039 ERROR [Digester] Parse Error at line 6 column 19: Document root element
                "taglib", must match DOCTYPE root "null".
                org.xml.sax.SAXParseException: Document root element "taglib", must match DOCTYPE roo
                t "null".
                at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHa

                • 5. Re: JSTL 2.0
                  Andrew May Newbie

                  We use JSTL 1.1 with JBoss 3.2.3 using Jetty 5.0beta2 as the servlet container.

                  In order to deploy webapps using the 2.4 schema (and therefore get JSP2 & JSTL 1.1 to work) we had to upgrade xercesImpl.jar (in $JBOSS_HOME/lib) to a version that handles schemas properly. We used the version that was bundled with the Jetty distribution.

                  I would guess that when using Tomcat 5 you will need to do something similar.

                  As an aside, the server seems to start quite a bit quicker with the newer version of xerces.

                  • 6. Re: JSTL 2.0
                    atomas Newbie

                    Me too. Exactly the same error.

                    Did anyone fix it?

                    Thank you.