Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Tomcat 6.0.18 - 5.5.25 or hibernate 3

 
Ranch Hand
Posts: 247
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hi

I've developed an application on my machine using tomcat 6.0.18, Java 1.6 and Hibernate 3.
Works a treat!

Until I went to pass the WAR over to a remote server running Tomcat 5.5.25
The application loads and works for a few queries to the database but then throws
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

I don't think it has anything to do with the remote servers setup or mysql has anything to do with it.
As I installed Tomcat 5.5.25 on another local machine and could recreated the problem.

Any idea how to resolve it?

Cheers

Kris
 
Kris Reid
Ranch Hand
Posts: 247
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
I don't think this is actually a problem with tomcat.
I think it is Mysql closing the connection to Hibernate.

I posted a question in the hibernate forum
https://coderanch.com/t/439221/Object-Relational-Mapping/java/MySQLNonTransientConnectionException-No-operations-allowed-after#1953125
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic