易截截图软件、单文件、免安装、纯绿色、仅160KB

jsp 连接mysql报错 - Java / Eclipse

myeclipse报错

严重: A web application registered the JBDC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2010-5-20 14:35:20 org.apache.catalina.loader.WebappClassLoader clearReferencesStopTimerThread
严重: A web application appears to have started a TimerThread named [MySQL Statement Cancellation Timer] via the java.util.Timer API but has failed to stop it. To prevent a memory leak, the timer (and hence the associated thread) has been forcibly cancelled.
请问这是怎么回事?
com.mysql.jdbc.Driver 你的jdbc参数错误!!! userName ,password ,对一下是否正确! 还有就是你的jdbc驱动程序是否正确!

连接未能正确关闭,会导致内存泄漏
but failed to unregister it when the web application was stopped.
但是在应用关闭的时候未能卸载
To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
为防止内存泄漏,该JDBC驱动被强制卸载了

请处理好你的连接


给个能用的代码你对比一下好了

<%@ page contentType="text/html;charset=gb2312"%>
<%-- 导入java.sql包,表示要使用数据库操作 --%>
<%@ page import="java.sql.*"%>
<html>
<head>
<title>登陆</title>
</head>
<body>
<center>
<h1>登陆范例——用户名及密码固定</h1>
<hr>


相关问答:

关于AJAX和JSP的一些小问题~ - Java / Web 开发

我JSP的页面是:
<%@ page language="java" contentType="text/html; charset=gb2312"
  %>
<script>
function Save(){
xmlHttp=GetXmlHttpObject()
if(xmlHttp==nul ......

HTML标签底层的实现原理、机制 - Java / Java SE

为什么HTML以及一些其它标签会显示一些特定表现形式呢?如HTML中的换行标签<BR/>在底层是怎样实现的呢?现实的原理是什么呢
去W3C官方网站上,看看吧!我想一看你就明白了

我猜和编译原理有关,浏览器里可 ......

myeclipse+mysql的配置问题 - Java / Eclipse

我是个新手,望高手解答
我现在已经安装了mysql,也有mysql的jdbc。但我怎么配置后,才能在MyEclipse里操作mysql呢?请高手说详细点
打开Myeclipse----window---open perspective---MyEclipse database explorer-- ......

java中的注解可以有哪些? - Java / Java EE

如: @superwaring("unchecked");
这个里面都可以取哪些值啊,还有类似的 @superwaring标签有哪些啊
没用过。。

看jee的api
javax.persistence里
@superwaring("unchecked");只是忽略 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号