当前位置: 代码迷 >> J2EE >> 前台用struts , 数据库用hibernate 出现了这样的异常,请帮忙。
  详细解决方案

前台用struts , 数据库用hibernate 出现了这样的异常,请帮忙。

热度:74   发布时间:2016-04-22 02:03:36.0
前台用struts , 数据库用hibernate 出现了这样的错误,请帮忙。。
type Exception report

message 

description The server encountered an internal error () that prevented it from fulfilling this request.

exception 

javax.servlet.ServletException: class "org.apache.commons.collections.SequencedHashMap"'s signer information does not match signer information of other classes in the same package
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause 

java.lang.SecurityException: class "org.apache.commons.collections.SequencedHashMap"'s signer information does not match signer information of other classes in the same package
java.lang.ClassLoader.checkCerts(ClassLoader.java:775)
java.lang.ClassLoader.preDefineClass(ClassLoader.java:487)
java.lang.ClassLoader.defineClass(ClassLoader.java:614)
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1650)
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:856)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1305)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1187)
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
org.hibernate.mapping.Table.<init>(Table.java:33)
org.hibernate.cfg.Mappings.addTable(Mappings.java:165)
org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:299)
org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:282)
org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:153)
org.hibernate.cfg.Configuration.add(Configuration.java:386)
org.hibernate.cfg.Configuration.addInputStream(Configuration.java:427)
org.hibernate.cfg.Configuration.addResource(Configuration.java:482)
org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1465)
org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1433)
org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1414)
org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1390)
org.hibernate.cfg.Configuration.configure(Configuration.java:1310)
org.hibernate.cfg.Configuration.configure(Configuration.java:1296)
com.ibm.lgw.personOperate.PersonOperate.<init>(PersonOperate.java:15)
com.ibm.lgw.struts.action.InsertAction.execute(InsertAction.java:48)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


用的 jdk是1.5 ,tomcat 5.5 , hibernate 3.1.

好像在别人的机器上没什么问题,我的机器就这样, 高手帮帮忙, 到底怎么回事。




------解决方案--------------------
commons-collections-3.2.jar
------解决方案--------------------
按有几个群,你不妨加进去,可以和大家一起讨论啊.........46986340,28039577,4804620
  相关解决方案