当前位置: 代码迷 >> J2EE >> jsp+servlet+hibernate错误
  详细解决方案

jsp+servlet+hibernate错误

热度:75   发布时间:2016-04-22 02:05:35.0
jsp+servlet+hibernate异常
表单提交信息时出现异常:
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/E:/apache-tomcat-6.0.33/webapps/hibernate/WEB-INF/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/E:/apache-tomcat-6.0.33/webapps/hibernate/WEB-INF/lib/slf4j-nop-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
15:41:32,109 INFO Version:15 - Hibernate Annotations 3.4.0.GA
2012-2-15 15:41:32 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet UserAction threw exception
java.lang.NoSuchFieldError: INSTANCE
at org.hibernate.type.BasicTypeRegistry.<init>(BasicTypeRegistry.java:94)
at org.hibernate.type.TypeResolver.<init>(TypeResolver.java:59)
at org.hibernate.cfg.Configuration.<init>(Configuration.java:250)
at org.hibernate.cfg.Configuration.<init>(Configuration.java:302)
at org.hibernate.cfg.AnnotationConfiguration.<init>(AnnotationConfiguration.java:108)
at com.spring.util.HibernateUtil.<init>(HibernateUtil.java:14)
at com.spring.util.HibernateUtil.getHibernateInstace(HibernateUtil.java:19)
at com.spring.dao.UserDAOImpl.exists(UserDAOImpl.java:16)
at com.spring.service.UserServiceImpl.add(UserServiceImpl.java:15)
at com.spring.web.action.UserAction.doGet(UserAction.java:38)
at com.spring.web.action.UserAction.doPost(UserAction.java:58)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662)
请教各位,是怎么回事?

------解决方案--------------------
  相关解决方案