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

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

關(guān)于struts2demo無法啟動的奇怪問題

關(guān)于struts2demo無法啟動的奇怪問題

繁星點點滴滴 2019-03-28 22:19:45
該demo來自慕課網(wǎng),傳送門報錯信息如下:三月 29, 2016 1:22:38 上午 org.apache.catalina.core.AprLifecycleListener init信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: F:\WorkTools\MyEclipse\binary\com.sun.java.jdk7.win32.x86_64_1.7.0.u45\bin;F:\WorkTools\MyEclipse\plugins\com.genuitec.eclipse.server.embedded.tomcat.core_13.0.0.me201503191638\tomcat70\bin三月 29, 2016 1:22:39 上午 org.apache.coyote.AbstractProtocol init信息: Initializing ProtocolHandler ["http-bio-8080"]三月 29, 2016 1:22:39 上午 org.apache.coyote.AbstractProtocol init信息: Initializing ProtocolHandler ["ajp-bio-8009"]三月 29, 2016 1:22:39 上午 org.apache.catalina.startup.Catalina load信息: Initialization processed in 479 ms三月 29, 2016 1:22:39 上午 org.apache.catalina.core.StandardService startInternal信息: Starting service Catalina三月 29, 2016 1:22:39 上午 org.apache.catalina.core.StandardEngine startInternal信息: Starting Servlet Engine: Apache Tomcat/7.0.56我想錯誤應(yīng)該是指struts.xml的第19行吧?附上其的代碼:<?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>     <constant name="struts.enable.DynamicMethodInvocation" value="false" />     <constant name="struts.devMode" value="true" />          <package name="default" namespace="/" extends="struts-default">         <!-- 注冊攔截器 -->         <interceptors>             <interceptor name="mytimer" class="com.imooc.interceptor.TimerInterceptor"/>         </interceptors>              <action name="timer" class="com.imooc.action.TimerAction">             <result>/success.jsp</result>             <!-- 為Action顯示引用攔截器后,默認的攔截器defaultStack不再生效,需要手工引用 -->             <interceptor-ref name="defaultStackz"></interceptor-ref><!--這是第19行 -->             <!-- 引用攔截器 -->             <interceptor-ref name="mytimer"/>         </action>     </package></struts>求救啊各位大神T0T。會不會和環(huán)境有關(guān)?我用的是jdk1.8和tomcat8
查看完整描述

2 回答

?
哈士奇WWW

TA貢獻1799條經(jīng)驗 獲得超6個贊

你默認攔截器的名字寫錯了吧?你看你的報錯信息:Caused by: Unable to find interceptor class referenced by ref-name defaultStackz -,應(yīng)該是defaultStack


查看完整回答
反對 回復(fù) 2019-04-17
?
慕森卡

TA貢獻1806條經(jīng)驗 獲得超8個贊

找不到19行攔截器對應(yīng)的類,你看你類名是不是寫錯了


查看完整回答
反對 回復(fù) 2019-04-17
  • 2 回答
  • 0 關(guān)注
  • 460 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

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

公眾號

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