本人新手求帮助啊!!!
tomcat在运行的时候会出现自动关闭的现象,日志如下.请求大家的帮助~八月 09, 2011 8:52:11 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [] registered the JDBC 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.
八月 09, 2011 8:52:13 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/test] is still processing a request that has yet to finish. This is very likely to create a memory leak. You can control the time allowed for requests to finish by using the unloadDelay attribute of the standard Context implementation.
八月 09, 2011 8:52:13 上午 org.apache.coyote.AbstractProtocol stop
信息: Stopping ProtocolHandler ["http-apr-8080"]
tomcat在运行的时候会出现自动关闭的现象,日志如下.请求大家的帮助~八月 09, 2011 8:52:11 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [] registered the JDBC 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.
八月 09, 2011 8:52:13 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/test] is still processing a request that has yet to finish. This is very likely to create a memory leak. You can control the time allowed for requests to finish by using the unloadDelay attribute of the standard Context implementation.
八月 09, 2011 8:52:13 上午 org.apache.coyote.AbstractProtocol stop
信息: Stopping ProtocolHandler ["http-apr-8080"]
解决方案 »
- 正则表达式查询,麻烦大神路过帮一下
- 模版页面中加上<%=request.getContextPath()%>有什么优势
- oracle 处理日期问题
- 求hibernate查询数据和显示数据代码
- JSP中一个字符串截取的问题,在线请教
- 下面的代码有问题吗????????????????????????????????(50分)
- 这个错误是什么意思?
- The document type declaration for root element type "struts" must end with '>'.
- 如何poi输出excel转为file
- 微信公众号开发当前页面的url未注册问题
- 复核过后的流水账目不再允许修改怎么实现?
- struts2的疑问??
第一个是jdbc驱动没在程序中注销,它告诉你tomcat已经帮你注销了。
第二个是提示/test应用中还有请求没有完成。
四楼的大哥,我找不到startup.bat这个文件.是不是我版本太新的事呢?
呃...这个错误一出现tomcat就关了,也看不到后续运行的结果了....
这个错误是这样发生的我用一个javabean把jsp和mysql连接了起来然后在dreamweaver下做了一个测试文件来测试javabean是否能用.但是在按下f12之后tomcat会出现自动关闭的现象,其它的文件则访问正常.我把javabean文件和jsp文件也发上来吧,请大家看看是不是这两个文件出了什么问题.
javabean
package test.db;
import java.io.*;
import java.sql.*;
public class DatabaseCon {
public Connection con;
public String dbDriver="org.gjt.mm.mysql.Driver";
public String URL = "jdbc:mysql://localhost/tcpl";
public String Message;
public boolean connection() {
try{
Class.forName("dbDriver");
}
catch(ClassNotFoundException ex){
Message=ex.getMessage();
System.exit(-1);
}
try{
con = DriverManager.getConnection(URL,"root","1");
return true;
}
catch(SQLException ex){
Message=ex.getMessage();
return false;
}
}
public boolean close(){
try{
con.close();
return true;
}
catch(Exception ex){
Message=ex.getMessage();
return false;
}
}
public ResultSet exeSQL(String sqlstr) {
try{
connection();
Statement stmt=con.createStatement();
ResultSet rs=stmt.executeQuery(sqlstr);
return rs;
} catch(Exception ex){
Message=ex.getMessage();
}
return null;
}
public String getString(ResultSet rs,String str){
try{
return rs.getString(str);
}catch(Exception ex){
Message=ex.getMessage();
}
return null;
}
}
jsp
<%@ page contentType="text/html; charset=GB2312" import="java.sql.*" %>
<html>
<head>
<title>
测试数据库连接Bean
</title>
</head>
<jsp:useBean id="dbBean" scope="session" class="test.db.DatabaseCon" />
<body bgcolor="#ffffff">
<%
ResultSet rs=dbBean.exeSQL("select * from tushumingxi");
String str;
try{
while(rs.next()){
str=dbBean.getString(rs,"banshe");%>
【<%=dbBean.getString(rs,"shu_name")%>】 -> <%=str%><br>
<%
}}catch(Exception ex){
out.print(ex.getMessage());
}
%>
</body>
</html>