自定義struts2的mvc時幾個異常

D:\myeclipse\my\Common\plugins\com.genuitec.eclipse.easie.tomcat.myeclipse_9.0.0.me201211011550\tomcat\bin\mystruts.dtd (系統找不到指定的文件。)

1,解決方案,把你的dtd文件放那個路徑下。或者dtd和xml文件不分開。

See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class

這個表示servlet.jar包多了,刪掉一個。當然不刪除不影響項目基本操作。

The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.7.0_79\bin;D:\myeclipse\my\Common\plugins\com.genuitec.eclipse.easie.tomcat.myeclipse_9.0.0.me201211011550\tomcat\bin

這個Eclipse中會出現,把jdk跳到1.6就好了。當然不管也不影響項目基本操作,就算看着不舒服。

自定義時的路徑問題。mystruts.xml放在src下面。同時action請求時記得,寫根目錄,或者拼接,不然404錯誤一直都搞不定的。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章