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

后端 未结 13 611
一生所求
一生所求 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:11

    Got similar problem while starting strut2 project.

    I was using the latest jars. Web.xml has version 3.0. And it does not contains the proper dispatcher in its configuration. I added the correct dispatcher filter i.e.

    org.apache.struts2.dispatcher.FilterDispatcher 
    

    instead of

    org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter 
    

    or

    org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter. 
    

    it worked greatly.

提交回复
热议问题