3 Replies Latest reply on Jun 29, 2016 10:27 AM by sebastian.laskawiec

    Jboss Data Grid Failure on building quickstarts

    jbossrvtem

      Hello,

       

      I'm new to Jboss data grid and having problems from the start.  Trying to build the quickstarts I fail with the below.  My jBoss is started and deployed.....

       

      [ERROR] Failed to execute goal org.jboss.as.plugins:jboss-as-maven-plugin:7.4.Final:deploy (default-cli) on project jboss-helloworld-jdg: Could not ex

      ecute goal deploy on C:\java\jboss-datagrid-6.6.0-server\jboss-jdg-quickstarts-JDG_6.6.0.CR3\helloworld-jdg\target\jboss-helloworld-jdg.war. Reason: I

      /O Error could not execute operation '{

      [ERROR] "address" => [],

      [ERROR] "operation" => "read-attribute",

      [ERROR] "name" => "launch-type"

      [ERROR] }': java.net.ConnectException: JBAS012144: Could not connect to remote://localhost:9999. The connection timed out

      [ERROR] -> [Help 1]

      [ERROR]

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

      [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 read the following articles:

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

       

      Thanks!

        • 1. Re: Jboss Data Grid Failure on building quickstarts
          sebastian.laskawiec

          Hey Rick!

           

          Could you tell me more to what EAP version you're trying to deploy? I've just tried it with EAP 6.4.5.GA (AS 7.5.5.Final-redhat-3) using cd helloworld-jdg && mvn -s ../settings.xml jboss-as:deploy and it works fine.

           

          Please note that you can always put the WAR file into $JBOSS_HOME/standalone/deployments.

           

          Thanks!

          Sebastian

          • 2. Re: Jboss Data Grid Failure on building quickstarts
            jbossrvtem

            Hi Sebastian,

             

            I get the message either in the directory or building all of the quickstarts with jboss-eap-7.0 and on an earlier version. Yes, I was able to build with mvn clean install and deploy it manually, but it doesn't say much for the quickstart instructions at least on the versions of jBoss I've tried on.  It clearly fails out of the box. I just downloaded EAP 6.4.0 (I need a stable version), installed the quickstart under it, run mvn -s .\settings.xml jboss-as:deploy and I get the below failure which is different this time.  Anyway, I'll move on as I got the helloworld working.  Is there an example of using JCache with JBoss DataGrid you can point me to?

             

            Thanks!

            Rick

             

            [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ jboss-carmart ---

            [INFO] Changes detected - recompiling the module!

            [INFO] Compiling 2 source files to C:\java\jboss-eap-6.4\jboss-jdg-quickstarts-JDG_6.6.0.CR3\carmart\target\test-classes

            [INFO]

            [INFO] --- maven-surefire-plugin:2.14:test (default-test) @ jboss-carmart ---

            [INFO] Tests are skipped.

            [INFO]

            [INFO] --- maven-war-plugin:2.2:war (default-war) @ jboss-carmart ---

            [INFO] Packaging webapp

            [INFO] Assembling webapp [jboss-carmart] in [C:\java\jboss-eap-6.4\jboss-jdg-quickstarts-JDG_6.6.0.CR3\carmart\target\jboss-carmart]

            [INFO] Processing war project

            [INFO] Copying webapp resources [C:\java\jboss-eap-6.4\jboss-jdg-quickstarts-JDG_6.6.0.CR3\carmart\src\main\webapp]

            [INFO] Webapp assembled in [148 msecs]

            [INFO] Building war: C:\java\jboss-eap-6.4\jboss-jdg-quickstarts-JDG_6.6.0.CR3\carmart\target\jboss-carmart.war

            [INFO]

            [INFO] <<< jboss-as-maven-plugin:7.4.Final:deploy (default-cli) < package @ jboss-carmart <<<

            [INFO]

            [INFO] --- jboss-as-maven-plugin:7.4.Final:deploy (default-cli) @ jboss-carmart ---

            Jun 29, 2016 11:41:03 AM org.xnio.Xnio <clinit>

            INFO: XNIO Version 3.0.7.GA

            Jun 29, 2016 11:41:03 AM org.xnio.nio.NioXnio <clinit>

            INFO: XNIO NIO Implementation Version 3.0.7.GA

            Jun 29, 2016 11:41:03 AM org.jboss.remoting3.EndpointImpl <clinit>

            INFO: JBoss Remoting version 3.2.12.GA

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

            [INFO] Reactor Summary:

            [INFO]

            [INFO] JBoss JDG Quickstart: spring-jdg ................... SUCCESS [ 16.404 s]

            [INFO] JBoss JDG Quickstart: carmart ...................... FAILURE [ 15.392 s]

            [INFO] JBoss JDG Quickstart: carmart-tx ................... SKIPPED

            [INFO] JBoss JDG Quickstart: helloworld-jdg ............... SKIPPED

             

             

             

            EAP 7.0

            -----------------------------

            2016-06-29 11:24:11.581  INFO 25184 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/**/favicon.ico] onto handler of

            type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]

            2016-06-29 11:24:11.652  INFO 25184 --- [           main] o.a.maven.surefire.booter.ForkedBooter   : Started ForkedBooter in 3.578 seconds (JVM runnin

            g for 4.282)

            Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.062 sec

            Running org.jboss.as.quickstarts.datagrid.spring.core.client.ClientCacheTest

            2016-06-29 11:24:11.712  INFO 25184 --- [           main] o.s.t.c.web.WebTestContextBootstrapper   : Loaded default TestExecutionListener class names

            from location [META-INF/spring.factories]: [org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.suppor

            t.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.con

            text.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener]

            2016-06-29 11:24:11.713  INFO 25184 --- [           main] o.s.t.c.web.WebTestContextBootstrapper   : Could not instantiate TestExecutionListener [org.

            springframework.test.context.jdbc.SqlScriptsTestExecutionListener]. Specify custom listener classes or make the default listener classes (and their re

            quired dependencies) available. Offending class: [org/springframework/transaction/interceptor/TransactionAttribute]

            2016-06-29 11:24:11.714  INFO 25184 --- [           main] o.s.t.c.web.WebTestContextBootstrapper   : Could not instantiate TestExecutionListener [org.

            springframework.test.context.transaction.TransactionalTestExecutionListener]. Specify custom listener classes or make the default listener classes (an

            d their required dependencies) available. Offending class: [org/springframework/transaction/interceptor/TransactionAttributeSource]

            2016-06-29 11:24:11.714  INFO 25184 --- [           main] o.s.t.c.web.WebTestContextBootstrapper   : Using TestExecutionListeners: [org.springframewor

            k.test.context.web.ServletTestExecutionListener@f91da5e, org.springframework.test.context.support.DependencyInjectionTestExecutionListener@eca6a74, or

            g.springframework.test.context.support.DirtiesContextTestExecutionListener@79fd6f95]

            Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.66 sec

            Running org.jboss.as.quickstarts.datagrid.spring.core.client.ClientGetterTest

            Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec

            2016-06-29 11:24:12.413  INFO 25184 --- [       Thread-1] o.s.w.c.s.GenericWebApplicationContext   : Closing org.springframework.web.context.support.G

            enericWebApplicationContext@59d016c9: startup date [Wed Jun 29 11:24:08 CEST 2016]; root of context hierarchy

             

             

            Results :

             

             

            Tests run: 4, Failures: 0, Errors: 0, Skipped: 0

             

             

            [INFO]

            [INFO] --- maven-war-plugin:2.5:war (default-war) @ jboss-spring-jdg ---

            [INFO] Packaging webapp

            [INFO] Assembling webapp [jboss-spring-jdg] in [C:\java\jboss-eap-7.0\jboss-jdg-quickstarts-JDG_6.6.0.CR3\spring\target\infinispan-spring]

            [INFO] Processing war project

            [INFO] Copying webapp resources [C:\java\jboss-eap-7.0\jboss-jdg-quickstarts-JDG_6.6.0.CR3\spring\src\main\webapp]

            [INFO] Webapp assembled in [528 msecs]

            [INFO] Building war: C:\java\jboss-eap-7.0\jboss-jdg-quickstarts-JDG_6.6.0.CR3\spring\target\infinispan-spring.war

            [INFO]

            [INFO] <<< jboss-as-maven-plugin:7.8.Final:deploy (default-cli) < package @ jboss-spring-jdg <<<

            [INFO]

            [INFO] --- jboss-as-maven-plugin:7.8.Final:deploy (default-cli) @ jboss-spring-jdg ---

            Jun 29, 2016 11:24:15 AM org.xnio.Xnio <clinit>

            INFO: XNIO Version 3.0.7.GA

            Jun 29, 2016 11:24:15 AM org.xnio.nio.NioXnio <clinit>

            INFO: XNIO NIO Implementation Version 3.0.7.GA

            Jun 29, 2016 11:24:15 AM org.jboss.remoting3.EndpointImpl <clinit>

            INFO: JBoss Remoting version 3.2.12.GA

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

            [INFO] Reactor Summary:

            [INFO]

            [INFO] JBoss JDG Quickstart: spring-jdg ................... FAILURE [ 15.098 s]

            [INFO] JBoss JDG Quickstart: carmart ...................... SKIPPED

            [INFO] JBoss JDG Quickstart: carmart-tx ................... SKIPPED

            [INFO] JBoss JDG Quickstart: helloworld-jdg ............... SKIPPED

            [INFO] JBoss JDG Quickstart: hotrod-endpoint .............. SKIPPED

            [INFO] JBoss JDG Quickstart: hotrod-secured ............... SKIPPED

            [INFO] JBoss JDG Quickstart: memcached-endpoint ........... SKIPPED

            [INFO] JBoss JDG Quickstart: rapid-stock-market ........... SKIPPED

            [INFO] JBoss JDG Quickstart: remote-query ................. SKIPPED

            [INFO] JBoss JDG Quickstart: rest-endpoint ................ SKIPPED

            [INFO] JBoss JDG Quickstart: secure-embedded-cache ........ SKIPPED

            [INFO] JBoss JDG Quickstart: jboss-eap-application - parent SKIPPED

            [INFO] JBoss JDG Quickstart: jboss-eap-application - AppTwo SKIPPED

            [INFO] JBoss JDG Quickstart: jboss-eap-application - AppTwo - ejb SKIPPED

            [INFO] JBoss JDG Quickstart: jboss-eap-application - AppOne SKIPPED

            [INFO] JBoss JDG Quickstart: jboss-eap-application - AppOne - ejb SKIPPED

            [INFO] JBoss JDG Quickstart: jboss-eap-application - AppOne - ear SKIPPED

            [INFO] JBoss JDG Quickstart: jboss-eap-application - AppTwo - ear SKIPPED

            [INFO] JBoss JDG Quickstart: jboss-eap-application - adminApp SKIPPED

            [INFO] JBoss JDG Quickstart: jboss-eap-application - adminApp ejb SKIPPED

            [INFO] JBoss JDG Quickstart: jboss-eap-application - adminApp ear SKIPPED

            [INFO] JBoss JDG Quickstart: jboss-eap-application - client SKIPPED

            [INFO] JBoss JDG Quickstart: camel-jbossdatagrid-fuse ..... SKIPPED

            [INFO] JBoss JDG Quickstart: camel-jbossdatagrid-fuse: features SKIPPED

            [INFO] JBoss JDG Quickstart: camel-jbossdatagrid-fuse: pojos SKIPPED

            [INFO] JBoss JDG Quickstart: camel-jbossdatagrid-fuse: local-cache-consumer SKIPPED

            [INFO] JBoss JDG Quickstart: camel-jbossdatagrid-fuse: local-cache-producer SKIPPED

            [INFO] JBoss JDG Quickstart: CDI .......................... SKIPPED

            [INFO] JBoss JDG Quickstart: parent ....................... SKIPPED

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

            [INFO] BUILD FAILURE

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

            [INFO] Total time: 17.132 s

            [INFO] Finished at: 2016-06-29T11:24:20+02:00

            [INFO] Final Memory: 53M/761M

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

            [ERROR] Failed to execute goal org.jboss.as.plugins:jboss-as-maven-plugin:7.8.Final:deploy (default-cli) on project jboss-spring-jdg: Could not execut

            e goal deploy on C:\java\jboss-eap-7.0\jboss-jdg-quickstarts-JDG_6.6.0.CR3\spring\target\infinispan-spring.war. Reason: I/O Error could not execute op

            eration '{

            [ERROR] "operation" => "read-attribute",

            [ERROR] "address" => [],

            [ERROR] "name" => "launch-type"

            [ERROR] }': java.net.ConnectException: JBAS012144: Could not connect to remote://127.0.0.1:9990. The connection timed out

            [ERROR] -> [Help 1]

            [ERROR]

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

            [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 read the following articles:

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

             

             

            c:\java\jboss-eap-7.0\jboss-jdg-quickstarts-JDG_6.6.0.CR3>

            • 3. Re: Jboss Data Grid Failure on building quickstarts
              sebastian.laskawiec

              I think you're trying to deploy all apps at the same time from quickstarts root. I believe this won't work. Please try building them from the root and then try deploying individual ones. Here is an example:

               

                 cd $QUICKSTARTS_ROOT

                 mvn clean install -s settings.xml -DskipTests

                 cd helloworld-jdg

                 mvn -s ../settings jboss-as:deploy

               

              The CDI quickstart uses some JCache integration bits but you may find much better reference in Infinispan Tutorials