Java – Jars not copied to Tomcat’s lib folder


I am doing some basic spring stuff and stuck at some point.
I am getting ClassNotFoundException whenever I deploy my application on Tomcat.

I observed that the jars are not copied to Tomcats lib folder.
When I copied the jars manually to Tomcats lib folder it works fine.

Please let me know if I am making any blunder.

PS – I am using Spring tool suite 2.6.0,Tomcat 6 and its a Maven project.


Best Solution

Go to "Project properties -> Deployment Assembly page".
This page describes how your application will be packaged for deployment or export. And added new source "Maven dependency".

From Deployment Assembly page, Click Add... button Then select "Java Build Path Entries" "Maven dependency" should be in the list

It solves the issue and all jar got copied to tomcat

Related Question