connection « Tomcat « JPA Q&A





2. Cannot Open Connection problem in Hibernate + MySQL + Tomcat    coderanch.com

Hi I am a beginner to hibernate. I have prefered to use hibernate with tomcat and mysql. I have done all things that are all to integrate hibernate and mysql. But i got an error. org.hibernate.exception.GenericJDBCException: Cannot open connection This is the configuration code in hibernate.cfg.xml com.mysql.jdbc.Driver jdbc:mysql://localhost:3306/hibernatetutorial root syncro 10 true

3. Tomcat connection broken    forum.hibernate.org

Author Message kincza Post subject: Tomcat connection broken Posted: Wed May 05, 2004 6:28 am Newbie Joined: Fri Mar 19, 2004 11:39 am Posts: 4 Hello, I'm using hibernate V2.1.3 in a Tomcat V4.1.30 servlet container. I made a servlet for providing images from a database. I tried to test my servlet in a simple html page. The html ...

4. Cannot open connection [tomcat JNDI + mysql 4.10]    forum.hibernate.org

i am following the quickstart with tomcat and the example of the Cat in the hibernate reference docs, and i still have problems at runtime when my servlet recalls a simple method of HibernateUtil.java, that follows: Code: HibernateUtil.java public static void connessione(){ ...

5. connection problem in tomcat using JNDI    forum.hibernate.org

I am using hibernate 3.2.6, tomcat 5.5. I tried both dbcp and c3p0 approaches. I have a test servlet to list a content from a table. First 5 tries are ok. However, after 5th try, dbcp gives me error like "pool exhausted". c3po just make the testing servlet hang up. Using JNDI is required. 1). Here is tomcat config file to ...