SEVERE: Exception starting filter struts2 java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.FilterDispatcher

后端 未结 13 612
一生所求
一生所求 2020-12-16 00:56

I am trying to make a small login application in struts 2. My web.xml:



        
13条回答
  •  清歌不尽
    2020-12-16 01:14

    Make sure the following are on your class path:

    • commons-fileupload-X.X.X.jar
    • commons-io-X.X.X.jar
    • commons-logging-X.X.X.jar
    • commons-logging-api.X.X.jar
    • freemarker-X.X.X.jar
    • ognl-X.X.X.jar
    • struts2-core-X.X.X.X.jar
    • xwork-core-X.X.X.jar
    • javassist-3.7.ga.jar (new for Struts versions 2.2.1 and higher)
    • commons-lang3-x.x

    Edit: Have you followed http://struts.apache.org/release/2.3.x/docs/how-to-create-a-struts-2-web-application.html to set up your project? Why are you using struts 2.1.X.X and not 2.2.x.x?

    Try:

            
                action
                org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
            
            
                action
                /*
            
    

提交回复
热议问题