日期:2014-05-18  浏览次数:20679 次

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