1. java.sql.SQLException: Connection com.mysql.jdbc.JDBC4Connection@1ab9c42 is closed    stackoverflow.com

Hi all I'm using JSP+Struts2+Tomcat6+Hibernate+mysql as my J2EE framework. the project works fine on local but when I put it on the server after some hours I get this error:

'org.hibernate.exception.GenericJDBCException: could not ...

2. Hibernate, JNDI, JDBC.    coderanch.com

3. JDBC connection using jndi solution    forum.hibernate.org

4. JNDI Name jdbc is not bound in this Context    forum.hibernate.org

Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: 3.2 Mapping documents: Code between sessionFactory.openSession() and session.close(): Full stack trace of any exception that occurs: 19:25:08,265 INFO NamingHelper:26 - JNDI InitialContext properties:{} 19:25:08,265 FATAL DatasourceConnectionProvider:55 - Could not find datasource: java:comp/env/jdbc/hfydb javax.naming.NameNotFoundException: Name jdbc is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:769) at org.apache.naming.NamingContext.lookup(NamingContext.java:139) at org.apache.naming.NamingContext.lookup(NamingContext.java:780) at org.apache.naming.NamingContext.lookup(NamingContext.java:139) ...

5. JDBC,JNDI,Hibernate    forums.oracle.com

6. JDBC,JNDI,Hibernate    forums.oracle.com