4 Replies Latest reply on Aug 19, 2014 11:01 AM by jbertram

    Problem running j2ee example

    go_dores

      I downloaded hornetq-2.4.0 and I'm having a problem running the J2EE examples.  I downloaded jboss-as-7.1.1 and set jboss_home to that folder as instructed by the readme.md.  When I try to run the example using "mvn test", I get the error below.  Pointers and advice would be appreciated.

       

      [INFO] Scanning for projects...

      [INFO]

      [INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethrea

      ded.SingleThreadedBuilder with a thread count of 1

      [INFO]

      [INFO] ------------------------------------------------------------------------

      [INFO] Building HornetQ JEE MDB CMT Local Transaction Example 2.4.0.Final

      [INFO] ------------------------------------------------------------------------

      [WARNING] The POM for org.wildfly:wildfly-arquillian-container-managed:jar:8.0.0

      .Alpha3-SNAPSHOT is missing, no dependency information available

      [WARNING] The POM for org.hornetq:hornetq-core-client:jar:2.4.0-SNAPSHOT is miss

      ing, no dependency information available

      [WARNING] The POM for org.hornetq:hornetq-jms-client:jar:2.4.0-SNAPSHOT is missi

      ng, no dependency information available

      [WARNING] The POM for org.hornetq:hornetq-ra:jar:2.4.0-SNAPSHOT is missing, no d

      ependency information available

      [INFO] ------------------------------------------------------------------------

      [INFO] BUILD FAILURE

      [INFO] ------------------------------------------------------------------------

      [INFO] Total time: 1.391 s

      [INFO] Finished at: 2014-08-01T10:57:38-05:00

      [INFO] Final Memory: 7M/243M

      [INFO] ------------------------------------------------------------------------

      [ERROR] Failed to execute goal on project hornetq-jee-mdb-cmt-tx-local-example:

      Could not resolve dependencies for project org.hornetq.example.javaee:hornetq-je

      e-mdb-cmt-tx-local-example:jar:2.4.0.Final: The following artifacts could not be

      resolved: org.wildfly:wildfly-arquillian-container-managed:jar:8.0.0.Alpha3-SNA

      PSHOT, org.hornetq:hornetq-core-client:jar:2.4.0-SNAPSHOT, org.hornetq:hornetq-j

      ms-client:jar:2.4.0-SNAPSHOT, org.hornetq:hornetq-ra:jar:2.4.0-SNAPSHOT: Could n

      ot find artifact org.wildfly:wildfly-arquillian-container-managed:jar:8.0.0.Alph

      a3-SNAPSHOT -> [Help 1]

      [ERROR]

      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit

      ch.

      [ERROR] Re-run Maven using the -X switch to enable full debug logging.

      [ERROR]

      [ERROR] For more information about the errors and possible solutions, please rea

      d the following articles:

      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyReso

      lutionException

        • 1. Re: Problem running j2ee example
          go_dores

          Moving this into the general HornetQ forum.  Any suggestions?

          • 2. Re: Problem running j2ee example
            jbertram

            I tried to run this same example and it's definitely broken.  Hopefully I'll get a chance to investigate more soon, but I'm tied up on other tasks at the moment.

            • 3. Re: Problem running j2ee example
              gaohoward

              Let me take care of this. for one thing the exmaples/javaee/pom.xml needs update.

               

              <hornetq.client.version>2.4.0-SNAPSHOT</hornetq.client.version>
              <hornetq.client.version>2.4.x-SNAPSHOT</hornetq.client.version>

               

              </properties>

               

              @@ -88,7 +88,7 @@

                 <dependency>
                    <groupId>org.wildfly</groupId>
                    <artifactId>wildfly-arquillian-container-managed</artifactId>
              -     <version>8.0.0.Alpha3-SNAPSHOT</version>
              +     <version>8.0.0.Final</version>
              • 4. Re: Problem running j2ee example
                jbertram

                Shouldn't the <hornetq.client.version> refer to a "Final" version rather than a SNAPSHOT?  It should probably match the version that it's shipped with.