在我的工程里加了个train-hibernate.hbm.xml文件,就报错,不加这个文件正常运行,就是工程里本身还有其他的...hibernate.hbm.xml文件,可以运行,并且也自动生成数据库表,就一加train这个文件就报错:
[ERROR]2012-06-05 17:44:45,172 Context initialization failed - (org.springframework.web.context.ContextLoader:208)
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ClassAutoCloseJob' defined in file [C:\Users\fujin\Workspaces\MyEclipse\.metadata\.me_tcat\webapps\ROOT\WEB-INF\classes\applicationContext-scheduler.xml]: Cannot resolve reference to bean 'clazzServiceImpl' while setting bean property 'targetObject'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clazzServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.flare.college.dao.ClazzDAO com.flare.college.service.impl.ClazzServiceImpl.clazzDAO; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clazzDAOImpl': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [C:\Users\fujin\Workspaces\MyEclipse\.metadata\.me_tcat\webapps\ROOT\WEB-INF\classes\applicationContext-hibernate.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer] 信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Users\fujin\AppData\Local\Genuitec\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\bin;C:\Users\fujin\AppData\Local\Genuitec\Common\plugins\com.genuitec.eclipse.easie.tomcat.myeclipse_7.5.0.zmyeclipse75020090612\tomcat\bin
什么原因呀??我的train表自动生成不了了。
[ERROR]2012-06-05 17:44:45,172 Context initialization failed - (org.springframework.web.context.ContextLoader:208)
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ClassAutoCloseJob' defined in file [C:\Users\fujin\Workspaces\MyEclipse\.metadata\.me_tcat\webapps\ROOT\WEB-INF\classes\applicationContext-scheduler.xml]: Cannot resolve reference to bean 'clazzServiceImpl' while setting bean property 'targetObject'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clazzServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.flare.college.dao.ClazzDAO com.flare.college.service.impl.ClazzServiceImpl.clazzDAO; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clazzDAOImpl': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [C:\Users\fujin\Workspaces\MyEclipse\.metadata\.me_tcat\webapps\ROOT\WEB-INF\classes\applicationContext-hibernate.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer] 信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Users\fujin\AppData\Local\Genuitec\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\bin;C:\Users\fujin\AppData\Local\Genuitec\Common\plugins\com.genuitec.eclipse.easie.tomcat.myeclipse_7.5.0.zmyeclipse75020090612\tomcat\bin
什么原因呀??我的train表自动生成不了了。
解决方案 »
- 求助JBPM3.2
- 问一sql语句。
- 关于《重构 改善既有代码的设计》第一章的例子
- Try catch方法 还是不明白啊!
- 求助 servlet
- struts 中 validation.xml
- Xfire中服务端如何得到客户端的IP!!!
- 如果加入开源?
- 用jb生成可执行文件,但还要一个.jar包才行,怎样使程序只要.exe文件,而不用.jar文件
- 急上传的压缩文件解不开???为什么传其它文件没事!???
- >>>>关于synchronized 同步的问题<<<<
- org.hibernate.hql.ast.QuerySyntaxException: '' is not mapped [sql string]
检查检查 这个bEAN