9 Replies Latest reply on Oct 23, 2014 2:12 PM by Márcio Dall'Igna

    Arquillian test in jboss tools

    Dirk Gerrit Oort Newbie

      I want to investigate arquillian, and therefore i use eclipse kepler (Version: Kepler Service Release 2)   with the latest jboss-tools (from the overview side of jboss-tools) and jboss 7.1.1 server (brontes)

       

      When running a default jboss - web app created with maven archetype jboss-javaee6-webapp-archetype version 7.1.3.Final and jboss 7.1.1 server, the test will not run as expected.

      When using the profile arq-jbossas-managed  (JBOSS_HOME points to the used server) , maven start the test the @deploy in the test is done, the app is deployed to the server but the test will not run. the maven run 'hangs'. After stopping the maven run, the server still runs and must be killed.

       

      Running with the profile arq-jbossas-remote:

       

      Startup the server and run the test (maven -test) I see that the deployment is done and also now the maven build is 'hanging". After stopping the server the console output suggest that the Schema export unsuccessful.

       

      13:28:32,797 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA

      13:28:32,956 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA

      13:28:33,010 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting

      13:28:33,618 INFO  [org.xnio] XNIO Version 3.0.3.GA

      13:28:33,618 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)

      13:28:33,628 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA

      13:28:33,638 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.3.GA

      13:28:33,648 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers

      13:28:33,649 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem

      13:28:33,670 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.

      13:28:33,687 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension

      13:28:33,691 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem

      13:28:33,694 INFO  [org.jboss.as.connector] (MSC service thread 1-1) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)

      13:28:33,697 INFO  [org.jboss.as.security] (MSC service thread 1-1) JBAS013100: Current PicketBox version=4.0.7.Final

      13:28:33,698 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)

      13:28:33,716 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem

      13:28:33,765 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem

      13:28:33,862 INFO  [org.jboss.as.naming] (MSC service thread 1-4) JBAS011802: Starting Naming Service

      13:28:33,862 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-3) JBoss Web Services - Stack CXF Server 4.0.2.GA

      13:28:33,873 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-4) JBAS015400: Bound mail session [java:jboss/mail/Default]

      13:28:34,055 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-5) Starting Coyote HTTP/1.1 on http-localhost-127.0.0.1-8080

      13:28:34,127 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "test.war"

      13:28:34,127 INFO  [org.jboss.as.remoting] (MSC service thread 1-6) JBAS017100: Listening on localhost/127.0.0.1:4447

      13:28:34,137 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-8) JBAS015012: Started FileSystemDeploymentService for directory C:\Users\doort\jboss-as-7.1.1.Final\standalone\deployments

      13:28:34,137 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]

      13:28:34,177 INFO  [org.jboss.as.remoting] (MSC service thread 1-7) JBAS017100: Listening on /127.0.0.1:9999

      13:28:34,419 INFO  [org.jboss.as.jpa] (MSC service thread 1-3) JBAS011401: Read persistence.xml for primary

      13:28:34,490 INFO  [org.jboss.weld.deployer] (MSC service thread 1-3) JBAS016002: Processing weld deployment test.war

      13:28:34,500 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-3) JNDI bindings for session bean named MemberRegistration in deployment unit deployment "test.war" are as follows:

       

          java:global/test/MemberRegistration!org.jboss.test.test1.service.MemberRegistration

          java:app/test/MemberRegistration!org.jboss.test.test1.service.MemberRegistration

          java:module/MemberRegistration!org.jboss.test.test1.service.MemberRegistration

          java:global/test/MemberRegistration

          java:app/test/MemberRegistration

          java:module/MemberRegistration

       

      13:28:34,580 INFO  [org.jboss.weld.deployer] (MSC service thread 1-3) JBAS016005: Starting Services for CDI deployment: test.war

      13:28:34,620 INFO  [org.jboss.weld.Version] (MSC service thread 1-3) WELD-000900 1.1.5 (AS71)

      13:28:34,650 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) JBAS010400: Bound data source [jboss/datasources/test1TestDS]

      13:28:34,650 INFO  [org.jboss.as.jpa] (MSC service thread 1-5) JBAS011402: Starting Persistence Unit Service 'test.war#primary'

      13:28:34,730 INFO  [org.hibernate.annotations.common.Version] (MSC service thread 1-5) HCANN000001: Hibernate Commons Annotations {4.0.1.Final}

      13:28:34,730 INFO  [org.hibernate.Version] (MSC service thread 1-5) HHH000412: Hibernate Core {4.0.1.Final}

      13:28:34,730 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-5) HHH000206: hibernate.properties not found

      13:28:34,740 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-5) HHH000021: Bytecode provider name : javassist

      13:28:34,750 INFO  [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-5) HHH000204: Processing PersistenceUnitInfo [

          name: primary

          ...]

      13:28:34,861 INFO  [org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator] (MSC service thread 1-5) HHH000130: Instantiating explicit connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider

      13:28:34,991 INFO  [org.hibernate.dialect.Dialect] (MSC service thread 1-5) HHH000400: Using dialect: org.hibernate.dialect.H2Dialect

      13:28:34,992 WARN  [org.hibernate.dialect.H2Dialect] (MSC service thread 1-5) HHH000431: Unable to determine H2 database version, certain features may not work

      13:28:34,992 INFO  [org.hibernate.engine.jdbc.internal.LobCreatorBuilder] (MSC service thread 1-5) HHH000423: Disabling contextual LOB creation as JDBC driver reported JDBC version [3] less than 4

      13:28:35,012 INFO  [org.hibernate.engine.transaction.internal.TransactionFactoryInitiator] (MSC service thread 1-5) HHH000268: Transaction strategy: org.hibernate.engine.transaction.internal.jta.CMTTransactionFactory

      13:28:35,012 INFO  [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (MSC service thread 1-5) HHH000397: Using ASTQueryTranslatorFactory

      13:28:35,032 INFO  [org.hibernate.validator.util.Version] (MSC service thread 1-5) Hibernate Validator 4.2.0.Final

      13:28:35,233 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-5) HHH000227: Running hbm2ddl schema export

      13:28:35,243 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-5) HHH000389: Unsuccessful: drop sequence hibernate_sequence

      13:28:35,243 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-5) Sequence "HIBERNATE_SEQUENCE" not found; SQL statement:

      drop sequence hibernate_sequence [90036-161]

      13:28:35,243 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-5) HHH000230: Schema export complete

      13:28:35,263 INFO  [org.jboss.weld.deployer] (MSC service thread 1-7) JBAS016008: Starting weld service for deployment test.war

      13:28:35,699 INFO  [org.jboss.web] (MSC service thread 1-7) JBAS018210: Registering web context: /test

      13:28:35,709 INFO  [org.jboss.as.server] (Controller Boot Thread) JBAS018559: Deployed "test.war"

      13:28:35,729 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990

      13:28:35,729 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 3125ms - Started 208 of 285 services (76 services are passive or on-demand)

      13:28:45,464 INFO  [org.jboss.weld.deployer] (MSC service thread 1-7) JBAS016009: Stopping weld service for deployment test.war

      13:28:45,464 INFO  [org.jboss.as.jpa] (MSC service thread 1-1) JBAS011403: Stopping Persistence Unit Service 'test.war#primary'

      13:28:45,464 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-1) HHH000227: Running hbm2ddl schema export

      13:28:45,485 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-1) HHH000230: Schema export complete

      13:28:45,485 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) JBAS010409: Unbound data source [jboss/datasources/test1TestDS]

      13:28:45,515 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015877: Stopped deployment test.war in 128ms

      13:28:45,545 INFO  [org.jboss.as.server] (HttpManagementService-threads - 6) JBAS018558: Undeployed "test.war"

      13:28:45,545 INFO  [org.jboss.as.repository] (HttpManagementService-threads - 6) JBAS014901: Content removed from location C:\Users\doort\jboss-as-7.1.1.Final\standalone\data\content\e0\4e58350afa43a7f86c8c722c48202bff639ea5\content

      13:30:17,540 INFO  [org.jboss.as.repository] (management-handler-thread - 5) JBAS014900: Content added at location C:\Users\doort\jboss-as-7.1.1.Final\standalone\data\content\fe\d4e26bbcec4426d429b05c365438ee949a16c4\content

      13:30:17,541 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015876: Starting deployment of "test.war"

      13:30:17,692 INFO  [org.jboss.as.jpa] (MSC service thread 1-7) JBAS011401: Read persistence.xml for primary

      13:30:17,712 INFO  [org.jboss.weld.deployer] (MSC service thread 1-7) JBAS016002: Processing weld deployment test.war

      13:30:17,712 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-7) JNDI bindings for session bean named MemberRegistration in deployment unit deployment "test.war" are as follows:

       

          java:global/test/MemberRegistration!org.jboss.test.test1.service.MemberRegistration

          java:app/test/MemberRegistration!org.jboss.test.test1.service.MemberRegistration

          java:module/MemberRegistration!org.jboss.test.test1.service.MemberRegistration

          java:global/test/MemberRegistration

          java:app/test/MemberRegistration

          java:module/MemberRegistration

       

      13:30:17,723 INFO  [org.jboss.weld.deployer] (MSC service thread 1-8) JBAS016005: Starting Services for CDI deployment: test.war

      13:30:17,743 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-5) JBAS010400: Bound data source [jboss/datasources/test1TestDS]

      13:30:17,743 INFO  [org.jboss.as.jpa] (MSC service thread 1-1) JBAS011402: Starting Persistence Unit Service 'test.war#primary'

      13:30:17,743 INFO  [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-1) HHH000204: Processing PersistenceUnitInfo [

          name: primary

          ...]

      13:30:17,763 INFO  [org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator] (MSC service thread 1-1) HHH000130: Instantiating explicit connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider

      13:30:17,763 INFO  [org.hibernate.dialect.Dialect] (MSC service thread 1-1) HHH000400: Using dialect: org.hibernate.dialect.H2Dialect

      13:30:17,763 WARN  [org.hibernate.dialect.H2Dialect] (MSC service thread 1-1) HHH000431: Unable to determine H2 database version, certain features may not work

      13:30:17,763 INFO  [org.hibernate.engine.jdbc.internal.LobCreatorBuilder] (MSC service thread 1-1) HHH000423: Disabling contextual LOB creation as JDBC driver reported JDBC version [3] less than 4

      13:30:17,773 INFO  [org.hibernate.engine.transaction.internal.TransactionFactoryInitiator] (MSC service thread 1-1) HHH000268: Transaction strategy: org.hibernate.engine.transaction.internal.jta.CMTTransactionFactory

      13:30:17,773 INFO  [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (MSC service thread 1-1) HHH000397: Using ASTQueryTranslatorFactory

      13:30:17,793 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-1) HHH000227: Running hbm2ddl schema export

      13:30:17,793 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-1) HHH000389: Unsuccessful: drop sequence hibernate_sequence

      13:30:17,803 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-1) Sequence "HIBERNATE_SEQUENCE" not found; SQL statement:

      drop sequence hibernate_sequence [90036-161]

      13:30:17,803 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-1) HHH000230: Schema export complete

      13:30:17,803 INFO  [org.jboss.weld.deployer] (MSC service thread 1-7) JBAS016008: Starting weld service for deployment test.war

      13:30:17,873 INFO  [org.jboss.web] (MSC service thread 1-8) JBAS018210: Registering web context: /test

      13:30:17,884 INFO  [org.jboss.as.server] (management-handler-thread - 5) JBAS018559: Deployed "test.war"

      13:31:21,420 INFO  [org.jboss.as.logging] JBAS011503: Restored bootstrap log handlers

      13:31:21,420 INFO  [org.jboss.as.osgi] JBAS011942: Stopping OSGi Framework

      13:31:21,421 INFO  [org.jboss.as.connector.subsystems.datasources] JBAS010409: Unbound data source [java:jboss/datasources/ExampleDS]

      13:31:21,441 INFO  [org.jboss.weld.deployer] JBAS016009: Stopping weld service for deployment test.war

      13:31:21,441 INFO  [org.jboss.as.jpa] JBAS011403: Stopping Persistence Unit Service 'test.war#primary'

      13:31:21,441 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] HHH000227: Running hbm2ddl schema export

      13:31:21,441 INFO  [org.apache.coyote.http11.Http11Protocol] Pausing Coyote HTTP/1.1 on http-localhost-127.0.0.1-8080

      13:31:21,451 INFO  [org.apache.coyote.http11.Http11Protocol] Stopping Coyote HTTP/1.1 on http-localhost-127.0.0.1-8080

      13:31:21,441 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] HHH000231: Schema export unsuccessful: org.h2.jdbc.JdbcSQLException: Database is already closed (to disable automatic closing at VM shutdown, add ";DB_CLOSE_ON_EXIT=FALSE" to the db URL) [90121-161]

          at org.h2.message.DbException.getJdbcSQLException(DbException.java:329)

          at org.h2.message.DbException.get(DbException.java:169)

          at org.h2.message.DbException.get(DbException.java:146)

          at org.h2.message.DbException.get(DbException.java:135)

          at org.h2.jdbc.JdbcConnection.checkClosed(JdbcConnection.java:1394)

          at org.h2.jdbc.JdbcConnection.checkClosed(JdbcConnection.java:1369)

          at org.h2.jdbc.JdbcConnection.createStatement(JdbcConnection.java:191)

          at org.jboss.jca.adapters.jdbc.WrappedConnection.createStatement(WrappedConnection.java:304)

          at org.hibernate.tool.hbm2ddl.DatabaseExporter.<init>(DatabaseExporter.java:54)

          at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:368)

          at org.hibernate.tool.hbm2ddl.SchemaExport.drop(SchemaExport.java:319)

          at org.hibernate.tool.hbm2ddl.SchemaExport.drop(SchemaExport.java:315)

          at org.hibernate.internal.SessionFactoryImpl.close(SessionFactoryImpl.java:1279)

          at org.hibernate.ejb.EntityManagerFactoryImpl.close(EntityManagerFactoryImpl.java:140)

          at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.stop(PersistenceUnitServiceImpl.java:98) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]

          at org.jboss.msc.service.ServiceControllerImpl$StopTask.stopService(ServiceControllerImpl.java:1911) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

          at org.jboss.msc.service.ServiceControllerImpl$StopTask.run(ServiceControllerImpl.java:1874) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_51]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_51]

          at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]

       

      13:31:21,461 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] HHH000230: Schema export complete

      13:31:21,461 INFO  [com.arjuna.ats.jbossatx] ARJUNA032018: Destroying TransactionManagerService

      13:31:21,461 INFO  [com.arjuna.ats.jbossatx] ARJUNA032014: Stopping transaction recovery manager

      13:31:21,491 INFO  [org.jboss.as.server.deployment] JBAS015877: Stopped deployment test.war in 69ms

      but this can also be an side affect of closing the server.

       

      With the remote profile i have also test output:

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

      Test set: org.jboss.test.test1.test.MemberRegistrationTest

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

      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 545.778 sec <<< FAILURE!

      org.jboss.test.test1.test.MemberRegistrationTest  Time elapsed: 0 sec  <<< ERROR!

      java.lang.RuntimeException: java.io.IOException: java.util.concurrent.ExecutionException: Operation failed

          at org.jboss.as.arquillian.container.ManagementClient.getWebUri(ManagementClient.java:130)

          at org.jboss.as.arquillian.container.ManagementClient.getProtocolMetaData(ManagementClient.java:155)

          at org.jboss.as.arquillian.container.CommonDeployableContainer.deploy(CommonDeployableContainer.java:145)

          at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:161)

          at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:128)

          at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.executeOperation(ContainerDeployController.java:271)

          at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.deploy(ContainerDeployController.java:127)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

          at java.lang.reflect.Method.invoke(Method.java:606)

          at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

          at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)

          at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)

          at org.jboss.arquillian.container.impl.client.ContainerDeploymentContextHandler.createDeploymentContext(ContainerDeploymentContextHandler.java:78)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

          at java.lang.reflect.Method.invoke(Method.java:606)

          at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

          at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

          at org.jboss.arquillian.container.impl.client.ContainerDeploymentContextHandler.createContainerContext(ContainerDeploymentContextHandler.java:57)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

          at java.lang.reflect.Method.invoke(Method.java:606)

          at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

          at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

          at org.jboss.arquillian.container.impl.client.container.DeploymentExceptionHandler.verifyExpectedExceptionDuringDeploy(DeploymentExceptionHandler.java:50)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

          at java.lang.reflect.Method.invoke(Method.java:606)

          at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

          at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

          at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)

          at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)

          at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)

          at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$1.perform(ContainerDeployController.java:95)

          at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$1.perform(ContainerDeployController.java:80)

          at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.forEachDeployment(ContainerDeployController.java:263)

          at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.forEachManagedDeployment(ContainerDeployController.java:239)

          at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.deployManaged(ContainerDeployController.java:79)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

          at java.lang.reflect.Method.invoke(Method.java:606)

          at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

          at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)

          at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)

          at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)

          at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)

          at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)

          at org.jboss.arquillian.container.test.impl.client.ContainerEventController.execute(ContainerEventController.java:101)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

          at java.lang.reflect.Method.invoke(Method.java:606)

          at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

          at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)

          at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)

          at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:75)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

          at java.lang.reflect.Method.invoke(Method.java:606)

          at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

          at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

          at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:60)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

          at java.lang.reflect.Method.invoke(Method.java:606)

          at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

          at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

          at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)

          at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)

          at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.beforeClass(EventTestRunnerAdaptor.java:80)

          at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:182)

          at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314)

          at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)

          at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:199)

          at org.junit.runners.ParentRunner.run(ParentRunner.java:309)

          at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:147)

          at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:35)

          at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:115)

          at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:97)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

          at java.lang.reflect.Method.invoke(Method.java:606)

          at org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103)

          at com.sun.proxy.$Proxy0.invoke(Unknown Source)

          at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150)

          at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91)

          at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)

      Caused by: java.io.IOException: java.util.concurrent.ExecutionException: Operation failed

          at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeForResult(AbstractModelControllerClient.java:129)

          at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:71)

          at org.jboss.as.arquillian.container.ManagementClient.executeForResult(ManagementClient.java:330)

          at org.jboss.as.arquillian.container.ManagementClient.readResource(ManagementClient.java:326)

          at org.jboss.as.arquillian.container.ManagementClient.readRootNode(ManagementClient.java:209)

          at org.jboss.as.arquillian.container.ManagementClient.getWebUri(ManagementClient.java:127)

          ... 95 more

      Caused by: java.util.concurrent.ExecutionException: Operation failed

          at org.jboss.threads.AsyncFutureTask.operationFailed(AsyncFutureTask.java:74)

          at org.jboss.threads.AsyncFutureTask.get(AsyncFutureTask.java:268)

          at org.jboss.as.controller.client.impl.AbstractDelegatingAsyncFuture.get(AbstractDelegatingAsyncFuture.java:100)

          at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeForResult(AbstractModelControllerClient.java:127)

          ... 100 more

      Caused by: org.jboss.remoting3.MessageCancelledException

          at org.xnio.streams.BufferPipeInputStream.checkFailure(BufferPipeInputStream.java:280)

          at org.xnio.streams.BufferPipeInputStream.read(BufferPipeInputStream.java:171)

          at org.jboss.remoting3.remote.InboundMessage$3.read(InboundMessage.java:131)

          at java.io.DataInputStream.readFully(DataInputStream.java:195)

          at java.io.DataInputStream.readUTF(DataInputStream.java:609)

          at java.io.DataInputStream.readUTF(DataInputStream.java:564)

          at org.jboss.dmr.StringModelValue.<init>(StringModelValue.java:51)

          at org.jboss.dmr.ModelNode.readExternal(ModelNode.java:1531)

          at org.jboss.dmr.ListModelValue.<init>(ListModelValue.java:65)

          at org.jboss.dmr.ModelNode.readExternal(ModelNode.java:1527)

          at org.jboss.dmr.ObjectModelValue.<init>(ObjectModelValue.java:62)

          at org.jboss.dmr.ModelNode.readExternal(ModelNode.java:1529)

          at org.jboss.dmr.ObjectModelValue.<init>(ObjectModelValue.java:62)

          at org.jboss.dmr.ModelNode.readExternal(ModelNode.java:1529)

          at org.jboss.dmr.ObjectModelValue.<init>(ObjectModelValue.java:62)

          at org.jboss.dmr.ModelNode.readExternal(ModelNode.java:1529)

          at org.jboss.dmr.ObjectModelValue.<init>(ObjectModelValue.java:62)

          at org.jboss.dmr.ModelNode.readExternal(ModelNode.java:1529)

          at org.jboss.dmr.ObjectModelValue.<init>(ObjectModelValue.java:62)

          at org.jboss.dmr.ModelNode.readExternal(ModelNode.java:1529)

          at org.jboss.dmr.ObjectModelValue.<init>(ObjectModelValue.java:62)

          at org.jboss.dmr.ModelNode.readExternal(ModelNode.java:1529)

          at org.jboss.as.controller.client.impl.AbstractModelControllerClient$1.handleRequest(AbstractModelControllerClient.java:169)

          at org.jboss.as.protocol.mgmt.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:255)

          at org.jboss.as.protocol.mgmt.AbstractMessageHandler.handleRequest(AbstractMessageHandler.java:220)

          at org.jboss.as.protocol.mgmt.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:114)

          at org.jboss.as.protocol.mgmt.ManagementChannelReceiver$1.handleMessage(ManagementChannelReceiver.java:58)

          at org.jboss.as.protocol.mgmt.ManagementChannelReceiver.handleMessage(ManagementChannelReceiver.java:86)

          at org.jboss.remoting3.remote.RemoteConnectionChannel$5.run(RemoteConnectionChannel.java:436)

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

          at java.lang.Thread.run(Thread.java:744)

       

       

      But using the default profile and running the project on the server everything works as expected. So Something goes wrong there. Eighter arquilian or the kepler tools are not working properly.

       

       

      Greetings,

       

      Dirk Gerrit Oort

        • 1. Re: Arquillian test in jboss tools
          Snjezana Peco Master

          You have to use an arquillian container that is compatible with a JBoss AS server.
          If you, for instance, want to run tests on JBoss AS 7.1.1, you would set the org.jboss.as:jboss-as-arquillian-container-remote and/or org.jboss.as:jboss-as-arquillian-container-managed artifact to the 7.1.1.Final version.

           

          The original test (the 7.2.0.Final version of the containers) can be run on JBoss EAP 6.1/6.2.

          1 of 1 people found this helpful
          • 2. Re: Arquillian test in jboss tools
            Dirk Gerrit Oort Newbie

            True, but having an property on the generation of the project that is called enterprise ( the jboss eap6 version ) and put it on false, in my view, it must run on the latest non enterprise edition, or at least put an comment in the readme.md that running on a different version of jboss the version field must be changed. From a tools perspective be helpful to the 'non experienced user' . Or the one that will experiment with arquilian, and not aware of this dependency.

            • 3. Re: Arquillian test in jboss tools
              Max Rydahl Andersen Master

              Dirk, this looks like a bug in the archetype if it is not using the right dependency.

               

              Did you actually target an JBoss AS 7 runtime in the wizard  ?

               

              If you didn't the logic chooses the latest version of the archetype available and the later ones does not support the enterprise true/false flag.

               

              if you did choose AS7, could you open a bug on Tools (JBoss Tools) - JBoss Issue Tracker please with the exact steps ?

              • 4. Re: Arquillian test in jboss tools
                Fred Bricon Novice

                The problem is <version.jboss.bom>1.0.7.Final</version.jboss.bom> references the JBoss AS 7.2.0.Final jars, as Snjeza mentioned. AS 7.2.0 was never released as a community runtime (but its jars are available in Maven Central). Instead it's bundled as JBoss EAP 6.1, Red Hat's commercial offering. JBoss AS 7.2.0 could be built from source, from the matching the git tag, but that's not really something people will do. So :

                - the archetype references a questionable JBoss BOM pom that doesn't support JBoss AS 7.1.1, even though the enterprise flag is set to false

                - Until a fixed archetype is released, you need to use a BOM pom that supports JBoss AS 7.1.1, i.e.  <version.jboss.bom>1.0.2.Final</version.jboss.bom>

                • 5. Re: Arquillian test in jboss tools
                  Dirk Gerrit Oort Newbie

                  Looking it over and over again, there is some confusion.

                   

                  Using from <new project><maven project> selecting the jboss-javaee6-webapp-archetype 7.1.3.Final

                  jboss_wrong_container.png

                  but the next screen gives:

                   

                  jboss_wrong_container_2.png

                   

                  And the pom.xml that is generated:

                   

                  gives:

                  <!-- JBoss dependency versions -->

                          <version.jboss.maven.plugin>7.4.Final</version.jboss.maven.plugin>

                   

                          <!-- Define the version of the JBoss BOMs we want to import to specify

                              tested stacks. -->

                          <version.jboss.bom>1.0.7.Final</version.jboss.bom>

                          <!-- Alternatively, comment out the above line, and un-comment the line

                              below to use version 1.0.4.Final-redhat-4 which is a release certified to

                              work with JBoss EAP 6. It requires you have access to the JBoss EAP 6

                              maven repository. -->

                          <!-- <version.jboss.bom>1.0.4.Final-redhat-4</version.jboss.bom>> -->

                   

                   

                  My conclusion was that this is the version to be used but it looks like that the <version.jboss.bom>1.0.7.Final</version.jboss.bom> points to the eap version and not to the 7.1.1.Final

                   

                  But the pom.xml gives an warning:

                   

                  jboss_wrong_container_3.png

                   

                  So where is the bug is it in the archetype or is it in the jboss.bom 1.0.7.Final

                  • 6. Re: Arquillian test in jboss tools
                    Fred Bricon Novice

                    The jboss-bom-enterprise property is the version of the BOM to use when enterprise is set to true, which is not your case

                     

                    One thing is for sure, the archetype is currently not compatible with AS 7.1, contrary to what's advertised in the first page.

                    The archetype should not use the JBoss AS 7.2 jars. Whether it should use the previous version of the BOM pom or the BOM should be fixed to not use 7.2 is debatable.

                     

                    Anyway, change the BOM version to <version.jboss.bom>1.0.2.Final</version.jboss.bom> and it should work.

                    • 7. Re: Arquillian test in jboss tools
                      Snjezana Peco Master

                      We would probably have to use the 1.0.2.Final bom version for the community archetype. Otherwise, as Dirk has mentioned, we create a community project that isn't compatible with any community servers.

                      • 9. Re: Arquillian test in jboss tools
                        Márcio Dall'Igna Newbie

                        I went through the same problem today!

                        I'm using the JBoss AS 7.1.1.Final

                        I compared with my old projects and noticed the change in the version of JBOSS.

                        The new project was:

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

                        <!-- JBoss dependency versions -->

                            <version.jboss.maven.plugin>7.4.Final</version.jboss.maven.plugin>

                         

                        <!-- Define the version of the JBoss BOMs we want to import to specify tested stacks. -->

                            <version.jboss.bom>1.0.7.Final</version.jboss.bom>

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

                        and I changed to:

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

                        <!-- JBoss dependency versions -->

                            <version.jboss.maven.plugin>7.1.1.Final</version.jboss.maven.plugin>

                         

                        <!-- Define the version of the JBoss BOMs we want to import to specify tested stacks. -->

                            <version.jboss.bom>1.0.2.Final</version.jboss.bom>

                         

                        And the Arquillian is working again!