4 Replies Latest reply on Jul 28, 2003 5:32 AM by tobiasschmidt

    Xerces 2.0 with JBoss

    tobiasschmidt

      Hello.

      I set the startup option -j to xerces and try to run JBoss. After a second the follwing error occurs:

      javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found
      at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:99)
      at org.jboss.deployment.SARDeployer.parseDocument(SARDeployer.java:609)
      at org.jboss.deployment.SARDeployer.init(SARDeployer.java:150)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:556)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:501)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:481)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:465)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      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:491)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:314)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:216)
      at org.jboss.Main.boot(Main.java:142)
      at org.jboss.Main$1.run(Main.java:375)
      at java.lang.Thread.run(Thread.java:534)

      The xerces libaries are in the folders /jboss/lib/ and /jboss/deploy/bgs/lib/

      Has anyone an idea?

      THX

        • 1. Re: Xerces 2.0 with JBoss
          frito

          JBoss is using its own version of xerces (found in jboss/lib), but I don't know which version.

          Best practice if your application wants to use another version is to deploy your application with the other xerces.jar in one ear. Configure the ear to have its own loader repository with java2parent delegation set to false. Read the jboss-app dtd (3.2) to see how this is done. Then your application is using the other xerces while JBoss uses its own version.

          Greetings,
          Frito

          • 2. Re: Xerces 2.0 with JBoss
            tobiasschmidt

            Thank you for your answer. But I have another problem. I could not find the jboss-app dtd. By the side, I am using JBoss 3.0.0

            THX

            Tobi

            • 3. Re: Xerces 2.0 with JBoss
              jonlee

              If you look in docs/dtd of your distribution you should find jboss-app_3_0.dtd. I was looking in my old archived 3.0.6 so hopefully your version will have a similar file.

              Hope it helps.

              • 4. Re: Xerces 2.0 with JBoss
                tobiasschmidt

                Sorry,

                have no file called jboss-app_3_0.dtd

                THX

                Tobi