5 Replies Latest reply on Feb 20, 2013 10:11 PM by Clebert Suconic

    HornetQ2.1.0.Final with JBoss AS 5.1 fails to start

    rog Newbie

      I want to run HornetQ2.1.0.Final with JBoss AS 5.1. I have downloaded the jboss-5.1.0.GA-jdk6.zip package from here. So I have pasted it in C:\, where I have now the path C:\jboss-5.1.0.GA, also I've set the $JBOSS_HOME so when I echo it, it is returned the path I mentioned before.

       

      I'm following this tutorial - and I've tried running the JBoss with default-with-hornetq like this: run -c default-with-hornetq. However I have the following error:

       

      C:\jboss-5.1.0.GA\bin>run.bat -c default-with-hornetq

      Calling C:\jboss-5.1.0.GA\bin\run.conf.bat

      ===============================================================================

       

       

        JBoss Bootstrap Environment

       

       

        JBOSS_HOME: C:\jboss-5.1.0.GA

       

       

        JAVA: C:\Program Files (x86)\Java\jdk1.6.0_20\bin\java

       

       

        JAVA_OPTS: -Dprogram.name=run.bat -Xms128M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dorg.jboss.resolver.warning=true -server

       

       

        CLASSPATH: C:\jboss-5.1.0.GA\bin\run.jar

       

       

      ===============================================================================

       

       

      17:11:24,889 INFO  [ServerImpl] Starting JBoss (Microcontainer)...

      17:11:24,890 INFO  [ServerImpl] Release ID: JBoss [The Oracle] 5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)

      17:11:24,891 INFO  [ServerImpl] Bootstrap URL: null

      17:11:24,891 INFO  [ServerImpl] Home Dir: C:\jboss-5.1.0.GA

      17:11:24,894 INFO  [ServerImpl] Home URL: file:/C:/jboss-5.1.0.GA/

      17:11:24,897 INFO  [ServerImpl] Library URL: file:/C:/jboss-5.1.0.GA/lib/

      17:11:24,901 INFO  [ServerImpl] Patch URL: null

      17:11:24,903 INFO  [ServerImpl] Common Base URL: file:/C:/jboss-5.1.0.GA/common/

      17:11:24,905 INFO  [ServerImpl] Common Library URL: file:/C:/jboss-5.1.0.GA/common/lib/

      17:11:24,907 INFO  [ServerImpl] Server Name: default-with-hornetq

      17:11:24,910 INFO  [ServerImpl] Server Base Dir: C:\jboss-5.1.0.GA\server

      17:11:24,912 INFO  [ServerImpl] Server Base URL: file:/C:/jboss-5.1.0.GA/server/

      17:11:24,914 INFO  [ServerImpl] Server Config URL: file:/C:/jboss-5.1.0.GA/server/default-with-hornetq/conf/

      17:11:24,918 INFO  [ServerImpl] Server Home Dir: C:\jboss-5.1.0.GA\server\default-with-hornetq

      17:11:24,920 INFO  [ServerImpl] Server Home URL: file:/C:/jboss-5.1.0.GA/server/default-with-hornetq/

      17:11:24,923 INFO  [ServerImpl] Server Data Dir: C:\jboss-5.1.0.GA\server\default-with-hornetq\data

      17:11:24,925 INFO  [ServerImpl] Server Library URL: file:/C:/jboss-5.1.0.GA/server/default-with-hornetq/lib/

      17:11:24,927 INFO  [ServerImpl] Server Log Dir: C:\jboss-5.1.0.GA\server\default-with-hornetq\log

      17:11:24,930 INFO  [ServerImpl] Server Native Dir: C:\jboss-5.1.0.GA\server\default-with-hornetq\tmp\native

      17:11:24,932 INFO  [ServerImpl] Server Temp Dir: C:\jboss-5.1.0.GA\server\default-with-hornetq\tmp

      17:11:24,941 INFO  [ServerImpl] Server Temp Deploy Dir: C:\jboss-5.1.0.GA\server\default-with-hornetq\tmp\deploy

      17:11:25,363 INFO  [ServerImpl] Starting Microcontainer, bootstrapURL=file:/C:/jboss-5.1.0.GA/server/default-with-hornetq/conf/bootstrap.xml

      Failed to boot JBoss:

      java.lang.RuntimeException: Error unmarshalling file:/C:/jboss-5.1.0.GA/server/default-with-hornetq/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:/jboss-5.1.0.GA/server/default-with-hornetq/conf/bootstrap.xml

              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: java.io.FileNotFoundException: C:\jboss-5.1.0.GA\server\default-with-hornetq\conf\bootstrap.xml

              at org.jboss.net.protocol.file.FileURLConnection.connect(FileURLConnection.java:105)

              at org.jboss.net.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:112)

              at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)

              at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)

              at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

              at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

              at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

              at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

              at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)

              at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:173)

              ... 7 more

      17:11:25,487 INFO  [ServerImpl] Runtime shutdown hook called, forceHalt: true

      17:11:25,507 INFO  [ServerImpl] Shutdown complete

      Shutdown complete

      Halting VM

       

      I also have tried running JBoss without any parameter, just calling run.bat, and JBoss runs successfully, however when I try to call build.bat inside hornetq-2.1.0.Final\config\jboss-as-5, I have the following problem:

       

      C:\hornetq-2.1.0.Final\config\jboss-as-5>build.bat

      Build script found javac.

      hit alternate

      Using the following ant version from ..\..\tools\ant:

      calling ..\..\tools\ant\bin\ant.bat -version

      Apache Ant version 1.7.1 compiled on June 27 2008

      calling ..\..\tools\ant\bin\ant.bat  -Dhornetq.run_script=true

      Buildfile: build.xml

       

       

      default:

       

       

      create-profile:

       

       

      validate-jboss:

       

       

      BUILD FAILED

      C:\hornetq-2.1.0.Final\config\jboss-as-5\build.xml:22: The following error occurred while executing this line:

      C:\hornetq-2.1.0.Final\config\jboss-as-5\build.xml:45: The following error occurred while executing this line:

      C:\hornetq-2.1.0.Final\config\jboss-as-5\build.xml:87: "C:\jboss-5.1.0.GA"/server/default profile not found!

       

       

      Total time: 0 seconds

      Done

       


      So when I try to call build.bat inside hornetQ directory, I have the following error:

       

      C:\hornetq-2.1.0.Final\config\jboss-as-5\build.xml:87: "C:\jboss-5.1.0.GA"/server/default profile not found!

       

      So my doubt is, which way should I try to run it? According to my projects specfication, I should run hornetq with JBoss 5.1, and not in a stand-alone mode.

       

      What might be the problem? Thanks.