该demo来自慕课网,传送门报错信息如下:三月 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我想错误应该是指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。会不会和环境有关?我用的是jdk1.8和tomcat8
添加回答
举报
0/150
提交
取消