title: ClassNotFoundException for maven provided dependencies
body: <p>I have a web application that depends on another maven project that has some provided dependencies in its pom file.</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.codehaus.jackson&lt;/groupId&gt;
      &lt;artifactId&gt;jackson-mapper-asl&lt;/artifactId&gt;
      &lt;version&gt;1.9.12&lt;/version&gt;
      &lt;scope&gt;provided&lt;/scope&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;org.codehaus.jackson&lt;/groupId&gt;
      &lt;artifactId&gt;jackson-jaxrs&lt;/artifactId&gt;
      &lt;version&gt;1.9.12&lt;/version&gt;
      &lt;scope&gt;provided&lt;/scope&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>When I deploy my war to JBoss, I get ClassNotFoundExceptions for JsonSerializer and Deserializer which are in the jackson-mapper-asl jar.</p>
  
  <pre><code>Caused by: java.lang.ClassNotFoundException: org.codehaus.jackson.map.JsonDeserializer from [Module "deployment.biz.modit.tit.gop.education.teacherportlets.createtest-0.0.1-SNAPSHOT.war:main" from Service Module Loader]
  at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.1.GA]
  at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]
  at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]
  at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]
  at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]
  ... 26 more
  </code></pre>
  
  <p>If I'm not mistaken provided means that the runtime or in my case application server will provide the jar. The jackson-mapper-asl jar is installed on the JBoss server as a module. I thought the problem was caused by mismatching version numbers but updating the jars in the jboss modules and updating the module.xml-s didn't help. I tried deploying it copying it into the deployments folder because it helped before with the ojdbc driver but that didn't help either. Could you suggest something?</p>