回 帖 发 新 帖 刷新版面

主题:<菜鸟  急问 >在jsp中连接mysql 出现如下问题::

刚刚接触这个方面  照网上给的来弄的  不知怎么回事???


type Exception report

message

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

exception

javax.servlet.ServletException: org.gjt.mm.mysql.Driver
    org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:867)
    org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800)
    org.apache.jsp.first_jsp._jspService(first_jsp.java:84)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


root cause

java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1383)
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1230)
    org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:184)
    org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:110)
    java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    java.lang.Class.forName0(Native Method)

回复列表 (共2个回复)

沙发

you doesn't set the mysql Driver
没装mysql的jdbc驱动

板凳

驱动器问题.

我来回复

您尚未登录,请登录后再回复。点此登录或注册