eclipse 安装jetty时遇到的问题
生活随笔
收集整理的這篇文章主要介紹了
eclipse 安装jetty时遇到的问题
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
一、啟動(dòng)jetty8后,訪問頁面時(shí)出現(xiàn)
PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required問題是我的jre的目錄不對
解決辦法:點(diǎn)擊window->preference->java->Installed JREs
?
選中之后點(diǎn)擊edit
jre的路徑為你jdk目錄下的jre我的本地的環(huán)境變量位置是(C:\Program Files\Java\jdk1.6.0_43\jre)
點(diǎn)擊完成即可!
二,再次刷新頁面時(shí)會(huì)出現(xiàn)以下錯(cuò)誤
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標(biāo)簽,網(wǎng)上搜了說這是jetty8的一個(gè)bug,在web.xml中將struts2的攔截器改一下就可以了
<filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>?
轉(zhuǎn)載于:https://www.cnblogs.com/hehy/p/3715821.html
總結(jié)
以上是生活随笔為你收集整理的eclipse 安装jetty时遇到的问题的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: DZ各个数据表详解(DZ论坛各表详细说明
- 下一篇: 启动文件需要做的工作