myeclipse6.0配置ssh架构的bug

tiger861111 2009-04-06 11:17:27
这几天我用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映射的问题,可是映射确实没问题!导入的架构也没问题!两天前还能正确运行!

请哪位大哥大姐帮帮小弟!
...全文
68 点赞 收藏 3
写回复
3 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
雨天wxp 2010-03-20
我也一样啊
回复
tiger861111 2009-04-06
<bean id="orgManager" class="com.bjsxt.oa.manager.impl.OrgManagerImpl">
<property name="sessionFactory" ref="sessionFactory"/>
</bean>
sessionFactory是在另一个配置文件中,这些应该都没问题,因为以前运行了n遍都没问题,这个异常现象是突然出现的!所以我想应该是bug,这个问题不知道有没有人遇到过啊
回复
Despereaux 2009-04-06
检查配置文件包含orgManager的地方
回复
相关推荐
发帖
Eclipse
创建于2007-09-28

5.8w+

社区成员

Java Eclipse
申请成为版主
帖子事件
创建了帖子
2009-04-06 11:17
社区公告
暂无公告