首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2EE开发 >

myeclipse中小弟我把项目重编译了一下,再启动的时候就报错了,请各位牛人帮忙看下,谢谢

2013-09-11 
myeclipse中我把项目重编译了一下,再启动的时候就报错了,请各位牛人帮忙看下,多谢。错误信息:2013-07-04 14

myeclipse中我把项目重编译了一下,再启动的时候就报错了,请各位牛人帮忙看下,多谢。
错误信息:
2013-07-04 14:36:47,515 ERROR [org.springframework.web.context.ContextLoader] - <Context initialization failed>
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor': Cannot create inner bean '(inner bean)' while setting bean property 'transactionInterceptor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in file [D:\develop\Tomcat6.0\Tomcat 6.0\webapps\sales\WEB-INF\classes\spring\dataAccessContext-hibernate.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Name salesDataSource is not bound in this Context
Caused by: 
org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in file [D:\develop\Tomcat6.0\Tomcat 6.0\webapps\sales\WEB-INF\classes\spring\dataAccessContext-hibernate.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Name salesDataSource is not bound in this Context
Caused by: 
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in file [D:\develop\Tomcat6.0\Tomcat 6.0\webapps\sales\WEB-INF\classes\spring\dataAccessContext-hibernate.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Name salesDataSource is not bound in this Context
Caused by: 
javax.naming.NameNotFoundException: Name salesDataSource is not bound in this Context


[解决办法]
是不是用了jndi??看样子像是 没有找到Context.xml中的配置。。

salesDataSource 

热点排行