Struts Problem Report

\

Struts has detected an unhandled exception:

\

Messages:  

Table ‘tour.hibernate_sequence’ doesn’t exist

error performing isolated work

File:  org/hibernate/exception/internal/SQLExceptionTypeDelegate.java

Line number: 63

org.hibernate.exception.SQLGrammarException: error performing isolated work

com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table ‘tour.hibernate_sequence’ doesn’t exist

Solution:?

\

\

\

java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory

The solution is missing: commons-logging-1.1.1.jar

 

\

\

\

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sessionFactory’ defined in file [D:\workspace1\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\Struts2_Spring_hibernate2\WEB-INF\classes\ bean.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Unable to load class [ com.lm.model.Student] declared in Hibernate configuration entry

Solution: When integrating the Spring framework with the Hibernate framework

Jar in Spring conflicts with the ASM. jar package in Hibernate

\

\

\

Overflow or underflow casting: “15822833227” into class java.lang.Integer – [unknown location]

Overflow or underflow casting: “” Into class java.lang.integer – [Unknown location]

No result defined for action com.three.action.CustomerAction and result input – action – file:/D:/workspace1/.metadata/.plugins/org.eclipse.wst.server.core/tmp2/wtpwebapps/wuliu_01/WEB-INF/classes/struts.xml:2 For 3

Actions and Results Input actions file does not define results

\

Solution: Wrong attribute, overflow type

\

\

Exception in thread “main” org.hibernate.MappingException: Unknown entity: com.lm.model.Student

\

Solution: No object-relational mapping file is configured

\