1 Reply Latest reply on Mar 5, 2002 9:26 AM by Lars Henssen

    jboss startup failure

    Martin Newbie

      when i try to start jboss on linux i get the following error message. my problem is: crimson.jar IS in the correct path (../lib/) and it is NOT corrupt. what's wrong?

      JBOSS_CLASSPATH=:run.jar:../lib/crimson.jar
      jboss.home = /usr/local/jboss
      Using JAAS LoginConfig: file:/usr/local/jboss/conf/default/auth.conf
      JBoss release: JBoss-2.4.4 CVSTag=JBoss_2_4_4
      JBoss version: 2.4.4.2001-12-29 02:04:40 PST
      Using configuration "default"
      [INFO,root] Started Log4jService, config=file:/usr/local/jboss/conf/default/log4j.properties
      [INFO,Info] Java version: 1.3.0_02,Sun Microsystems Inc.
      [INFO,Info] Java VM: Java HotSpot(TM) Server VM 1.3.0_02,Sun Microsystems Inc.
      [INFO,Info] System: Linux 2.2.16,i386
      [INFO,Shutdown] Shutdown hook added
      [INFO,Default] Runtime error
      javax.xml.parsers.FactoryConfigurationError: org.apache.crimson.jaxp.DocumentBuilderFactoryImpl
      at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:80)

      at org.jboss.configuration.ConfigurationService.loadConfiguration(ConfigurationService.java:449)

      at java.lang.reflect.Method.invoke(Native Method)

      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)

      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)

      at org.jboss.Main.(Main.java:200)

      at org.jboss.Main$1.run(Main.java:110)

      at java.security.AccessController.doPrivileged(Native Method)

      at org.jboss.Main.main(Main.java:106)

      please help, i have no clue what could be wrong.

      thanks in advance

        • 1. Re: jboss startup failure
          Lars Henssen Newbie

          Hi,

          I had the same problem with crimson.jar. Seems like it's a problem with two XML factories in place. I replaced crimson by Xerces and now at least the server comes up.

          See

          http://www.jboss.org/online-manual/HTML/ch13s135.html

          for details (copied below).

          To change JBoss to use the Xerces parser, you would need change the setup to that shown in Figure 13.31 assuming you copied the xerces.jar into the JBoss lib directory.

          Figure 13.31. The run.sh setup for the Xerces xml parsers

          # Add the XML parser jars and set the JAXP factory names
          # Xerces parser JAXP setup
          CLASSPATH=$CLASSPATH:../lib/xerces.jar
          JAXP=-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
          JAXP="$JAXP -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl"