title: Maven generated ear file fails during deploying weblogic server
body: <p>I use JDeveloper 12.1.2.0.0 with Oracle Weblogic Server. Java version is 1.7.0_15.
  I have got a project based on Oracle ADF. I have to mavenize it.
  First of all I click on deploy the application ear file has created and working well on the server.
  In my application there is Model and ViewController projects.
  To mavenize I've just created Maven POM for project to every projects and finally an Application POM to the application.
  The end product should be ear file to deploy on remote server with administration console so I modified a little the application POM (removed the Model and ViewController modules and then I could change the packaging from pom to ear).
  When I maven install all of them build has ended successfully.
  During deploying ear file to the Weblogic Server I got</p>
  
  <pre><code>java.lang.ClassNotFoundException: org.apache.myfaces.trinidad.webapp.ResourceServlet
  </code></pre>
  
  <p>I added these lines to my ViewController pom.xml:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.apache.myfaces.core&lt;/groupId&gt;
      &lt;artifactId&gt;myfaces-api&lt;/artifactId&gt;
      &lt;version&gt;2.2.4&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.apache.myfaces.core&lt;/groupId&gt;
      &lt;artifactId&gt;myfaces-impl&lt;/artifactId&gt;
      &lt;version&gt;2.2.4&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Deploying again I got this error and don't have idea what to do:</p>
  
  <pre><code>Caused by: java.lang.NullPointerException
  at weblogic.servlet.internal.WebAnnotationProcessor.processMultipartConfigAnnotation(WebAnnotationProcessor.java:286)
  at weblogic.servlet.internal.AnnotationProcessingManager.processAnnotationForClasses(AnnotationProcessingManager.java:169)
  at weblogic.servlet.internal.AnnotationProcessingManager.processAnnotations(AnnotationProcessingManager.java:114)
  at weblogic.servlet.internal.AnnotationProcessingManager.processAnnotationsOutsideWebFragment(AnnotationProcessingManager.java:141)
  at weblogic.servlet.internal.AnnotationProcessingManager.processAnnotations(AnnotationProcessingManager.java:102)
  at weblogic.servlet.internal.AnnotationProcessingManager.processAnnotations(AnnotationProcessingManager.java:79)
  at weblogic.servlet.tools.WARModule.processAnnotations(WARModule.java:491)
  at weblogic.servlet.tools.WARModule.processAnnotations(WARModule.java:578)
  at weblogic.servlet.tools.WARModule.merge(WARModule.java:526)
  at weblogic.application.compiler.ToolsModuleWrapper.merge(ToolsModuleWrapper.java:96)
  at weblogic.application.utils.CustomModuleManager.merge(CustomModuleManager.java:78)
  at weblogic.application.compiler.flow.MergeModuleFlow.compile(MergeModuleFlow.java:38)
  at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:70)
  at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
  at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:37)
  at weblogic.application.compiler.BaseMerger.merge(BaseMerger.java:20)
  at weblogic.application.compiler.flow.AppMergerFlow.mergeInput(AppMergerFlow.java:75)
  at weblogic.application.compiler.flow.AppMergerFlow.compile(AppMergerFlow.java:40)
  at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:70)
  at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
  at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:37)
  ... 75 more
  </code></pre>
  
  <p>By the way I compared the deployed (right click on application -> deploy) and created by maven ear file. I found some differences:
  Maven generated ear file contains Model-1.0-SNAPSHOT.jar in WEB-INF\lib\ altough deployed has got the Modell project's class files in WEB-INF\classes.</p>
  
  <p>Anyway when I update the dependecies section in pom.xml after first maven install nothing happens (it adds the new dependecies, but if I remove some of them after maven install it contains them. ?maven clean package?).</p>
  
  <p>Any help would be highly appreciated.</p>