myeclipse6.0配置ssh架构的bug
这几天我用ssh架构写项目的时候发现会有莫名其妙的错误,经仔细检查也无法找出问题所在,后来索性将以前能运行的项目架构导了进来,可是发现居然也运行不了!!!
所以我怀疑是ide的bug,具体提示信息如下:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'orgManager' defined in file [C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\OA\WEB-INF\classes\applicationContext-beans.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\OA\WEB-INF\classes\applicationContext-common.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: could not instantiate id generator
Caused by:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\OA\WEB-INF\classes\applicationContext-common.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: could not instantiate id generator
Caused by:
org.hibernate.MappingException: could not instantiate id generator
信息: Illegal access: this web application instance has been stopped already. Could not load java.net.BindException. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
java.lang.IllegalStateException ...
ps:提示说应该是hibernate映射的问题,可是映射确实没问题!导入的架构也没问题!两天前还能正确运行!
请哪位大哥大姐帮帮小弟!