I am new to EJB; I am writing EJB (3.1) program in JBoss 7.1 - I am using MySQL DB with JPA. While executing the program, I am facing the GenericJDBCException: Could not open connection. It is happening only for certain tables in the database; but NOT for all tables. My code is able to access few of the tables in the same database. Please help me resolve the issue.
I've encountered this issue before, and the cause is a transaction that has stopped working. Try to see if you have an exception that caused the transaction to rollback. If this hasn't occurred, check if your database transaction hasn't timed out.