Deployment error: "Incorrect key file for table 'X'; try to repair it" on JBoss EAP 5

Solution Verified - Updated -

Issue

  • During the deployment of the application the following error appears in the server.log file and the JBoss EAP fails to complete the deployment:
WARN  [org.hibernate.util.JDBCExceptionReporter] (main) SQL Error: 126, SQLState: HY000
ERROR [org.hibernate.util.JDBCExceptionReporter] (main) Incorrect key file for table '/tmp/#sql_7a6_0.MYI'; try to repair it
ERROR [org.hibernate.ejb.AbstractEntityManagerImpl] (main) Unable to mark for rollback on PersistenceException: 
java.lang.IllegalStateException: [com.arjuna.ats.internal.jta.transaction.arjunacore.nosuchtx] [com.arjuna.ats.internal.jta.transaction.arjunacore.nosuchtx] No such transaction!

Environment

  • Red Hat JBoss Enterprise Application platform (EAP) 5.1.2
  • MySQL Database 5.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.