Tomcat6 can't connect to MySql (The driver has not received any packets from the server)?

I solved this problem. The reason why this error occurs is tomcat security restrictions.

I solved this problem. The reason why this error occurs is tomcat security restrictions. You have to add following line to your $TOMCAT-CONFIG/policy.

D/04webapps. Policy permission java.net. SocketPermission "127.0.0.1:3306", "connect"; Works for me, hope it will work for you too :).

Please try with an "official" Connector/J 5.1 i.e. Distributed by MySQL, not a deb (note that I have nothing against deb). Also please enable --log-warnings on the mysql server and see if anything is showing up in your error logs.

I use the official connector version 5.1.11, enabled --log-warnings. Updated the question – Tobias Wiesenthal Feb 3 '10 at 7:30.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions