011-2-9 17:30:49 org.apache.catalina.core.StandardContext start
严重: Error filterStart
2011-2-9 17:30:49 org.apache.catalina.core.StandardContext start
严重: Context [/struts] startup failed due to previous errors
2011-2-9 17:30:49 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: The web application [/struts] created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@113981b]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@1672bbb]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2011-2-9 17:30:49 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: The web application [/struts] created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@6833f2]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@12a73d9]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
程序绝对没问题,看看下面两个配置文件,我也没觉得有问题,应该是正确的,都是在视频上照扒下来的,已经对换了好几遍了
struts.xml<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<package name="itcast" namespace="/test" extends="struts-default">
<action name="helloworld" class="cn.itcast.action.HelloWorldAction" method="execute" >
<result name="success">/WEB-INF/page/hello.jsp</result>
</action>
</package>
</struts>web.xml<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
<!-- 自从Struts 2.1.3以后,下面的FilterDispatcher已经标注为过时
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class> -->
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>
严重: Error filterStart
2011-2-9 17:30:49 org.apache.catalina.core.StandardContext start
严重: Context [/struts] startup failed due to previous errors
2011-2-9 17:30:49 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: The web application [/struts] created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@113981b]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@1672bbb]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2011-2-9 17:30:49 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: The web application [/struts] created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@6833f2]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@12a73d9]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
程序绝对没问题,看看下面两个配置文件,我也没觉得有问题,应该是正确的,都是在视频上照扒下来的,已经对换了好几遍了
struts.xml<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<package name="itcast" namespace="/test" extends="struts-default">
<action name="helloworld" class="cn.itcast.action.HelloWorldAction" method="execute" >
<result name="success">/WEB-INF/page/hello.jsp</result>
</action>
</package>
</struts>web.xml<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
<!-- 自从Struts 2.1.3以后,下面的FilterDispatcher已经标注为过时
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class> -->
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>
解决方案 »
- JSP页面输入框中有Aug 字母
- 把一个页面里面的所有函数都封装到一个函数里面,另外一个页面怎样通过ajax请求响应它?
- 想在java程序中调用一个jsp页面中的方法,求大侠指教啊!
- 日记代码,现在的版本不支持firefox,高手给帮改下,或给点高建
- 给别人项目的样本,怎么保密代码
- 如何用jsp调用MS SQL server的以下的存储过程?
- 各位大牛!麻烦帮助小弟参考一下!!谢谢!!
- rs.getString()与oracle里的clob字段问题?!急救!!!在线等!
- 求,帮助
- “orion” 这个软件去哪里下载?我是新手,急急急!!!帮帮我!
- s:if test 中的indexOf问题
- Hibernate 无主键映射表的查询问题
如果不是,换个struts2最新版本试试