title: ClassNotFoundException from Maven Dependency
body: <p>I am working on a Maven project in Eclipse.</p>
  
  <p>I added a maven dependency to my project like below (this dependency is located in my local maven repository):</p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;j2ee&lt;/groupId&gt;
    &lt;artifactId&gt;j2ee&lt;/artifactId&gt;
    &lt;version&gt;1.4&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>In the package explorer, I can see that the correct classes are added, and I don't get any errors when referencing the classes in my code.</p>
  
  <p>However, when I try to add the project to my Tomcat 7 server running on localhost, I get the following error on server startup:</p>
  
  <pre><code>java.lang.ClassNotFoundException: javax.resource.cci.ConnectionSpec
  </code></pre>
  
  <p>When I look in <code>wtpwebapps/myproject/WEB-INF/lib</code> I can see that the JAR file containing the above class is there, so I don't understand why I'm getting a <code>ClassNotFoundException</code> on this class.</p>