oskopek / carcv

CarCV - A car recognizing and speed calculating platform
Apache License 2.0
8 stars 13 forks source link

Fix the RolesIT test #42

Closed oskopek closed 9 years ago

oskopek commented 9 years ago

Currently fails on JBossAS 7.1.1.Final and WildFly 8.2.0.Final with:

Running org.carcv.web.test.RolesIT
19:00:33,121 INFO  [org.jboss.as.repository] (management-handler-thread - 2) JBAS014900: Content added at location /home/oskopek/dev/jboss/jboss-as-7/standalone/data/content/ce/acd65891263f31fda8e84d74368b03a1669e61/content
19:00:33,127 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015876: Starting deployment of "carcv-webapp.war"
19:00:35,989 INFO  [org.jboss.as.jpa] (MSC service thread 1-5) JBAS011401: Read persistence.xml for carcv_test
19:00:36,049 INFO  [org.jboss.weld.deployer] (MSC service thread 1-3) JBAS016002: Processing weld deployment carcv-webapp.war
19:00:36,051 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-3) JNDI bindings for session bean named StorageBean in deployment unit deployment "carcv-webapp.war" are as follows:

        java:global/carcv-webapp/StorageBean!org.carcv.web.beans.StorageBean
        java:app/carcv-webapp/StorageBean!org.carcv.web.beans.StorageBean
        java:module/StorageBean!org.carcv.web.beans.StorageBean
        java:global/carcv-webapp/StorageBean
        java:app/carcv-webapp/StorageBean
        java:module/StorageBean

19:00:36,053 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-3) JNDI bindings for session bean named RecognizerBean in deployment unit deployment "carcv-webapp.war" are as follows:

        java:global/carcv-webapp/RecognizerBean!org.carcv.web.beans.RecognizerBean
        java:app/carcv-webapp/RecognizerBean!org.carcv.web.beans.RecognizerBean
        java:module/RecognizerBean!org.carcv.web.beans.RecognizerBean
        java:global/carcv-webapp/RecognizerBean
        java:app/carcv-webapp/RecognizerBean
        java:module/RecognizerBean

19:00:36,054 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-3) JNDI bindings for session bean named EntryBean in deployment unit deployment "carcv-webapp.war" are as follows:

        java:global/carcv-webapp/EntryBean!org.carcv.web.beans.EntryBean
        java:app/carcv-webapp/EntryBean!org.carcv.web.beans.EntryBean
        java:module/EntryBean!org.carcv.web.beans.EntryBean
        java:global/carcv-webapp/EntryBean
        java:app/carcv-webapp/EntryBean
        java:module/EntryBean

19:00:36,125 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-1) JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)
19:00:36,128 INFO  [org.jboss.weld.deployer] (MSC service thread 1-1) JBAS016005: Starting Services for CDI deployment: carcv-webapp.war
19:00:36,136 INFO  [org.jboss.as.jpa] (MSC service thread 1-8) JBAS011402: Starting Persistence Unit Service 'carcv-webapp.war#carcv_test'
19:00:36,138 INFO  [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-8) HHH000204: Processing PersistenceUnitInfo [
        name: carcv_test
        ...]
19:00:36,183 INFO  [org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator] (MSC service thread 1-8) HHH000130: Instantiating explicit connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
19:00:36,192 INFO  [org.hibernate.dialect.Dialect] (MSC service thread 1-8) HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
19:00:36,193 WARN  [org.hibernate.dialect.H2Dialect] (MSC service thread 1-8) HHH000431: Unable to determine H2 database version, certain features may not work
19:00:36,193 INFO  [org.hibernate.engine.jdbc.internal.LobCreatorBuilder] (MSC service thread 1-8) HHH000423: Disabling contextual LOB creation as JDBC driver reported JDBC version [3] less than 4
19:00:36,195 INFO  [org.hibernate.engine.transaction.internal.TransactionFactoryInitiator] (MSC service thread 1-8) HHH000268: Transaction strategy: org.hibernate.engine.transaction.internal.jta.CMTTransactionFactory
19:00:36,196 INFO  [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (MSC service thread 1-8) HHH000397: Using ASTQueryTranslatorFactory
19:00:36,225 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-8) HHH000227: Running hbm2ddl schema export
19:00:36,227 INFO  [stdout] (MSC service thread 1-8) Hibernate: 
19:00:36,227 INFO  [stdout] (MSC service thread 1-8)     alter table FileEntry_FileCarImage 
19:00:36,227 INFO  [stdout] (MSC service thread 1-8)         drop constraint FKAEA5110CC87BC980
19:00:36,227 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-8) HHH000389: Unsuccessful: alter table FileEntry_FileCarImage drop constraint FKAEA5110CC87BC980
19:00:36,228 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-8) Table "FILEENTRY_FILECARIMAGE" not found; SQL statement:

    alter table FileEntry_FileCarImage 
        drop constraint FKAEA5110CC87BC980 [42102-161]
