Skip to end of metadata
Go to start of metadata

Container Injection Support Matrix

@EJB @EJB (no-interface) @Inject (CDI) @Resource @PersistenceContext / @PersistenceUnit

Note: Widfly 8.1 does not ship an 'uber-jar' version like GlassFish 3.1.2 Embedded Examples. We actually need to download automatically (see example below) or manually the server

Configuration

The profile below,assumes that you have already defined basic Arquillian dependencies on your pom, as indicated in the Getting Started Guide. When used  the defined plugins will perform the following

  • Download and unzip under the /target directory a fresh copy of Wildly 8.1, that will be used as a managed-container to run the tests.
  • Configure the maven-surefire plugin to the above directory.
Labels:
wildfly wildfly Delete
wildfly81 wildfly81 Delete
managed managed Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Mar 15, 2016

    I tried your configuration but I always get following error. 

    I deploy an empty war file without any classes which I have build with arquillian / shrinkwrap. I also have an maven dependency for JSF in my pom.

    Do you have any idea where the problem could be? I can use same configuration without a problem in the embedded glassfish server.

    Thank you in advance for your help.

    Caused by: java.util.ServiceConfigurationError: javax.servlet.ServletContainerInitializer: Provider com.sun.faces.config.FacesInitializer not found
        at java.util.ServiceLoader.fail(ServiceLoader.java:239) [rt.jar:1.8.0_45]
        at java.util.ServiceLoader.access$300(ServiceLoader.java:185) [rt.jar:1.8.0_45]
        at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:372) [rt.jar:1.8.0_45]
        at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404) [rt.jar:1.8.0_45]
        at java.util.ServiceLoader$1.next(ServiceLoader.java:480) [rt.jar:1.8.0_45]
        at org.wildfly.extension.undertow.deployment.ServletContainerInitializerDeploymentProcessor.deploy(ServletContainerInitializerDeploymentProcessor.java:112)
        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.2.1.Final.jar:8.2.1.Final]