| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1419 人关注过本帖
标题:[求助]jsp无法连接mysql
只看楼主 加入收藏
yoyodo
Rank: 1
等 级:新手上路
帖 子:35
专家分:0
注 册:2005-12-8
收藏
 问题点数:0 回复次数:1 
[求助]jsp无法连接mysql

HTTP Status 500 -


type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: org/aspectj/lang/Signature
	org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
	org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
	org.apache.jsp.DataWeb.test_jsp._jspService(org.apache.jsp.DataWeb.test_jsp:63)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

java.lang.NoClassDefFoundError: org/aspectj/lang/Signature
	java.lang.Class.forName0(Native Method)
	java.lang.Class.forName(Class.java:164)
	org.apache.jsp.DataWeb.test_jsp._jspService(org.apache.jsp.DataWeb.test_jsp:48)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

note The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs.



test.jsp:

<%@page contentType="text/html;charset=gb2312"%>
<%
java.sql.Connection conn;
java.lang.String strConn;
try {
Class.forName("org.gjt.mm.mysql.Driver").newInstance();
conn = java.sql.DriverManager.getConnection("jdbc:mysql://localhost/test1","root","");
%>
连接mysql数据库成功
<%
} catch (java.sql.SQLException e) {
out.println(e.toString());
}
%>


以上是我的错误及代码,谢谢帮忙!!!!!!!!!!!!帮我解决下
搜索更多相关主题的帖子: jsp mysql ffffff 
2006-05-22 14:41
mrgreenPB
Rank: 1
等 级:新手上路
帖 子:17
专家分:0
注 册:2006-2-27
收藏
得分:0 
是不是没有装驱动、?
2006-05-27 20:14
快速回复:[求助]jsp无法连接mysql
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.025676 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved