配置JavaWeb项目环境,修改jdbc配置文件,浏览器报404错误,不修改可以正常部署,jdbc没有改错 20
myeclipse报错如下:org.springframework.beans.factory.BeanCreationException:Errorcreatingbe...
myeclipse报错如下:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'entityManagerFactory' while setting bean property 'entityManagerFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: ev_hotline_JpaPersistenceUnit] Unable to build EntityManagerFactory
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106) 展开
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'entityManagerFactory' while setting bean property 'entityManagerFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: ev_hotline_JpaPersistenceUnit] Unable to build EntityManagerFactory
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106) 展开
展开全部
'transactionManager' 的属性'entityManagerFactory'设置这个的时候没有bean
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
把配置文件内容贴上来看下呀
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
是不是两个数据库的表结构有些不一样,这个错误说创建bean错误
追问
Caused by: org.hibernate.HibernateException: Missing column: EndDate in hotlineservice.dbo.rrd_tblProcess
还真有这个提示,但是我不修改jdbc配置文件可以部署成功啊,我只改了数据库的url,变成本地数据库。本地的数据库开始还原过来的。怎么会有错误?
追答
你不修改url连的是服务器上的数据库,应该是你本地的数据库和服务器上的数据库的表结构有差异
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询