java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter when starting Simple Struts2 Application

后端 未结 3 1508
醉酒成梦
醉酒成梦 2020-11-27 22:05

I am trying to run a simple Struts2 application but it always throw the following exception:

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


        
3条回答
  •  没有蜡笔的小新
    2020-11-27 22:47

    Use this command to convert Maven project to Dynamic Web Project for Eclipse:

    mvn eclipse:eclipse -Dwtpversion=3.4.2
    

    you may change whatever WTP version you use

    .classpath should be like this

    
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
    
    

    After build the WAR file should deploy to %CATALINA_BASE%\webapps.

提交回复
热议问题