0 Replies Latest reply on Apr 15, 2013 7:36 AM by Guangquan Hao

    How to run hornetq-2.3.0.CR2 in eclipse

    Guangquan Hao Newbie

      I have imported the maven project into eclipse with the pom.xml.I know that the hornetq is starting with the class HornetQBootstrapServer.So I want to debug hornetq from this point.I did this in the version of 2.2.14Final.I know that the module of hornetq-bootstrap need some other modules,so I add some dependencies.I add some dependencies to the pom.xml which is in the directory of hornetq-bootstrap,as follows:

      <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

               xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

          <modelVersion>4.0.0</modelVersion>

       

         <parent>

            <groupId>org.hornetq</groupId>

            <artifactId>hornetq-pom</artifactId>

            <version>2.3.0.CR2</version>

         </parent>

       

          <artifactId>hornetq-bootstrap</artifactId>

          <packaging>jar</packaging>

          <name>HornetQ Bootstrap</name>

       

          <dependencies>

            <dependency>

                  <groupId>org.jboss.logging</groupId>

                  <artifactId>jboss-logging-processor</artifactId>

              </dependency>

              <dependency>

                  <groupId>org.jboss.logging</groupId>

                  <artifactId>jboss-logging</artifactId>

              </dependency>

              <dependency>

                  <groupId>org.jboss.microcontainer</groupId>

                  <artifactId>jboss-kernel</artifactId>

              </dependency>

              <dependency>

                  <groupId>org.hornetq</groupId>

                  <artifactId>hornetq-commons</artifactId>

                  <version>2.3.0.CR2</version>

              </dependency>

              <dependency>

                  <groupId>org.hornetq</groupId>

                  <artifactId>hornetq-core-client</artifactId>

                  <version>2.3.0.CR2</version>

              </dependency>

              <dependency>

                  <groupId>org.hornetq</groupId>

                      <artifactId>hornetq-jboss-as-integration</artifactId>

                      <version>2.3.0.CR2</version>

              </dependency>

              <dependency>

                  <groupId>org.hornetq</groupId>

                  <artifactId>hornetq-jms-client</artifactId>

                  <version>2.3.0.CR2</version>

              </dependency>

              <dependency>

                  <groupId>org.hornetq</groupId>

                  <artifactId>hornetq-jms-server</artifactId>

                  <version>2.3.0.CR2</version>

              </dependency>

              <dependency>

                  <groupId>org.hornetq</groupId>

                  <artifactId>hornetq-journal</artifactId>

                  <version>2.3.0.CR2</version>

              </dependency>

              <dependency>

                  <groupId>org.hornetq.rest</groupId>

                  <artifactId>hornetq-rest</artifactId>

                  <version>2.3.0.CR2</version>

              </dependency>

              <dependency>

                  <groupId>org.hornetq</groupId>

                  <artifactId>hornetq-server</artifactId>

                  <version>2.3.0.CR2</version>

              </dependency>

              <dependency>

                  <groupId>org.hornetq</groupId>

                  <artifactId>hornetq-service-sar</artifactId>

                  <version>2.3.0.CR2</version>

              </dependency>

              <dependency>

                  <groupId>org.hornetq</groupId>

                  <artifactId>hornetq-spring-integration</artifactId>

                  <version>2.3.0.CR2</version>

              </dependency>

              <dependency>

                  <groupId>org.hornetq</groupId>

                  <artifactId>hornetq-twitter-integration</artifactId>

                  <version>2.3.0.CR2</version>

              </dependency>

              <dependency>

                  <groupId>org.hornetq</groupId>

                  <artifactId>jboss-mc</artifactId>

                  <version>2.3.0.CR2</version>

              </dependency>

              <dependency>

                  <groupId>org.hornetq</groupId>

                  <artifactId>jnp-client</artifactId>

                  <version>2.3.0.CR2</version>

              </dependency>

          </dependencies>

      </project>

       

      I set the parameters of the program is hornetq-beans.xml and the parameters of the vm is

      -XX:+UseParallelGC -XX:+AggressiveOpts -XX:+UseFastAccessorMethods -Xms512M -Xmx1024M -Dhornetq.config.dir=/home/guangquanhao/hgq/hornetq2.3CR2/hornetq-2.3.0.CR2/config/stand-alone/clustered -Djava.util.logging.manager=org.jboss.logmanager.LogManager -Dlogging.configuration=file:///home/guangquanhao/hgq/hornetq2.3CR2/hornetq-2.3.0.CR2/config/stand-alone/clustered/logging.properties -Djava.library.path=. -classpath /home/guangquanhao/hgq/hornetq2.3CR2/hornetq-2.3.0.CR2/config/stand-alone/clustered

       

      But when I run it ,the exception is like this:

      Exception in thread "main" java.lang.ExceptionInInitializerError

          at org.hornetq.integration.bootstrap.HornetQBootstrapServer.main(HornetQBootstrapServer.java:65)

      Caused by: java.lang.IllegalArgumentException: Invalid logger interface org.hornetq.integration.bootstrap.HornetQBootstrapLogger (implementation not found)

          at org.jboss.logging.Logger.getMessageLogger(Logger.java:2250)

          at org.jboss.logging.Logger.getMessageLogger(Logger.java:2214)

          at org.hornetq.integration.bootstrap.HornetQBootstrapLogger.<clinit>(HornetQBootstrapLogger.java:54)

          ... 1 more

       

      Please help!I don't know very clearly about maven,so please tell me to do it in detail.I think I am moving near to the success!