谁帮我看看这个jsp的错误

来源:百度知道 编辑:UC知道 时间:2024/05/30 15:09:49
严重: Servlet.service() for servlet jsp threw exception
com.mysql.jdbc.CommunicationsException: The driver was unable to create a connection due to an inability to establish the client portion of a socket.

This is usually caused by a limit on the number of sockets imposed by the operating system. This limit is usually configurable.

For Unix-based platforms, see the manual page for the 'ulimit' command. Kernel or system reconfiguration may also be required.

For Windows-based platforms, see Microsoft Knowledge Base Article 196271 (Q196271).
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2814)
at com.mysql.jdbc.Connection.<init>(Connection.java:1553)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at org.apache.jsp.vote.index_jsp._jspService(index_jsp.ja

查看一下加载驱动的代码
Class.forName("jdbc:mysql://localhost:3306/...");
这个是否正确,再检查一下驱动包是否引进来了。

你调用的驱动程序不正确,导致无法加载

你调用的驱动无法连接到mysql,请检查你所配置的驱动和端口号,以及mysql服务是否已经打开。

你贴错误还比不上贴原代码。帮不上
学习

你条用的驱动错了,看下你的源程序