19:00:36,228 INFO  [stdout] (MSC service thread 1-8) Hibernate: 
19:00:36,229 INFO  [stdout] (MSC service thread 1-8)     alter table FileEntry_FileCarImage 
19:00:36,229 INFO  [stdout] (MSC service thread 1-8)         drop constraint FKAEA5110C141C352B
19:00:36,229 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-8) HHH000389: Unsuccessful: alter table FileEntry_FileCarImage drop constraint FKAEA5110C141C352B
19:00:36,230 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-8) Table "FILEENTRY_FILECARIMAGE" not found; SQL statement:

    alter table FileEntry_FileCarImage 
        drop constraint FKAEA5110C141C352B [42102-161]
19:00:36,230 INFO  [stdout] (MSC service thread 1-8) Hibernate: 
19:00:36,230 INFO  [stdout] (MSC service thread 1-8)     drop table FileCarImage if exists
19:00:36,231 INFO  [stdout] (MSC service thread 1-8) Hibernate: 
19:00:36,231 INFO  [stdout] (MSC service thread 1-8)     drop table FileEntry if exists
19:00:36,231 INFO  [stdout] (MSC service thread 1-8) Hibernate: 
19:00:36,231 INFO  [stdout] (MSC service thread 1-8)     drop table FileEntry_FileCarImage if exists
19:00:36,232 INFO  [stdout] (MSC service thread 1-8) Hibernate: 
19:00:36,232 INFO  [stdout] (MSC service thread 1-8)     drop sequence hibernate_sequence
19:00:36,232 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-8) HHH000389: Unsuccessful: drop sequence hibernate_sequence
19:00:36,233 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-8) Sequence "HIBERNATE_SEQUENCE" not found; SQL statement:

    drop sequence hibernate_sequence [90036-161]
