I have an application developed with Struts and Hibernate and I wish to deploy the application on Tomcat.
I installed the latest version of Tomcat and placed my WAR file in the /webapp folder.
I also moved all the libreries used by this system in the /common/lib folder.
However this does not work and when I try to access the website (http://localhost:8080/myapp) I recieve an error that the Action Servlet could not be found. I checked the log files an found out that the system can not find the Struts Action class.
I tried placing the libreriries I need in the /server/lib/ folder as well, but I still recieve an error.
Does anyone has any idea on how to deploy a WAR file using Struts on Tomcat?
No Tomcat automatically looks in you WEB-INF/lib folder for libraries.
Your server/lib folder is for libraries needed by the Tomcat. common/lib is for libraries that are shared between Tomcat itself and your applications (most commonly JDBC drivers to be used by the container managed connection pool). Libraries needed only by your application should go in your webapps /WEB-INF/lib directory.