struts2与struts1整合,java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
生活随笔
收集整理的這篇文章主要介紹了
struts2与struts1整合,java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
原因:我往項目的WEB-INF/lib中導入了struts2基本的包,還有struts1的core包,以及struts2-strut1-plugin的包,但是沒有導入commons-loggin-1.3.1這個包,如下圖
我打開commons-loggin-1.3.1這個包看了一下,果然找到了這個組件的class文件
看到這個錯誤的時候,我感覺就應該i啊是commons-logging這個包沒有添加導致的,添加上就好了
轉載于:https://www.cnblogs.com/qrlozte/p/3794801.html
總結
以上是生活随笔為你收集整理的struts2与struts1整合,java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: K-Means算法Demo
- 下一篇: query和prototype库冲突的解