1 Reply Latest reply on Sep 13, 2002 4:34 PM by Tim

    Xerces instead of Crimson

    Tim Newbie

      Hi,
      I just installed JBoss 3.0.0 - TC 4.0.3. With the default Crimson I get this error when using XTags:

      2002-09-13 15:14:27,706 ERROR [STDERR] java.io.FileNotFoundException: C:\jboss-3.0.0_tomcat-4.0.3\bin\jndi:\localhost\hcl-dev\flow.xml
      2002-09-13 15:14:27,706 ERROR [STDERR] at org.jboss.net.protocol.file.FileURLConnection.connect(FileURLConnection.java:65)
      2002-09-13 15:14:27,706 ERROR [STDERR] at org.jboss.net.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:72)
      2002-09-13 15:14:27,721 ERROR [STDERR] at java.net.URL.openStream(URL.java:798)
      2002-09-13 15:14:27,721 ERROR [STDERR] at org.apache.crimson.parser.InputEntity.init(InputEntity.java:209)
      2002-09-13 15:14:27,721 ERROR [STDERR] at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:471)
      2002-09-13 15:14:27,721 ERROR [STDERR] at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
      2002-09-13 15:14:27,721 ERROR [STDERR] at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
      2002-09-13 15:14:27,721 ERROR [STDERR] at org.dom4j.io.SAXReader.read(SAXReader.java:323)
      2002-09-13 15:14:27,721 ERROR [STDERR] at org.dom4j.io.SAXReader.read(SAXReader.java:218)
      2002-09-13 15:14:27,721 ERROR [STDERR] at org.apache.taglibs.xtags.xpath.ParseTag.doStartTag(ParseTag.java:116)
      2002-09-13 15:14:27,721 ERROR [STDERR] at org.apache.jsp.incBodyHeader$jsp._jspService(incBodyHeader$jsp.java:555)
      2002-09-13 15:14:27,721 ERROR [STDERR] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)

      I know that my flow.xml file is in the correct location as I can even browse to it from my browser. Well so I looked further on the stacktrace and figured this was a crimson issue. So I tried putting in xerces.
      I downloaded the newest version of Xerces and put xercesImpl and xmlParserAPIs.jar into the lib folder that Crimson was in and removed Crimson. Then I edited the run.bat to include both of those into the JBOSS_CLASSPATH.

      But still it didnt work.
      I can't understand what I'm doing wrong.

      Can someone point to something to show how to replace Crimson with Xerces in this version of JBoss?

      Thanks.

        • 1. Re: Xerces instead of Crimson
          Tim Newbie

          By the way, this code originally worked in JBoss 2.4 with Tomcat 4.0. It was moving it to the newer JBoss that seemed to cause problems.

          Both errors mentioned JNDI (although not sure why since I dont sepecify using JNDI).

          The error after replacing Crimson was:

          15:40:51,034 INFO [Engine] Error: org.apache.taglibs.xtags.xpath.ParseTag : unknown protocol: jndi Nested exception: unknown protocol: jndi

          15:40:51,050 ERROR [STDERR] org.dom4j.DocumentException: unknown protocol: jndi Nested exception: unknown protocol: jndi
          15:40:51,050 ERROR [STDERR] at org.dom4j.io.SAXReader.read(SAXReader.java:342)
          15:40:51,050 ERROR [STDERR] at org.dom4j.io.SAXReader.read(SAXReader.java:218)
          15:40:51,050 ERROR [STDERR] at org.apache.taglibs.xtags.xpath.ParseTag.doStartTag(ParseTag.java:116)
          15:40:51,065 ERROR [STDERR] at org.apache.jsp.incBodyHeader$jsp._jspService(incBodyHeader$jsp.java:555)
          15:40:51,065 ERROR [STDERR] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
          15:40:51,081 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
          15:40:51,081 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
          15:40:51,081 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
          15:40:51,081 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
          15:40:51,096 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
          15:40:51,096 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683)
          15:40:51,112 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
          15:40:51,112 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:497)
          15:40:51,112 ERROR [STDERR] at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:820)
          15:40:51,128 ERROR [STDERR] at org.apache.jsp.sortlevels$jsp._jspService(sortlevels$jsp.java:133)
          15:40:51,128 ERROR [STDERR] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
          15:40:51,128 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
          15:40:51,143 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
          15:40:51,143 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
          15:40:51,143 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
          15:40:51,159 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
          15:40:51,159 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683)
          15:40:51,159 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:431)
          15:40:51,175 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:355)
          15:40:51,175 ERROR [STDERR] at com.nielsenmedia.oneoffs.servlet.controller.Controller.doSortLevels(Controller.java:426)
          15:40:51,175 ERROR [STDERR] at com.nielsenmedia.oneoffs.servlet.controller.Controller.processRequest(Controller.java:144)
          15:40:51,190 ERROR [STDERR] at com.nielsenmedia.oneoffs.servlet.controller.Controller.doPost(Controller.java:125)
          15:40:51,190 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
          15:40:51,206 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
          15:40:51,206 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
          15:40:51,206 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
          15:40:51,221 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
          15:40:51,221 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
          15:40:51,221 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
          15:40:51,237 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
          15:40:51,237 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
          15:40:51,237 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
          15:40:51,253 ERROR [STDERR] at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
          15:40:51,253 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
          15:40:51,253 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
          15:40:51,268 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
          15:40:51,268 ERROR [STDERR] at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
          15:40:51,268 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
          15:40:51,284 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
          15:40:51,284 ERROR [STDERR] at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
          15:40:51,284 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
          15:40:51,300 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
          15:40:51,300 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
          15:40:51,300 ERROR [STDERR] at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
          15:40:51,315 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
          15:40:51,315 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
          15:40:51,315 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
          15:40:51,331 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
          15:40:51,331 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
          15:40:51,331 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
          15:40:51,346 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
          15:40:51,346 ERROR [STDERR] at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
          15:40:51,362 ERROR [STDERR] at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
          15:40:51,362 ERROR [STDERR] at java.lang.Thread.run(Thread.java:484)
          15:40:51,362 ERROR [STDERR] Nested exception:
          15:40:51,378 ERROR [STDERR] java.net.MalformedURLException: unknown protocol: jndi
          15:40:51,378 ERROR [STDERR] at java.net.URL.(URL.java:480)
          15:40:51,378 ERROR [STDERR] at java.net.URL.(URL.java:376)
          15:40:51,393 ERROR [STDERR] at java.net.URL.(URL.java:330)
          15:40:51,393 ERROR [STDERR] at org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.java:807)
          15:40:51,393 ERROR [STDERR] at org.apache.xerces.impl.XMLEntityManager.startDocumentEntity(XMLEntityManager.java:753)
          15:40:51,409 ERROR [STDERR] at org.apache.xerces.impl.XMLDocumentScannerImpl.setInputSource(XMLDocumentScannerImpl.java:260)
          15:40:51,409 ERROR [STDERR] at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:499)
          15:40:51,409 ERROR [STDERR] at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
          15:40:51,425 ERROR [STDERR] at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
          15:40:51,425 ERROR [STDERR] at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)
          15:40:51,425 ERROR [STDERR] at org.dom4j.io.SAXReader.read(SAXReader.java:323)
          15:40:51,440 ERROR [STDERR] at org.dom4j.io.SAXReader.read(SAXReader.java:218)
          15:40:51,440 ERROR [STDERR] at org.apache.taglibs.xtags.xpath.ParseTag.doStartTag(ParseTag.java:116)
          15:40:51,440 ERROR [STDERR] at org.apache.jsp.incBodyHeader$jsp._jspService(incBodyHeader$jsp.java:555)
          15:40:51,456 ERROR [STDERR] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
          15:40:51,456 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
          15:40:51,456 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
          15:40:51,471 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
          15:40:51,471 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
          15:40:51,471 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
          15:40:51,487 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683)
          15:40:51,487 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
          15:40:51,487 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:497)
          15:40:51,503 ERROR [STDERR] at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:820)
          15:40:51,503 ERROR [STDERR] at org.apache.jsp.sortlevels$jsp._jspService(sortlevels$jsp.java:133)
          15:40:51,503 ERROR [STDERR] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
          15:40:51,518 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
          15:40:51,518 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
          15:40:51,518 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
          15:40:51,534 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
          15:40:51,534 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
          15:40:51,550 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683)
          15:40:51,550 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:431)
          15:40:51,550 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:355)
          15:40:51,550 ERROR [STDERR] at com.nielsenmedia.oneoffs.servlet.controller.Controller.doSortLevels(Controller.java:426)
          15:40:51,565 ERROR [STDERR] at com.nielsenmedia.oneoffs.servlet.controller.Controller.processRequest(Controller.java:144)
          15:40:51,565 ERROR [STDERR] at com.nielsenmedia.oneoffs.servlet.controller.Controller.doPost(Controller.java:125)
          15:40:51,581 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
          15:40:51,581 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
          15:40:51,581 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
          15:40:51,596 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
          15:40:51,596 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
          15:40:51,596 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
          15:40:51,612 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
          15:40:51,612 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
          15:40:51,612 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
          15:40:51,628 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
          15:40:51,628 ERROR [STDERR] at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
          15:40:51,628 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
          15:40:51,643 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
          15:40:51,643 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
          15:40:51,659 ERROR [STDERR] at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
          15:40:51,659 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
          15:40:51,659 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
          15:40:51,659 ERROR [STDERR] at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
          15:40:51,675 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
          15:40:51,675 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
          15:40:51,690 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
          15:40:51,690 ERROR [STDERR] at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
          15:40:51,690 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
          15:40:51,706 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
          15:40:51,706 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
          15:40:51,706 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
          15:40:51,721 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
          15:40:51,721 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
          15:40:51,721 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
          15:40:51,737 ERROR [STDERR] at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
          15:40:51,737 ERROR [STDERR] at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
          15:40:51,737 ERROR [STDERR] at java.lang.Thread.run(Thread.java:484)