Struts2 Error when Deploying: Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory

前端 未结 5 655
暗喜
暗喜 2021-01-18 09:00

I\'m creating a basic Struts2, Maven webApp and getting this error when I deploy to Tomcat 6 or Jetty. Has anyone seen this?

  2010-07-29 15:33:38.801::WARN         


        
5条回答
  •  自闭症患者
    2021-01-18 09:45

    Problem: The conflict occurred as 2 files of different versions are being loaded by the web container

    Solution: Just go to path C:/workspaces/ulearn/ulearn/target/work/webapp/WEB-INF/lib/ of your computer and delete the struts2-core-2.0.11.2.jar file and only keep the latest one. If this type of conflict also occurs with some other file then delete that file also After this no exception will be there.

提交回复
热议问题