运行我的网络应用时出现以下错误
加载应用时出现异常 严重:上下文/ integrationapp2的取消部署失败 SEVERE:加载应用程序时出现异常:java.lang.IllegalStateException:ContainerBase.addChild:start:org.apache.catalina.LifecycleException:org.springframework.beans.factory.BeanCreationException:在ServletContext资源中定义名为'sessionFactory'的bean时出错[/WEB-INF/applicationContext.xml]:调用init方法失败;嵌套异常是java.lang.ClassFormatError:方法中的Absent Code属性在类文件package1 / User
中不是本机的或抽象的
我的applicationContext.xml文件如下
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName">
<value>com.mysql.jdbc.Driver</value>
</property>
<property name="url">
<value>jdbc:mysql://localhost:3306/User</value>
</property>
<property name="username">
<value>root</value>
</property>
<property name="password">
<value>argusadmin</value>
</property>
</bean>
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource">
<ref bean="dataSource"/>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
<prop key="hibernate.show_sql">true</prop>
</props>
</property>
<property name="mappingLocations">
<list>
<value>/hibernate.hbm.xml</value>
</list>
</property>
</bean>
<bean id="usernow"
class="package2.UserImpl" >
<property name="userDao" ref="userDao" />
</bean>
<bean id="userDao"
class="package3.UserDaoImpl" >
<property name="sessionFactory" ref="sessionFactory" />
</bean>
enter code here
</beans>
有人请帮忙......