严重: action_tmp: null
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.SecurityException: class "org.apache.commons.collections.LRUMap"'s signer information does not match signer information of other classes in the same package
Caused by: java.lang.SecurityException: class "org.apache.commons.collections.LRUMap"'s signer information does not match signer information of other classes in the same package下面是在网上找的:
主要是MyEclipse6带的jar包之间不支持。我用MyEclipse6建个新工程,然后只用MyEclipse6自带的 struts包加入,什么都不改,都报错。现在我换成MyEclipse5.5版本的,三个框架配置一次通过,而且单建struts也没有问题了。总结一句话,最新的不一定是最好的。以后大家要注意版本兼容问题。谁知道到底哪些jar包不支持吗??
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.SecurityException: class "org.apache.commons.collections.LRUMap"'s signer information does not match signer information of other classes in the same package
Caused by: java.lang.SecurityException: class "org.apache.commons.collections.LRUMap"'s signer information does not match signer information of other classes in the same package下面是在网上找的:
主要是MyEclipse6带的jar包之间不支持。我用MyEclipse6建个新工程,然后只用MyEclipse6自带的 struts包加入,什么都不改,都报错。现在我换成MyEclipse5.5版本的,三个框架配置一次通过,而且单建struts也没有问题了。总结一句话,最新的不一定是最好的。以后大家要注意版本兼容问题。谁知道到底哪些jar包不支持吗??
我用tomcat5就可以,tomcat6就不行
这个里面放特殊的集合类吧
在jsp的form中输入的中文,在action中就成乱码啦
我已经设置过滤器啦,编码是utf8
我所有的编码都是uft8,真是不明白问题在哪?/
看一下同名的包 删一个 <filter>
<filter-name>char</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>char</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
都是copy的,过滤器也执行啦
在action中打印就成乱码,
不知道过滤器为啥没起作用
过滤器拦截路径
你的过滤器方法
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;public class EncodingFilter implements Filter {
private String charset = null;
//filter过滤中文
public void destroy() {
// TODO Auto-generated method stub } public void doFilter(ServletRequest req, ServletResponse resp,
FilterChain chain) throws IOException, ServletException {
req.setCharacterEncoding((this.charset));
chain.doFilter(req, resp);
} public void init(FilterConfig fc) throws ServletException {
charset = fc.getInitParameter("charset");
}}
web.xml<filter>
<filter-name>encoding</filter-name>
<filter-class>
org.lxh.myznt.filter.EncodingFilter
</filter-class>
<init-param>
<param-name>charset</param-name>
<param-value>utf-8</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>encoding</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping> <filter-mapping>
<filter-name>char</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>char </filter-name>
<url-pattern>/* </url-pattern>
</filter-mapping> 这个是什么?
就是没起作用
呵呵,啥意思啊?我全部的页面用的都是utf-8
从表单中一出去就是乱码啦