第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

eclipse測(cè)試Struts2配置時(shí),控制臺(tái)報(bào)錯(cuò),瀏覽器也總是顯示404錯(cuò)誤。

eclipse測(cè)試Struts2配置時(shí),控制臺(tái)報(bào)錯(cuò),瀏覽器也總是顯示404錯(cuò)誤。

慕移動(dòng)2735134 2017-12-14 22:01:33
剛學(xué)struts照著書(shū)本和網(wǎng)上的很多小例子來(lái)測(cè)試自己的struts配置的對(duì)不對(duì),但是總是遇到404錯(cuò)誤下面是我導(dǎo)入的jar包。(把struts的jar包做成了user Libraries,在工程的build path直接導(dǎo)入的,反正跟直接粘貼在web-inf/lib下結(jié)果都一樣)下面是web.xml內(nèi)容<?xml?version="1.0"?encoding="UTF-8"?> <web-app?xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"?xmlns="http://java.sun.com/xml/ns/javaee"?xsi:schemaLocation="http://java.sun.com/xml/ns/javaee?http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"?id="WebApp_ID"?version="2.5"> ??<display-name>12</display-name> ???<filter> ????????<filter-name>struts2</filter-name> ????????<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class> ????</filter> ????<filter-mapping> ????????<filter-name>struts2</filter-name> ????????<url-pattern>/*</url-pattern> ????</filter-mapping> ??<welcome-file-list> ????<welcome-file>index.html</welcome-file> ????<welcome-file>index.htm</welcome-file> ????<welcome-file>index.jsp</welcome-file> ????<welcome-file>default.html</welcome-file> ????<welcome-file>default.htm</welcome-file> ????<welcome-file>default.jsp</welcome-file> ??</welcome-file-list> </web-app>這是Struts.xml內(nèi)容 <?xml?version="1.0"?encoding="UTF-8"??> <!DOCTYPE?struts?PUBLIC "-//Apache?Software?Foundation//DTD?Struts?Configuration?2.3//EN" "http://struts.apache.org/dtds/struts-2.3.dtd"> <struts> ????<package?name="default"?namespace="/"?extends="struts-default"> <action?name="Test"?class="com.action.Test"> ????????????<result?name="success">/helloworld.jsp</result> ????????</action> ????</package> ????<!--?Add?packages?here?--> </struts>這是報(bào)錯(cuò)信息十二月 14, 2017 9:35:10 下午 org.apache.catalina.startup.SetContextPropertiesRule begin警告: [SetContextPropertiesRule]{Context} Setting property 'source' to 'org.eclipse.jst.jee.server:12' did not find a matching property.十二月 14, 2017 9:35:11 下午 org.apache.catalina.core.StandardContext filterStart嚴(yán)重: Exception starting filter struts2java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1892) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1735)。。。。十二月 14, 2017 9:35:11 下午 org.apache.catalina.core.StandardContext startInternal嚴(yán)重: One or more Filters failed to start. Full details will be found in the appropriate container log file十二月 14, 2017 9:35:11 下午 org.apache.catalina.core.StandardContext startInternal嚴(yán)重: Context [/12] startup failed due to previous errors十二月 14, 2017 9:35:11 下午 org.apache.catalina.startup.HostConfig deployDescriptor信息: Deployment of configuration descriptor C:\Users\Administrator\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\conf\Catalina\localhost\12.xml has finished in 204 ms十二月 14, 2017 9:35:11 下午 org.apache.catalina.startup.HostConfig deployDescriptor信息: Deploying configuration descriptor C:\Users\Administrator\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\conf\Catalina\localhost\struts2-blank.xml十二月 14, 2017 9:35:11 下午 org.apache.catalina.startup.SetContextPropertiesRule begin警告: [SetContextPropertiesRule]{Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:struts2-blank' did not find a matching property.十二月 14, 2017 9:35:12 下午 org.apache.catalina.startup.TldConfig execute信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.2017-12-14 21:35:13,091 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Found following implementations of FileManager interface: [system, jboss]。。。。我在網(wǎng)上找很久解決辦法。也都試了。。并沒(méi)有用。是我工程就建的不對(duì)么?求指點(diǎn)一下,剛開(kāi)始學(xué)就卡住了。。。
查看完整描述

3 回答

?
慕先生4405327

TA貢獻(xiàn)1條經(jīng)驗(yàn) 獲得超0個(gè)贊

你試試把兩個(gè)<filter-name>struts2</filter-name>里面改為<filter-name>struts</filter-name>


查看完整回答
反對(duì) 回復(fù) 2017-12-16
?
橫空hero

TA貢獻(xiàn)3條經(jīng)驗(yàn) 獲得超3個(gè)贊

一樣,第一個(gè)struts的配置弄了兩天,還是404錯(cuò)誤。我就放棄了。

查看完整回答
反對(duì) 回復(fù) 2017-12-15
  • 3 回答
  • 0 關(guān)注
  • 1753 瀏覽
慕課專(zhuān)欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢(xún)優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)