title: cannot find tag library descriptor for spring framework in maven eclipse project
body: <p>The following three lines at the top of documents.jsp throw "cannot find tag library descriptor for ..." errors in the spring framework application from <a href="http://viralpatel.net/blogs/tutorial-save-get-blob-object-spring-3-mvc-hibernate/" rel="nofollow">this tutorial</a>, which uses eclipse and maven:  </p>
  
  <pre><code>&lt;%@ taglib uri="http://www.springframework.org/tags"  prefix="spring"%&gt;  
  &lt;%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%&gt;  
  &lt;%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%&gt;  
  </code></pre>
  
  <p>My understanding is that the maven plugin for eclipse should manage the download of these libraries automatically, so I checked to make sure that the following are included in pom.xml:  </p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;org.springframework&lt;/groupId&gt;
    &lt;artifactId&gt;spring-webmvc&lt;/artifactId&gt;
    &lt;version&gt;${org.springframework.version}&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;properties&gt;
    &lt;org.springframework.version&gt;3.0.2.RELEASE&lt;/org.springframework.version&gt;
    &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
  &lt;/properties&gt;  
  </code></pre>
  
  <p>So how do I fix my application to enable the required dependencies to be available?  I want to avoid having to do it manually, because I was under the impression that maven should manage this.  Is there some way that I need to manipulate maven?  The application apparently worked when it was tested for the tutorial.  </p>
  
  <h2>EDIT:</h2>
  
  <p>I converted my eclipse project to a maven project and then right clicked on the eclipse project and chose Maven>Update Project.  This did nothing to fix the error that still remains from my original posting above, but it also added the following new error:  </p>
  
  <pre><code>Missing artifact javax.transaction:jta:jar:1.0.1B  
  </code></pre>
  
  <p>Which is now thrown by the second line of pom.xml, which reads as follows:  </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
  </code></pre>
  
  <h2>SECOND EDIT:</h2>
  
  <p>When I try to run as..run on server, I get the following error in a dialog box:  </p>
  
  <pre><code>'Publishing to Tomcat v7.0 Server at localhost...' has encountered a problem.
  
  Error reading file D:\mypath\.m2\repository\javax\transaction\jta\1.0.1B\jta-1.0.1B.jar
  D:\mypath\.m2\repository\javax\transaction\jta\1.0.1B\jta-1.0.1B.jar (The system cannot find the file specified)  
  </code></pre>
  
  <p>I even set "update Maven projects on startup" in Window>preferences>Maven and then closed and restarted eclipse, but the problem persists.</p>