启动tomcat出错 我用tomcat5.0.28 和tomcat6.0都试过了
启动tomcat的时候都出这个异常:
大家帮忙看看吧org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'initJob' defined in file [D:\Tomcat5028\webapps\ExtHr\WEB-INF\classes\spring\applicationContext-time.xml]: Cannot resolve reference to bean 'departmentDao' while setting bean property 'departmentDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'departmentDao': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [D:\Tomcat5028\webapps\ExtHr\WEB-INF\classes\spring\dataAccessContext-hibernate.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException
启动tomcat的时候都出这个异常:
大家帮忙看看吧org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'initJob' defined in file [D:\Tomcat5028\webapps\ExtHr\WEB-INF\classes\spring\applicationContext-time.xml]: Cannot resolve reference to bean 'departmentDao' while setting bean property 'departmentDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'departmentDao': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [D:\Tomcat5028\webapps\ExtHr\WEB-INF\classes\spring\dataAccessContext-hibernate.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货