title: Cannot deploy EAR on WildFly 8.2.1.Final
body: <p>I'm having the following error on Wildfly when trying to deploy an EAR:</p>
  
  <pre><code>[standalone@IP:9990 /] deploy /opt/banco_ear.ear
  {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" =&gt; {"Operation step-2" =&gt; {"JBAS014671: Failed services" =&gt; {"jboss.deployment.unit.\"banco_ear.ear\".STRUCTURE" =&gt; "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"banco_ear.ear\".STRUCTURE: JBAS018733: Failed to process phase STRUCTURE of deployment \"banco_ear.ear\"
      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS018740: Failed to mount deployment content
      Caused by: java.io.IOException: VFS000015: Could not create directory for original name 'content' after 10 attempts"}}}}
  </code></pre>
  
  <p>The EAR is generated by Intellij IDEA and I fix all of the dependencies. I'm new with remote deployments, and I find it very difficult.</p>
  
  <p>Here is my application.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;application xmlns="http://java.sun.com/xml/ns/javaee"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_6.xsd"
               version="6"&gt;
  
      &lt;module id="banco-Web"&gt;
          &lt;web&gt;
              &lt;web-uri&gt;web.war&lt;/web-uri&gt;
              &lt;context-root&gt;bancoWeb&lt;/context-root&gt;
          &lt;/web&gt;
      &lt;/module&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p>What is wrong?</p>
  
  <p>Thank's in advance.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>When I run jboss-cli as wildfly user and try to deploy the application (that in local wildfly run's perfectly), the CLI throws the next exception:</p>
  
  <pre><code>[standalone@IP:9990 /] deploy /opt/prueba_ear.ear
  {"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" =&gt; {"Operation step-2" =&gt; {"WFLYCTL0080: Failed services" =&gt; {"jboss.deployment.unit.\"prueba_ear.ear\".WeldStartService" =&gt; "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"prueba_ear.ear\".WeldStartService: Failed to start service
      Caused by: org.jboss.weld.exceptions.DefinitionException: Exception List with 1 exceptions:
  Exception 0 :
  javax.enterprise.event.ObserverException
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
      at java.lang.Class.newInstance(Class.java:442)
      at org.jboss.weld.security.NewInstanceAction.run(NewInstanceAction.java:33)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.weld.injection.Exceptions.rethrowException(Exceptions.java:40)
      at org.jboss.weld.injection.Exceptions.rethrowException(Exceptions.java:78)
      at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:96)
      at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:78)
      at org.jboss.weld.injection.MethodInvocationStrategy$SimpleMethodInvocationStrategy.invoke(MethodInvocationStrategy.java:129)
      at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:306)
      at org.jboss.weld.event.ExtensionObserverMethodImpl.sendEvent(ExtensionObserverMethodImpl.java:121)
      at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:284)
      at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:262)
      at org.jboss.weld.event.ObserverNotifier.notifySyncObservers(ObserverNotifier.java:271)
      at org.jboss.weld.event.ObserverNotifier.notify(ObserverNotifier.java:260)
      at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:154)
      at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:148)
      at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:54)
      at org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:42)
      at org.jboss.weld.bootstrap.events.AfterBeanDiscoveryImpl.fire(AfterBeanDiscoveryImpl.java:61)
      at org.jboss.weld.bootstrap.WeldStartup.deployBeans(WeldStartup.java:420)
      at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:83)
      at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:93)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)
  Caused by: java.lang.IllegalAccessError: tried to access method com.sun.faces.flow.FlowCDIContext.&lt;init&gt;(Ljava/util/Map;)V from class com.sun.faces.flow.FlowCDIExtension
      at com.sun.faces.flow.FlowCDIExtension.afterBeanDiscovery(FlowCDIExtension.java:76)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:497)
      at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:88)
      ... 21 more
  "}}}}
  </code></pre>