It's not a secret anymore!*
The moose likes Spring and the fly likes Communication failure during handshake. Is there a server running on localhost:3306? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Communication failure during handshake. Is there a server running on localhost:3306?" Watch "Communication failure during handshake. Is there a server running on localhost:3306?" New topic
Author

Communication failure during handshake. Is there a server running on localhost:3306?

Vinod Vinu
Ranch Hand

Joined: Aug 30, 2009
Posts: 217
Iam working on a web application using struts, spring and hibernate. Iam using DI of spring.
Whenever i try to connect to mysql, it displays me the following below error. But when i use to connect to sql server 2005 by just changing the driver class, dialect properties, etc it works well.

Iam getting the following error:-



Following is my applicationContext.xml:-


web.xml:-


struts-config.xml:-



Can you guys help me to figure out this issue ? Whats the problem with mysql database connectivity? I double checked mysql and it is working very well.
thanks in advance


Vinod Kumar Nair
"Any fool can write code that a computer can understan. Good programmers write code that humans can understand."
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Communication failure during handshake. Is there a server running on localhost:3306?