在tomcat7中部署struts2出错,求高手解惑啊! 30
出错信息:息:Overridingpropertystruts.configuration.xml.reload-oldvalue:falsenewvalue:true2...
出错信息:息: Overriding property struts.configuration.xml.reload - old value: false new value: true
2011-5-29 6:39:58 org.apache.catalina.core.StandardContext startInternal
严重: Error filterStart
2011-5-29 6:39:58 org.apache.catalina.core.StandardContext startInternal
严重: Context [/str] startup failed due to previous errors
2011-5-29 6:39:58 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: The web application [/str] created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@1573872]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@13ad88b]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2011-5-29 6:39:58 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: The web application [/str] created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@134eca]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@199c55a]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
我的lib里的包:commons-fileupload-1.2.1.jar,commons-io-1.3.2.jar,commons-io-1.3.2.jar,freemarker-2.3.16.jar,
javassist-3.7.ga.jar,jsf-api.jar,jsf-impl.jar,jstl-1.2.jar,ognl-3.0.jar,struts2-core- 2.2.1.1.jar,xwork-core-2.2.1.1.jar
web.xml:<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<welcome-file-list>
<welcome-file>login.jsp</welcome-file>
</welcome-file-list>
<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>
</web-app> 展开
2011-5-29 6:39:58 org.apache.catalina.core.StandardContext startInternal
严重: Error filterStart
2011-5-29 6:39:58 org.apache.catalina.core.StandardContext startInternal
严重: Context [/str] startup failed due to previous errors
2011-5-29 6:39:58 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: The web application [/str] created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@1573872]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@13ad88b]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2011-5-29 6:39:58 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: The web application [/str] created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@134eca]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@199c55a]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
我的lib里的包:commons-fileupload-1.2.1.jar,commons-io-1.3.2.jar,commons-io-1.3.2.jar,freemarker-2.3.16.jar,
javassist-3.7.ga.jar,jsf-api.jar,jsf-impl.jar,jstl-1.2.jar,ognl-3.0.jar,struts2-core- 2.2.1.1.jar,xwork-core-2.2.1.1.jar
web.xml:<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<welcome-file-list>
<welcome-file>login.jsp</welcome-file>
</welcome-file-list>
<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>
</web-app> 展开
3个回答
展开全部
web.xml里的filter改成如下的:
<filter>
<!-- 定义核心Filter的名称 -->
<filter-name>struts2</filter-name>
<!--定义核心Filter的实现类 -->
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>
这个是Struts2的核心filter实现类
<filter>
<!-- 定义核心Filter的名称 -->
<filter-name>struts2</filter-name>
<!--定义核心Filter的实现类 -->
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>
这个是Struts2的核心filter实现类
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2011-06-01
展开全部
你的好像是字符问题,或者是包导错了,也可能是不兼容的问题
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询