4 Replies Latest reply on Jun 19, 2002 3:02 PM by Jeffrey Garvett

    xalan + xerces

    Richard Bottoms Newbie

      Could someone detail the changes needed to run.sh, run_with_catalina.sh and any other required files to replace crimson/jaxp with xalan/xerces.

      Thanks,
      r.b.


        • 1. Re: xalan + xerces
          Deepak U Pai Newbie

          I did the following to replace parsers. Try something similar - hope this helps.


          REM //////////////////////////////////////////////////////
          REM Deepak Pai U.
          REM 1st Novermber 2001
          REM These two lines were taken out to disregard the crimson parser and use the xerces instead

          REM set JAXP=-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.crimson.jaxp.DocumentBuilderFactoryImpl
          REM set JAXP=%JAXP% -Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAXParserFactoryImpl

          set JAXP=-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
          set JAXP=%JAXP% -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl
          REM //////////////////////////////////////////////////////
          REM //////////////////////////////////////////////////////REM Deepak Pai U.
          REM 1st Novermber 2001
          REM This line was addes to get the transform factory to use the xalan processor
          set JAXP=%JAXP% -Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl
          REM //////////////////////////////////////////////////////

          • 2. Re: xalan + xerces
            Jeffrey Garvett Newbie

            I'm using JBoss 2.4.0 with Tomcat on Win2K and attempted to replace Crimson with Xerces, but startup failed during deployment of the .war file. If anyone has some insight into this, it would be really appreciated. Stack trace is below.

            Thanks!

            -Jeff

            [EmbeddedTomcatSX] 2002-01-24 11:33:33 - ContextManager: Adding context Ctx( )
            [WebContainer] AbstractWebContainer.parseWebAppDescriptors, Begin
            [Default] org.jboss.ejb.DeploymentException: res-auth tag should be 'Container' or 'Application'
            [Default] at org.jboss.metadata.ResourceRefMetaData.importEjbJarXml(ResourceRefMetaData.java:112)
            [Default]
            [Default] at org.jboss.metadata.WebMetaData.importWebXml(WebMetaData.java:94)
            [Default]
            [Default] at org.jboss.metadata.WebMetaData.importXml(WebMetaData.java:76)
            [Default]
            [Default] at org.jboss.web.AbstractWebContainer.parseWebAppDescriptors(AbstractWebContainer.java:280)
            [Default]
            [Default] at org.jboss.web.AbstractWebContainer$DescriptorParser.parseWebAppDescriptors(AbstractWebContainer.java:406)
            [Default]
            [Default] at org.jboss.tomcat.naming.JbossWebXmlReader.contextInit(JbossWebXmlReader.java:64)
            [Default]
            [Default] at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491)
            [Default]
            [Default] at org.jboss.tomcat.TomcatEntry.initContext(TomcatEntry.java:144)
            [Default]
            [Default] at org.jboss.tomcat.EmbeddedTomcatServiceSX.performDeploy(EmbeddedTomcatServiceSX.java:134)
            [Default]
            [Default] at org.jboss.web.AbstractWebContainer.deploy(AbstractWebContainer.java:185)
            [Default]
            [Default] at java.lang.reflect.Method.invoke(Native Method)
            [Default]
            [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
            [Default]
            [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
            [Default]
            [Default] at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:501)
            [Default]
            [Default] at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:464)
            [Default]
            [Default] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:208)
            [Default]
            [Default] at java.lang.reflect.Method.invoke(Native Method)
            [Default]
            [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
            [Default]
            [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
            [Default]
            [Default] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:379)
            [Default]
            [Default] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:217)
            [Default]
            [Default] at org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:353)
            [Default]
            [Default] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:106)
            [Default]
            [Default] at java.lang.reflect.Method.invoke(Native Method)
            [Default]
            [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
            [Default]
            [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
            [Default]
            [Default] at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:831)
            [Default]
            [Default] at $Proxy0.start(Unknown Source)
            [Default]
            [Default] at org.jboss.util.ServiceControl.start(ServiceControl.java:81)
            [Default]
            [Default] at java.lang.reflect.Method.invoke(Native Method)
            [Default]
            [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
            [Default]
            [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
            [Default]
            [Default] at org.jboss.Main.(Main.java:209)
            [Default]
            [Default] at org.jboss.Main$1.run(Main.java:115)
            [Default]
            [Default] at java.security.AccessController.doPrivileged(Native Method)
            [Default]
            [Default] at org.jboss.Main.main(Main.java:111)
            [Default]

            • 3. Re: xalan + xerces
              Hua Wu Newbie

              I saw the same error after replacing crimson with xerces. Any explanation?

              • 4. Re: xalan + xerces
                Jeffrey Garvett Newbie

                Glad to see that I'm not the only one with this problem. Now, if only there were a solution. :(