当前位置: 代码迷 >> Web开发 >> 哪儿的错呢
  详细解决方案

哪儿的错呢

热度:380   发布时间:2013-10-01 12:15:56.0
哪里的错呢?
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)]
  相关解决方案