19:00:36,233 INFO  [stdout] (MSC service thread 1-8) Hibernate: 
19:00:36,233 INFO  [stdout] (MSC service thread 1-8)     create table FileCarImage (
19:00:36,234 INFO  [stdout] (MSC service thread 1-8)         id bigint not null,
19:00:36,234 INFO  [stdout] (MSC service thread 1-8)         pathStr varchar(255),
19:00:36,234 INFO  [stdout] (MSC service thread 1-8)         primary key (id)
19:00:36,234 INFO  [stdout] (MSC service thread 1-8)     )
19:00:36,235 INFO  [stdout] (MSC service thread 1-8) Hibernate: 
19:00:36,235 INFO  [stdout] (MSC service thread 1-8)     create table FileEntry (
19:00:36,236 INFO  [stdout] (MSC service thread 1-8)         id bigint not null,
19:00:36,236 INFO  [stdout] (MSC service thread 1-8)         city varchar(255),
19:00:36,236 INFO  [stdout] (MSC service thread 1-8)         country varchar(255),
19:00:36,236 INFO  [stdout] (MSC service thread 1-8)         latitude double,
19:00:36,237 INFO  [stdout] (MSC service thread 1-8)         longitude double,
19:00:36,237 INFO  [stdout] (MSC service thread 1-8)         postalCode varchar(255),
19:00:36,237 INFO  [stdout] (MSC service thread 1-8)         referenceNumber integer,
19:00:36,237 INFO  [stdout] (MSC service thread 1-8)         street varchar(255),
19:00:36,238 INFO  [stdout] (MSC service thread 1-8)         streetNumber integer,
19:00:36,238 INFO  [stdout] (MSC service thread 1-8)         origin varchar(255),
19:00:36,238 INFO  [stdout] (MSC service thread 1-8)         text varchar(255),
19:00:36,238 INFO  [stdout] (MSC service thread 1-8)         speed double,
19:00:36,239 INFO  [stdout] (MSC service thread 1-8)         unit integer,
19:00:36,239 INFO  [stdout] (MSC service thread 1-8)         timestamp timestamp,
19:00:36,239 INFO  [stdout] (MSC service thread 1-8)         primary key (id)
19:00:36,239 INFO  [stdout] (MSC service thread 1-8)     )
19:00:36,240 INFO  [stdout] (MSC service thread 1-8) Hibernate: 
19:00:36,240 INFO  [stdout] (MSC service thread 1-8)     create table FileEntry_FileCarImage (
19:00:36,241 INFO  [stdout] (MSC service thread 1-8)         FileEntry_id bigint not null,
19:00:36,241 INFO  [stdout] (MSC service thread 1-8)         carImages_id bigint not null,
19:00:36,241 INFO  [stdout] (MSC service thread 1-8)         unique (carImages_id)
19:00:36,242 INFO  [stdout] (MSC service thread 1-8)     )
19:00:36,242 INFO  [stdout] (MSC service thread 1-8) Hibernate: 
19:00:36,242 INFO  [stdout] (MSC service thread 1-8)     alter table FileEntry_FileCarImage 
19:00:36,243 INFO  [stdout] (MSC service thread 1-8)         add constraint FKAEA5110CC87BC980 
19:00:36,243 INFO  [stdout] (MSC service thread 1-8)         foreign key (carImages_id) 
19:00:36,243 INFO  [stdout] (MSC service thread 1-8)         references FileCarImage
19:00:36,244 INFO  [stdout] (MSC service thread 1-8) Hibernate: 
19:00:36,245 INFO  [stdout] (MSC service thread 1-8)     alter table FileEntry_FileCarImage 
19:00:36,245 INFO  [stdout] (MSC service thread 1-8)         add constraint FKAEA5110C141C352B 
19:00:36,245 INFO  [stdout] (MSC service thread 1-8)         foreign key (FileEntry_id) 
19:00:36,246 INFO  [stdout] (MSC service thread 1-8)         references FileEntry
19:00:36,247 INFO  [stdout] (MSC service thread 1-8) Hibernate: 
19:00:36,247 INFO  [stdout] (MSC service thread 1-8)     create sequence hibernate_sequence start with 1 increment by 1
19:00:36,247 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-8) HHH000230: Schema export complete
19:00:36,250 INFO  [org.jboss.weld.deployer] (MSC service thread 1-4) JBAS016008: Starting weld service for deployment carcv-webapp.war
19:00:36,342 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.deployment.unit."carcv-webapp.war".WeldService: org.jboss.msc.service.StartException in service jboss.deployment.unit."carcv-webapp.war".WeldService: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [HttpServletRequest] with qualifiers [@Default] at injection point [[field] @Inject private org.carcv.web.test.RolesIT.adminRequest]
        at org.jboss.as.weld.services.WeldService.start(WeldService.java:83)
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [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_67]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_67]
        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_67]
Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [HttpServletRequest] with qualifiers [@Default] at injection point [[field] @Inject private org.carcv.web.test.RolesIT.adminRequest]
        at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:275)
        at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:244)
        at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:107)
        at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:127)
        at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:346)
        at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:331)
        at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:366)
        at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:83)
        at org.jboss.as.weld.services.WeldService.start(WeldService.java:76)
        ... 5 more

