Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java.lang.ClassNotFoundException throwing some error

java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter

I added following jar files:

commons-fileupload-1.2.1.jar
commons-logging-1.1.1.jar
freemarker-2.3.16.jar
ognl-3.0.jar
servlet-api.jar
struts2-core-2.2.1.jar
xwork-core-2.2.1.jar
like image 701
Hardik Bhalani Avatar asked Apr 12 '11 09:04

Hardik Bhalani


1 Answers

I work with Struts2/Tomcat6 (in Eclipse) every day and I get this exception from time to time (it comes and goes !!!). What helps make it go away is to reorder the build path order. So, I go to properties of the project (right click on it -> properties), Java Build path move move up the struts-2-core .jar...enter image description here

like image 127
luigi7up Avatar answered Oct 04 '22 02:10

luigi7up