-
g.ClassCastException: $Proxy0 cannot be cast to org.hibernate.
tomcat启动错误,大家帮帮我吧,谢谢!13:51:31,062INFOSettingsFactory:283-Defaultentity-mode:pojo13:51:31,156INFOSessionFactoryImpl:154-buildingsessionfactory13:51:32,218INFOSessionFactoryObjectFactory:82-Notbindingfa...
637
热度 -
org.hibernate.LazyInitializationException:could not initialize proxy - the owning Session was
org.hibernate.LazyInitializationException:couldnotinitializeproxy-theowningSessionwasclosedhibernate出现异常,有知道的人,给个解决方案,谢谢积分奖励!2008-03-0416:51:19[日志信息]couldnotinitializeproxy-theowningSessionwasclosedor...
402
热度 -
java.lang.NoClassDefFoundError: org.hibernate.cfg.Configuration.setXXXX解决办法
java.lang.NoClassDefFoundError:org.hibernate.cfg.Configuration.setXXXX解决方法字面上看是找不到类,我用是Spring版本是3.0.1。导入了Hibernate3.jar,这个包里整合了较早版本的entitymanager,annotation等jar包内容。这个jar包也是spring3.x企业开发实战这本书的extralib里...
259
热度 -
关于javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/hibernate解决方法
关于javax.servlet.ServletException:java.lang.NoClassDefFoundError:org/hibernate我写了一个类ExportDB,作用是根据映射文件在数据库中删表或建表。packagecom.fhe.db;importjava.io.File;importorg.hibernate.*;importorg.hibernate.Transacti...
891
热度 -
java.lang.NoClassDefFoundError: org/hibernate/cfg/AnnotationConfiguration解决方法
java.lang.NoClassDefFoundError:org/hibernate/cfg/AnnotationConfiguration大家好,我刚接触hibernate。一开始没有在web环境下,一切正常。但是当在web环境下使用时,总遇到java.lang.NoClassDefFoundError:org/hibernate/cfg/AnnotationConfiguration。我在...
507
热度 -
org.hibernate.cache.CacheException:net.sf.ehcache.CacheException:Cannot
这个异常太怪了,跪求解决方法!!!!!!!!!!!org.hibernate.cache.CacheException:net.sf.ehcache.CacheException:CannotconfigureCacheManeger:jar:file:/D:/web/www.hboys.cn/WEB-INF/lib/ehcache-1.1.jar/ehcache-failsafe.xml:12:...
380
热度 -
class 'org.springframework.orm.hibernate3.LocalSessionFactoryBean' not found解决办法
class'org.springframework.orm.hibernate3.LocalSessionFactoryBean'notfound解决方法在做Spring+Struts+Hibernate时,在刚增加了Hibernate开发能力后,增加Spring开发能力时,applicationContext.xml产生错误:class'org.springframework.orm.hiber...
65
热度 -
org.hibernate.NonUniqueResultException: query did not return a unique result: 二
org.hibernate.NonUniqueResultException:querydidnotreturnauniqueresult:2 参考:http://blog.csdn.net/qingfeilee/article/details/7052736org.hibernate.NonUniqueResultException:querydidnotreturnauniqueresult:...
1189
热度 -
org.springframework.orm.hibernate3.HibernateQueryException: Manager is not 地图pe
org.springframework.orm.hibernate3.HibernateQueryException:Managerisnotmappe?用hibernateTemplate().find()方法时出现以下错误org.springframework.orm.hibernate3.HibernateQueryException:Managerisnotmapped[fromManag...
17
热度 -
java.lang.NoClassDefFoundError: org/hibernate/HibernateException,该如何处理
java.lang.NoClassDefFoundError:org/hibernate/HibernateException我用Hibernate3+Struts1.1+tomcat5.0(JDK1.5+MyEclipse3.1)作一个简单的登陆项目,结果一点登陆就报错,如下:java.lang.NoClassDefFoundError:org/hibernate/HibernateExcept...
82
热度 -
org.hibernate.InvalidMappingException: Unable to read XML 异常解决办法
在我们做Hibernate开发的时候,报出org.hibernate.InvalidMappingException:UnabletoreadXML这样的异常,经过分析,主要有以下几点:1、可能是你应用其它外部包中有与数据库相关的操作导致与Hibernate冲突,致使Hibernate最初就无法配置。例如我在使用JFreeChart的时候,我在网上看到需要导入gnujaxp.jar、jcommon...
1210
热度 -
org.hibernate.NonUniqueResultException:查询未返回唯一结果:462
问题描述 我正在使用SpringMVC在带有Spring的应用程序上工作,遇到以下错误,我不知道如何处理。 现在我在控制台中收到此消息: org.hibernate.TypeMismatchException:Providedidofthewrongtype.Expected:classjava.lang.Integer,gotclassjava.lang.String atorg.hiber...
14
热度 -
一个关于 org.hibernate.LockMode类的有关问题
一个关于org.hibernate.LockMode类的问题我对数据库做了一些修改,然后也做了相应的映射,但是运行后报错严重:Exceptionsendingcontextinitializedeventtolistenerinstanceofclassorg.springframework.web.context.ContextLoaderListenerorg.springframework....
87
热度 -
org.hibernate.HibernateException: No Session found for current thread解决办法
org.hibernate.HibernateException'>org.hibernate.HibernateException:NoSessionfoundforcurrentthread这是applicationContext.xml<?xmlversion="1.0"encoding="UTF-8"?><beans xmlns="http://www.springfra...
8689
热度 -
spring+hibernate的demo里出错:’class org.springframework.beans.factory.No
spring+hibernate的demo里报错:’classorg.springframework.beans.factory.No点击右边红色标题查看本文完整版:spring+hibernate的demo里报错:’classorg.springframework.beans.factory.NoSuchBeanDefinitionException配置文件的部分代码:?<beanid="...
101
热度 -
转 weblogic10.3 org.hibernate.hql.ast.HqlToken报错有关问题
转weblogic10.3org.hibernate.hql.ast.HqlToken报错问题 weblogic10.3org.hibernate.hql.ast.HqlToken报错问题 文章分类:Java编程 ? 因客户需求,将原来在tomcat6的struts2+hibernate3+spring2.5下的应用移植到weblogic10.3上, 在运行 weblogic10....
829
热度 -
java.lang.NoSuchMethodError: org.hibernate.hql.antlr.HqlBaseParser.recover解决方案
java.lang.NoSuchMethodError:org.hibernate.hql.antlr.HqlBaseParser.recover我在执行Listlist=this.getSessionFactory().openSession().createQuery(SQL).list()其中这个类继承了org.springframework.orm.hibernate3.support.H...
199
热度 -
小弟我在SSH2配置了两个applicationContext.xml连接两个数据库
我在SSH2配置了两个applicationContext.xml连接两个数据库我配置了两个applicationContext.xml(applicationContext_Elec.xml和applicationContext_OA.xml)连接两个数据库,我在web.xml里这么配置<context-param><param-name>contextConfigLoc...
5212
热度 -
哪儿的错呢
哪里的错呢?ERRORContextLoader:205-Contextinitializationfailed org.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'/document'definedinfile[C:\ProgramFiles(x86)\ApacheSoftwareFo...
373
热度 -
org.hibernate.HibernateException: No Session found for current thread,该如何处理
org.hibernate.HibernateException'>org.hibernate.HibernateException:NoSessionfoundforcurrentthread这是applicationContext.xml<?xmlversion="1.0"encoding="UTF-8"?><beans xmlns="http://www.springfra...
171
热度