19:00:36,552 INFO  [org.jboss.as.server] (management-handler-thread - 2) JBAS015870: Deploy of deployment "carcv-webapp.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"carcv-webapp.war\".WeldService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"carcv-webapp.war\".WeldService: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [HttpServletRequest] with qualifiers [@Default] at injection point [[field] @Inject private org.carcv.web.test.RolesIT.adminRequest]"}}
19:00:36,557 INFO  [org.jboss.as.jpa] (MSC service thread 1-4) JBAS011403: Stopping Persistence Unit Service 'carcv-webapp.war#carcv_test'
19:00:36,559 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-4) HHH000227: Running hbm2ddl schema export
19:00:36,560 INFO  [stdout] (MSC service thread 1-4) Hibernate: 
19:00:36,560 INFO  [stdout] (MSC service thread 1-4)     alter table FileEntry_FileCarImage 
19:00:36,561 INFO  [stdout] (MSC service thread 1-4)         drop constraint FKAEA5110CC87BC980
19:00:36,562 INFO  [stdout] (MSC service thread 1-4) Hibernate: 
19:00:36,562 INFO  [stdout] (MSC service thread 1-4)     alter table FileEntry_FileCarImage 
19:00:36,562 INFO  [stdout] (MSC service thread 1-4)         drop constraint FKAEA5110C141C352B
19:00:36,563 INFO  [stdout] (MSC service thread 1-4) Hibernate: 
19:00:36,563 INFO  [stdout] (MSC service thread 1-4)     drop table FileCarImage if exists
19:00:36,564 INFO  [stdout] (MSC service thread 1-4) Hibernate: 
19:00:36,564 INFO  [stdout] (MSC service thread 1-4)     drop table FileEntry if exists
19:00:36,565 INFO  [stdout] (MSC service thread 1-4) Hibernate: 
19:00:36,565 INFO  [stdout] (MSC service thread 1-4)     drop table FileEntry_FileCarImage if exists
19:00:36,566 INFO  [stdout] (MSC service thread 1-4) Hibernate: 
19:00:36,566 INFO  [stdout] (MSC service thread 1-4)     drop sequence hibernate_sequence
19:00:36,567 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-4) HHH000230: Schema export complete
19:00:36,601 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment carcv-webapp.war in 49ms
19:00:36,602 INFO  [org.jboss.as.controller] (management-handler-thread - 2) JBAS014774: Service status report
JBAS014777:   Services which failed to start:      service jboss.deployment.unit."carcv-webapp.war".WeldService: org.jboss.msc.service.StartException in service jboss.deployment.unit."carcv-webapp.war".WeldService: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [HttpServletRequest] with qualifiers [@Default] at injection point [[field] @Inject private org.carcv.web.test.RolesIT.adminRequest]

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 6.531 sec <<< FAILURE! - in org.carcv.web.test.RolesIT
org.carcv.web.test.RolesIT  Time elapsed: 6.531 sec  <<< ERROR!
org.jboss.arquillian.container.spi.client.container.DeploymentException: Could not deploy to container: {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"carcv-webapp.war\".WeldService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"carcv-webapp.war\".WeldService: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [HttpServletRequest] with qualifiers [@Default] at injection point [[field] @Inject private org.carcv.web.test.RolesIT.adminRequest]"}}
        at org.jboss.as.arquillian.container.ArchiveDeployer.deploy(ArchiveDeployer.java:74)
        at org.jboss.as.arquillian.container.CommonDeployableContainer.deploy(CommonDeployableContainer.java:148)
        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.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.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.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:84)
        at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
        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:65)
        at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
        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.JUnit4Provider.execute(JUnit4Provider.java:264)
        at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
        at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
        at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
        at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
        at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
Caused by: java.lang.Exception: {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"carcv-webapp.war\".WeldService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"carcv-webapp.war\".WeldService: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [HttpServletRequest] with qualifiers [@Default] at injection point [[field] @Inject private org.carcv.web.test.RolesIT.adminRequest]"}}
        at org.jboss.as.controller.client.helpers.standalone.impl.ServerDeploymentPlanResultFuture.getActionResult(ServerDeploymentPlanResultFuture.java:134)
        at org.jboss.as.controller.client.helpers.standalone.impl.ServerDeploymentPlanResultFuture.getResultFromNode(ServerDeploymentPlanResultFuture.java:123)
        at org.jboss.as.controller.client.helpers.standalone.impl.ServerDeploymentPlanResultFuture.get(ServerDeploymentPlanResultFuture.java:85)
        at org.jboss.as.controller.client.helpers.standalone.impl.ServerDeploymentPlanResultFuture.get(ServerDeploymentPlanResultFuture.java:42)
        at org.jboss.as.arquillian.container.ArchiveDeployer.executeDeploymentPlan(ArchiveDeployer.java:91)
        at org.jboss.as.arquillian.container.ArchiveDeployer.deploy(ArchiveDeployer.java:58)
        at org.jboss.as.arquillian.container.CommonDeployableContainer.deploy(CommonDeployableContainer.java:148)
        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.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.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.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:84)
        at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
        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:65)
        at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
        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.JUnit4Provider.execute(JUnit4Provider.java:264)
        at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
        at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
        at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
        at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
        at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)

19:00:36.738 [main] DEBUG org.jboss.as.protocol - cancelled operation (499921181) attachment: (org.jboss.as.controller.client.impl.AbstractModelControllerClient$OperationExecutionContext@6d3fb627) this: org.jboss.as.protocol.mgmt.ManagementChannelHandler@71cff279.

Results :

Tests in error: 
  RolesIT.org.carcv.web.test.RolesIT » Deployment Could not deploy to container:...
oskopek commented 9 years ago

Wasn't able to reproduce on Wildfly 8.2.0.Final or Wildfly 9.0.1.Final, reproduced on JBoss AS 7.1.1.Final and JBoss EAP 6.4.0.GA. This is an issue with CDI 1.0 which was fixed in CDI 1.1 (i.e. issue in Weld).

oskopek commented 9 years ago

Closing after PR #44 as wontfix. CDI 1.0 doesn't have a producer that could Inject the HttpServletRequest.