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


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.
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 [rt.jar:1.8.0_45]
        at java.util.ServiceLoader.access$300( [rt.jar:1.8.0_45]
        at java.util.ServiceLoader$LazyIterator.nextService( [rt.jar:1.8.0_45]
        at java.util.ServiceLoader$ [rt.jar:1.8.0_45]
        at java.util.ServiceLoader$ [rt.jar:1.8.0_45]
        at org.wildfly.extension.undertow.deployment.ServletContainerInitializerDeploymentProcessor.deploy(
        at [wildfly-server-8.2.1.Final.jar:8.2.1.Final]