tomcat 启动报错 org.springframework.beans.factory.BeanCreationException
灰太狼A代 2015-05-19 05:09:23 具体错误代码:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.ClassFormatError: Unknown constant tag 44 in class file org/hibernate/tuple/TuplizerLookup
Caused by: java.lang.ClassFormatError: Unknown constant tag 44 in class file org/hibernate/tuple/TuplizerLookup
配置文件如下:
<!-- 2、配置Spring session工厂 -->
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource" ref="dataSource" />
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
<prop key="hibernate.show_sql">true</prop>
<!-- prop key="hibernate.hbm2ddl.auto">create</prop> -->
</props>
</property>
<property name="mappingResources">
<list>
<value>com/panda/model/Admin.hbm.xml</value>
<value>com/panda/model/Authorinfo.hbm.xml</value>
<value>com/panda/model/Bookinadvance.hbm.xml</value>
<value>com/panda/model/Bookinfo.hbm.xml</value>
<value>com/panda/model/Bookpublisher.hbm.xml</value>
<value>com/panda/model/Cartinfo.hbm.xml</value>
<value>com/panda/model/Orderinfo.hbm.xml</value>
<value>com/panda/model/Type.hbm.xml</value>
<value>com/panda/model/Userinfo.hbm.xml</value>
</list>
</property>
</bean>