eclipse 安装jetty时遇到的问题
生活随笔
收集整理的這篇文章主要介紹了
eclipse 安装jetty时遇到的问题
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
一、啟動jetty8后,訪問頁面時出現
PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required問題是我的jre的目錄不對
解決辦法:點擊window->preference->java->Installed JREs
?
選中之后點擊edit
jre的路徑為你jdk目錄下的jre我的本地的環境變量位置是(C:\Program Files\Java\jdk1.6.0_43\jre)
點擊完成即可!
二,再次刷新頁面時會出現以下錯誤
The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has passed through its servlet filter, which initializes the Struts dispatcher needed for this tag. - [unknown location]原因是我頁面用了struts標簽,網上搜了說這是jetty8的一個bug,在web.xml中將struts2的攔截器改一下就可以了
<filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>?
轉載于:https://www.cnblogs.com/hehy/p/3715821.html
總結
以上是生活随笔為你收集整理的eclipse 安装jetty时遇到的问题的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: DZ各个数据表详解(DZ论坛各表详细说明
- 下一篇: 启动文件需要做的工作