1:环境linux
2:tomcat6.0
现象
tomcat的root目录下放一个jsp可以访问mysql数据库。但是我自己的项目放在webapps下面就是访问不了数据库总是提示
javax.servlet.ServletException: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
哪位高人能指点迷津一下,谢谢
配置文件中有没有下面这句话,没有就加上
`docBase="/usr/java/apache-tomcat/webapps/construct-manage" /> `