| Author |
Hibernate + mysql jdbc on production
|
camilo lopes
Ranch Hand
Joined: Aug 08, 2007
Posts: 202
|
|
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.
|
Brazil - Sun Certified Java Programmer - SCJP 5
http://www.camilolopes.com/ About Java - Update every Week.
Guide SCJP - tips that you need know http://blog.camilolopes.com.br/livrosrevistaspalestras/
|
 |
Stephan Mueller
Ranch Hand
Joined: May 05, 2010
Posts: 49
|
|
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!
|
1. Make it run - 2. Make it run correctly - 3. Make it pretty OR fast/small - 4. ??? - 5. Profit
|
 |
camilo lopes
Ranch Hand
Joined: Aug 08, 2007
Posts: 202
|
|
hi Steplan
its strange, my config hibernate is:
is not correct?
thanks.
|
 |
Prasad Krishnegowda
Ranch Hand
Joined: Apr 25, 2010
Posts: 503
|
|
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...
|
Regards, Prasad
SCJP 5 (93%)
|
 |
 |
|
|
subject: Hibernate + mysql jdbc on production
|
|
|