title: Arquillian -> org.jboss.arquillian.container.spi.client.container.DeploymentException: Cannot deploy test.war
body: <p>I have a problem with my test call. I'm getting always this Exception an I didn't find a solution. Can anyone help my with this Exception ??
  I want to test a spring project in Arquillian container
  Here is my Deployments class</p>
  
  <pre><code>public final class Deployments {
  private Deployments() {
  }
  
  @Deployment
  
  public static JavaArchive createDeployment() {
  
  
  
      return ShrinkWrap.create(JavaArchive.class)
              .addClass(AutoTest.class)
              .addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
  
  }
  </code></pre>
  
  <p>and here is my test class</p>
  
  <pre><code>@RunWith(Arquillian.class)
  @ContextConfiguration(classes = {WebAppConfigTest.class})
  
  @WebAppConfiguration("src/test/webapp")
  
  @FixMethodOrder(MethodSorters.NAME_ASCENDING)
  
  public class AutoTest {
  
  @Autowired
   WebApplicationContext context;
  @Deployment
  public static Archive createTestArchive() {
  
      return Deployments.createDeployment();
  
  }
   @Test
  public void FindTest() throws Exception {
      mockMvc = MockMvcBuilders.webAppContextSetup(context).build();
      request = MockMvcRequestBuilders.get("/question/find/" + s).accept(MediaType.APPLICATION_JSON);
      res = mockMvc.perform(request).andReturn();
      System.out.println("****************************AfterFind: " + res.getResponse().getContentAsString());
  }
  </code></pre>
  
  <p>I got this Exception</p>
  
  <pre><code>org.jboss.arquillian.container.spi.client.container.DeploymentException: Cannot deploy test.war: {"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" =&gt; {"Operation step-1" =&gt; {"WFLYCTL0080: Failed services" =&gt; {"jboss.deployment.unit.\"test.war\".WeldStartService" =&gt; "Failed to start service
  Caused by: java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy"},"WFLYCTL0412: Required services that are not installed:" =&gt; ["jboss.deployment.unit.\"test.war\".component.\"org.jboss.weld.module.web.servlet.WeldTerminalListener\".WeldInstantiator","jboss.deployment.unit.\"test.war\".component.\"com.sun.faces.config.ConfigureListener\".WeldInstantiator","jboss.deployment.unit.\"test.war\".component.\"org.jboss.weld.module.web.servlet.WeldTerminalListener\".START","jboss.deployment.unit.\"test.war\".component.\"javax.faces.webapp.FacetTag\".START","jboss.undertow.deployment.default-server.default-host./test","jboss.deployment.unit.\"test.war\".component.\"com.sun.faces.config.ConfigureListener\".START","jboss.deployment.unit.\"test.war\".component.\"javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV\".WeldInstantiator","jboss.deployment.unit.\"test.war\".weld.weldClassIntrospector","jboss.deployment.unit.\"test.war\".component.\"javax.servlet.jsp.jstl.tlv.ScriptFreeTLV\".WeldInstantiator","jboss.deployment.unit.\"test.war\".component.\"javax.servlet.jsp.jstl.tlv.ScriptFreeTLV\".START","jboss.deployment.unit.\"test.war\".component.\"javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV\".START","jboss.undertow.deployment.default-server.default-host./test.UndertowDeploymentInfoService","jboss.deployment.unit.\"test.war\".component.\"javax.faces.webapp.FacetTag\".WeldInstantiator","jboss.deployment.unit.\"test.war\".component.\"org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner\".START","jboss.deployment.unit.\"test.war\".ee.ComponentRegistry","jboss.deployment.unit.\"test.war\".component.\"org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner\".WeldInstantiator","jboss.deployment.unit.\"test.war\".component.\"org.jboss.weld.module.web.servlet.WeldInitialListener\".WeldInstantiator","jboss.deployment.unit.\"test.war\".component.\"org.jboss.weld.module.web.servlet.WeldInitialListener\".START"],"WFLYCTL0180: Services with missing/unavailable dependencies" =&gt; ["jboss.deployment.unit.\"test.war\".component.\"javax.servlet.jsp.jstl.tlv.ScriptFreeTLV\".START is missing [jboss.deployment.unit.\"test.war\".component.\"javax.servlet.jsp.jstl.tlv.ScriptFreeTLV\".WeldInstantiator]","jboss.deployment.unit.\"test.war\".component.\"javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV\".START is missing [jboss.deployment.unit.\"test.war\".component.\"javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV\".WeldInstantiator]","jboss.deployment.unit.\"test.war\".component.\"org.jboss.weld.module.web.servlet.WeldTerminalListener\".START is missing [jboss.deployment.unit.\"test.war\".component.\"org.jboss.weld.module.web.servlet.WeldTerminalListener\".WeldInstantiator]","jboss.deployment.unit.\"test.war\".component.\"org.jboss.weld.module.web.servlet.WeldInitialListener\".START is missing [jboss.deployment.unit.\"test.war\".component.\"org.jboss.weld.module.web.servlet.WeldInitialListener\".WeldInstantiator]","jboss.undertow.deployment.default-server.default-host./test.UndertowDeploymentInfoService is missing [jboss.deployment.unit.\"test.war\".ee.ComponentRegistry]","jboss.deployment.unit.\"test.war\".component.\"javax.faces.webapp.FacetTag\".START is missing [jboss.deployment.unit.\"test.war\".component.\"javax.faces.webapp.FacetTag\".WeldInstantiator]","jboss.deployment.unit.\"test.war\".component.\"com.sun.faces.config.ConfigureListener\".START is missing [jboss.deployment.unit.\"test.war\".component.\"com.sun.faces.config.ConfigureListener\".WeldInstantiator]","jboss.deployment.unit.\"test.war\".ee.ComponentRegistry is missing [jboss.deployment.unit.\"test.war\".weld.weldClassIntrospector]","jboss.undertow.deployment.default-server.default-host./test is missing [jboss.deployment.unit.\"test.war\".component.\"javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV\".START, jboss.deployment.unit.\"test.war\".component.\"org.jboss.weld.module.web.servlet.WeldInitialListener\".START, jboss.deployment.unit.\"test.war\".component.\"org.jboss.weld.module.web.servlet.WeldTerminalListener\".START, jboss.undertow.deployment.default-server.default-host./test.UndertowDeploymentInfoService, jboss.deployment.unit.\"test.war\".component.\"javax.servlet.jsp.jstl.tlv.ScriptFreeTLV\".START, jboss.deployment.unit.\"test.war\".component.\"javax.faces.webapp.FacetTag\".START, jboss.deployment.unit.\"test.war\".component.\"org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner\".START, jboss.deployment.unit.\"test.war\".component.\"com.sun.faces.config.ConfigureListener\".START]","jboss.deployment.unit.\"test.war\".component.\"org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner\".START is missing [jboss.deployment.unit.\"test.war\".component.\"org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner\".WeldInstantiator]","jboss.deployment.unit.\"test.war\".WeldEndInitService is missing [jboss.deployment.unit.\"test.war\".component.\"javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV\".START, jboss.deployment.unit.\"test.war\".component.\"org.jboss.weld.module.web.servlet.WeldInitialListener\".START, jboss.deployment.unit.\"test.war\".component.\"org.jboss.weld.module.web.servlet.WeldTerminalListener\".START, jboss.deployment.unit.\"test.war\".component.\"javax.servlet.jsp.jstl.tlv.ScriptFreeTLV\".START, jboss.deployment.unit.\"test.war\".component.\"javax.faces.webapp.FacetTag\".START, jboss.deployment.unit.\"test.war\".component.\"org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner\".START, jboss.deployment.unit.\"test.war\".component.\"com.sun.faces.config.ConfigureListener\".START]","jboss.deployment.unit.\"test.war\".deploymentCompleteService is missing [jboss.undertow.deployment.default-server.default-host./test, jboss.deployment.unit.\"test.war\".component.\"javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV\".START, jboss.deployment.unit.\"test.war\".component.\"org.jboss.weld.module.web.servlet.WeldInitialListener\".START, jboss.deployment.unit.\"test.war\".component.\"org.jboss.weld.module.web.servlet.WeldTerminalListener\".START, jboss.deployment.unit.\"test.war\".component.\"javax.servlet.jsp.jstl.tlv.ScriptFreeTLV\".START, jboss.deployment.unit.\"test.war\".component.\"javax.faces.webapp.FacetTag\".START, jboss.deployment.unit.\"test.war\".component.\"org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner\".START, jboss.deployment.unit.\"test.war\".component.\"com.sun.faces.config.ConfigureListener\".START]"]}}}
  </code></pre>
  
  <p>I hope that someone could help me</p>