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映射的问题,可是映射确实没问题!导入的架构也没问题!两天前还能正确运行!

请哪位大哥大姐帮帮小弟!
...全文
106 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
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的地方

58,454

社区成员

发帖
与我相关
我的任务
社区描述
Java Eclipse
社区管理员
  • Eclipse
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