首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web开发 >

哪儿的错呢

2013-10-01 
哪里的错呢?ERROR ContextLoader:205 - Context initialization failedorg.springframework.beans.factory

哪里的错呢?
ERROR ContextLoader:205 - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name '/document' defined in file [C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0\webapps\oa_29\WEB-INF\classes\applicationContext-actions.xml]: Cannot resolve reference to bean 'documentManager' while setting bean property 'documentManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'documentManager' defined in file [C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0\webapps\oa_29\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 (x86)\Apache Software Foundation\Tomcat 7.0\webapps\oa_29\WEB-INF\classes\applicationContext-common.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not determine type for: java.lang.Comparable, for columns: [org.hibernate.mapping.Column(principalId)]
Caused by: 
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'documentManager' defined in file [C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0\webapps\oa_29\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 (x86)\Apache Software Foundation\Tomcat 7.0\webapps\oa_29\WEB-INF\classes\applicationContext-common.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not determine type for: java.lang.Comparable, for columns: [org.hibernate.mapping.Column(principalId)]
Caused by: 
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0\webapps\oa_29\WEB-INF\classes\applicationContext-common.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not determine type for: java.lang.Comparable, for columns: [org.hibernate.mapping.Column(principalId)]
Caused by: 
org.hibernate.MappingException: Could not determine type for: java.lang.Comparable, for columns: [org.hibernate.mapping.Column(principalId)]

 2013 5:34:45 午後 org.apache.catalina.core.StandardContext listenerStart
SEVERE: クラス org.springframework.web.context.ContextLoaderListener のリスナインスタンスにコンテキスト初期化イベントを送信中の例外です
org.springframework.beans.factory.BeanCreationException: Error creating bean with name '/document' defined in file [C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0\webapps\oa_29\WEB-INF\classes\applicationContext-actions.xml]: Cannot resolve reference to bean 'documentManager' while setting bean property 'documentManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'documentManager' defined in file [C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0\webapps\oa_29\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 (x86)\Apache Software Foundation\Tomcat 7.0\webapps\oa_29\WEB-INF\classes\applicationContext-common.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not determine type for: java.lang.Comparable, for columns: [org.hibernate.mapping.Column(principalId)]
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'documentManager' defined in file [C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0\webapps\oa_29\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 (x86)\Apache Software Foundation\Tomcat 7.0\webapps\oa_29\WEB-INF\classes\applicationContext-common.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not determine type for: java.lang.Comparable, for columns: [org.hibernate.mapping.Column(principalId)]


Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0\webapps\oa_29\WEB-INF\classes\applicationContext-common.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not determine type for: java.lang.Comparable, for columns: [org.hibernate.mapping.Column(principalId)]
Caused by: org.hibernate.MappingException: Could not determine type for: java.lang.Comparable, for columns: [org.hibernate.mapping.Column(principalId)]
[解决办法]
看错误是hibernate映射错误

热点排行