• Post Reply 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:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Hibernate + mysql jdbc on production

 
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Buddies,
I am using JSF + Hibernate + mysql on my application when i put the application on prod, i am seeing this error, when i try to list the users added the db. see:


i did not get to understand, why it is happening.. anyone could i help me, please?

thanks.
 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I can't give you a solution but, if your problem is to untangle the exceptions, here is my suggesstion for what you should look at



...which from my understanding means, that your hibernate instance is not able to connect to the
mysql instance correctly or the connection gets dropped during execution of your
application. Might be a firewall/network issue or a hibernate DS configuration issue.
As stated, I'm not sure.

Hope there're some usefull pointers in it.

Good luck!
 
camilo lopes
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi Steplan

its strange, my config hibernate is:


is not correct?

thanks.
 
Ranch Hand
Posts: 672
4
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure



This shows, that hibernate is not able to connect to mysql server. So, can you please check manually, whether are you able to connect to the mysql server...
 
reply
    Bookmark Topic Watch Topic
  • New Topic