I"m using intelliJ IDEA 12.1.3 and I am having an issue setting up the run configuration for a spring-mvc project that uses a tomcat server.

I have the application server pointed at tomcat

run/app configuration image

when I try to run the application, I get this error message

有帮助吗?

解决方案

Issue here is the connection between your driver and db you are trying to connect to. Having looked at your log I can say that there could be a number of reasons why it is occurring.

I'm assuming you have done your basics but just in case see if you can connect to your DB via IDEA Interface directly.

On your right side of IDE should be a vertical tab called "Database" see if your datasource loads up there. If it doesn't well that's the smoking gun right there otherwise keep reading below.

Here is a good blog that helped me diagnose my issue (mine happen to have been active for too long and cut out without me knowing):

http://mysqlblog.fivefarmers.com/2010/09/06/debugging-communication-link-failure-exceptions-in-connectorj/

Hope that works for you, if not I'll help out more.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top