February 20, 2012

java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.FilterDispatcher. SOLVED

OK fellows, if you have the next error using Eclipse + apache + strut2:

SEVERE: Exception starting filter struts2
java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.FilterDispatcher
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:138


or in Spanish


GRAVE: Excepci├│n arrancando filtro action2
java.lang.NoClassDefFoundError: com/opensymphony/xwork/config/ConfigurationException
at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:134)


and you have the libraries in the Biuld PATH or Deploy assembly, this problem is for a eclipse or tomcat desconfiguration.


I solved clean the proyect (Project-->Clean...) and removed the project from Tomcat server (right click on the server in the Server window--> option Add and Remove...) and re-run server without the project.



After that, run project in in the server again (right click--> Run as --> Run on Server) and choose restart server.

I hope it could be helpful for someone.

Thats all.





| The End |

5 comments:

  1. Yes! Yes!! It's work for me.
    I have this issues but in a random manner...Now with this workaround It's work fine.

    thanks a lot!

    ReplyDelete
  2. I'm glad that works for someone, because I lost a lot time trying to solve it.

    Saludos desde Chile!!

    ReplyDelete
  3. Thanks a lot.
    I was very useful for me.

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. this dint work for me... how does that solves the issue?

    ReplyDelete