严重: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.component.PojoComponentTuplizer]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
报了这个莫名其妙的东西
------解决方案--------------------------------------------------------
可能原因:看看这个包 javassist.jar
如果没有问题的话,建议用以下方式调试下看看
<value>com/yanbai/entity/Ybdeviceapplyform.hbm.xml</value>
<value>com/yanbai/entity/Ybdeviceapplyformflow.hbm.xml</value>
<value>com/yanbai/entity/Ybdeviceapplyformitem.hbm.xml</value>
<value>com/yanbai/entity/Ybdeviceicon.hbm.xml</value>
<value>com/yanbai/entity/Ybdeviceitem.hbm.xml</value>
<value>com/yanbai/entity/Ybdeviceitemflow.hbm.xml</value>
<value>com/yanbai/entity/Ybdeviceitemstatus.hbm.xml</value>
<value>com/yanbai/entity/Ybdevicetree.hbm.xml</value>
这么多影射文件,一个一个加进来,不要一起加进来。
看看是加到哪个出的问题,去检查pojo类和hbm文件
如果解决不了,那么把exception的cause by部分贴来看看