3 Replies Latest reply on Dec 10, 2009 7:34 AM by Michael Eibeck

    JBOss5.1.0-GA does not startup

    Michael Eibeck Newbie

      Hello all,

      I have installed JBoss V5.1.0.GA according to the installation instructions on a Windows XP profressional PC. I also have JDK 1.6.0_01 installed.

      When I try to start JBoss with run.bat I shuts down very quickly with The following in boot.log:

      15:39:30,743 INFO [ServerImpl] Starting JBoss (Microcontainer)...
      15:39:30,743 INFO [ServerImpl] Release ID: JBoss [The Oracle] 5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)
      15:39:30,743 DEBUG [ServerImpl] Using config: org.jboss.bootstrap.BaseServerConfig@14e3f41
      15:39:30,743 DEBUG [ServerImpl] Server type: class org.jboss.bootstrap.microcontainer.ServerImpl
      15:39:30,743 DEBUG [ServerImpl] Server loaded through: org.jboss.bootstrap.NoAnnotationURLClassLoader
      15:39:30,743 INFO [ServerImpl] Bootstrap URL: null
      15:39:30,743 INFO [ServerImpl] Home Dir: C:\Programme\jboss-5.1.0.GA
      15:39:30,743 INFO [ServerImpl] Home URL: file:/C:/Programme/jboss-5.1.0.GA/
      15:39:30,743 INFO [ServerImpl] Library URL: file:/C:/Programme/jboss-5.1.0.GA/lib/
      15:39:30,743 INFO [ServerImpl] Patch URL: null
      15:39:30,743 INFO [ServerImpl] Common Base URL: file:/C:/Programme/jboss-5.1.0.GA/common/
      15:39:30,743 INFO [ServerImpl] Common Library URL: file:/C:/Programme/jboss-5.1.0.GA/common/lib/
      15:39:30,743 INFO [ServerImpl] Server Name: default
      15:39:30,743 INFO [ServerImpl] Server Base Dir: C:\Programme\jboss-5.1.0.GA\server
      15:39:30,743 INFO [ServerImpl] Server Base URL: file:/C:/Programme/jboss-5.1.0.GA/server/
      15:39:30,743 INFO [ServerImpl] Server Config URL: file:/C:/Programme/jboss-5.1.0.GA/server/default/conf/
      15:39:30,743 INFO [ServerImpl] Server Home Dir: C:\Programme\jboss-5.1.0.GA\server\default
      15:39:30,743 INFO [ServerImpl] Server Home URL: file:/C:/Programme/jboss-5.1.0.GA/server/default/
      15:39:30,743 INFO [ServerImpl] Server Data Dir: C:\Programme\jboss-5.1.0.GA\server\default\data
      15:39:30,743 INFO [ServerImpl] Server Library URL: file:/C:/Programme/jboss-5.1.0.GA/server/default/lib/
      15:39:30,743 INFO [ServerImpl] Server Log Dir: C:\Programme\jboss-5.1.0.GA\server\default\log
      15:39:30,743 INFO [ServerImpl] Server Native Dir: C:\Programme\jboss-5.1.0.GA\server\default\tmp\native
      15:39:30,743 INFO [ServerImpl] Server Temp Dir: C:\Programme\jboss-5.1.0.GA\server\default\tmp
      15:39:30,743 INFO [ServerImpl] Server Temp Deploy Dir: C:\Programme\jboss-5.1.0.GA\server\default\tmp\deploy
      15:39:30,758 DEBUG [ServerImpl] Shutdown hook added Thread[JBoss Shutdown Hook,5,jboss]
      15:39:30,758 DEBUG [KernelFactory] Starting JBoss Kernel construction...
      15:39:30,852 DEBUG [KernelFactory] Completed JBoss Kernel construction. Duration: 94 milliseconds
      15:39:31,102 DEBUG [ServerImpl] Already in start, ignoring duplicate start
      15:39:31,102 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/C:/Programme/jboss-5.1.0.GA/server/default/conf/bootstrap.xml
      15:39:31,149 DEBUG [SaxJBossXBParser] Created parser: oracle.xml.jaxp.JXSAXParser@190ef12, isNamespaceAware: true, isValidating: true, isXIncludeAware: unsupported operation 'This parser does not support specification "null" version "null"'
      15:39:31,165 DEBUG [SaxJBossXBParser] http://xml.org/sax/features/validation set to: false
      15:39:31,165 DEBUG [SaxJBossXBParser] http://xml.org/sax/features/namespaces set to: true
      15:39:31,196 DEBUG [SaxJBossXBParser] Created parser: oracle.xml.jaxp.JXSAXParser@190ef12, isNamespaceAware: true, isValidating: true, isXIncludeAware: unsupported operation 'This parser does not support specification "null" version "null"'
      15:39:31,211 DEBUG [ServerImpl] Failed to start
      java.lang.RuntimeException: Error unmarshalling file:/C:/Programme/jboss-5.1.0.GA/server/default/conf/bootstrap.xml
       at org.jboss.bootstrap.xml.BootstrapParser.parse(BootstrapParser.java:60)
       at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:123)
       at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:450)
       at org.jboss.Main.boot(Main.java:221)
       at org.jboss.Main$1.run(Main.java:556)
       at java.lang.Thread.run(Thread.java:619)
      Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: file:/C:/Programme/jboss-5.1.0.GA/server/default/conf/bootstrap.xml@17,1
       at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:177)
       at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:119)
       at org.jboss.bootstrap.xml.BootstrapParser.parse(BootstrapParser.java:53)
       ... 5 more
      Caused by: org.xml.sax.SAXException: file:/C:/Programme/jboss-5.1.0.GA/server/default/conf/bootstrap.xml<Line 6, Column 11>: XML-20149: (Error) Element 'bootstrap' used but not declared. @ file:/C:/Programme/jboss-5.1.0.GA/server/default/conf/bootstrap.xml[6,11]
       at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$MetaDataErrorHandler.error(SaxJBossXBParser.java:426)
       at oracle.xml.parser.v2.XMLError.flushErrorHandler(XMLError.java:428)
       at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:284)
       at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:300)
       at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:229)
       at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:173)
       ... 7 more
      15:39:31,211 INFO [ServerImpl] Runtime shutdown hook called, forceHalt: true
      15:39:31,227 INFO [ServerImpl] Shutdown complete

      Does anybody have an idea why the bootstrap.xml cannot be parsed?

      Thanks for your help

        • 1. Re: JBOss5.1.0-GA does not startup
          jaikiran pai Master


          15:39:31,149 DEBUG [SaxJBossXBParser] Created parser: oracle.xml.jaxp.JXSAXParser@190ef12, isNamespa
          ceAware: true, isValidating: true, isXIncludeAware: unsupported operation 'This parser does not supp
          ort specification "null" version "null"'

          Which JDK version and vendor do you use? Looks like the classpath has some oracle xml parser which is causing the server boot to fail. Did you explicitly set any classpaths? If you find out where the oracle xml parser is being pulled in from, then remove that jar from the classpath.

          • 2. Re: JBOss5.1.0-GA does not startup
            Peter Johnson Master


            I also have JDK 1.6.0_01

            I would suggest installing a more recent JDK, versions before 6u4 had various issues.

            • 3. Re: JBOss5.1.0-GA does not startup
              Michael Eibeck Newbie

              Good hint jaikiran, thanks

              that' it.

              In run.bat I had configured the following:

              set "JBOSS_CLASSPATH=%RUN_CLASSPATH%;%ORACLE_HOME%\jdbc\lib\ojdbc14.jar;%ORACLE_HOME%\jlib\orai18n.jar;%ORACLE_HOME%\RDBMS\jlib\xdb.jar;%ORACLE_HOME%\oui\jlib\xmlparserv2.jar"

              I have removed the oracle libs so now the line reads:

              Now JBoss can read the bootstrap.xml file and starts up.

              One question: the application which I deploy on JBoss needs these oracle libraries in the classpath. I do not want to include these libraries in the deployment of my application since they are part of the Oracle Client installation which is always installed on our AppServer hardware. Is there another way of including these libraries in the classpath so that they don't interfere with the JBoss startup?