When setting up a Java web application using Tomcat as an application server I often get confused about when libraries are available. Through some discussion on Stack Overflow,
in eclipse, you have the java build path which include the libraries during compile time, and you have order and export, which is for the runtime.
java build path
order and export
only the tomcat libraries available by default