This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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?
 
Similar Threads
Uisng Struts-Spring-Hibernate application
Username existence check using AJAX and Java J2EE
Verification failed on Username existence check using AJAX
struts-spring-hibernate integration
Caused by: org.hibernate.HibernateException: could not instantiate CacheProvider: ...please help me