HTTP Status 500 - 错误,应如何解决?请高人指点……

HTTP Status 500 - 错误,应如何解决?请高人指点……

HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

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

exception

org.apache.jasper.JasperException: Exception in JSP: /czj/index.jsp:82

79:
80:  <%
81:
82:  twoS=twoSM.IDSecSort_Flag("0201");
83:   secFlag=twoS.getSecFlag();
84:   secName=twoS.getSecName();
85:  %>


Stacktrace:
        org.apache.jasper.servlet.JspServletWrapper.handleJspException(jasper5-compiler-5.5.23.jar.so)
        org.apache.jasper.servlet.JspServletWrapper.service(jasper5-compiler-5.5.23.jar.so)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(jasper5-compiler-5.5.23.jar.so)
        org.apache.jasper.servlet.JspServlet.service(jasper5-compiler-5.5.23.jar.so)
        javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.23.jar.so)
        filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:123)


root cause

javax.servlet.ServletException: <h5>【Database Connection Failed! Please contact to gt_lwj@163.com】</h5>ErrorInfo:org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class 'com.mysql.jdbc.Driver' for connect URL 'jdbc:mysql://localhost/czj?useUnicode=true&characterEncoding=GBK'
        org.apache.jasper.runtime.PageContextImpl.doHandlePageException(jasper5-runtime-5.5.23.jar.so)
        org.apache.jasper.runtime.PageContextImpl.handlePageException(jasper5-runtime-5.5.23.jar.so)
        org.apache.jsp.czj.index_jsp._jspService(index_jsp.java:870)
        org.apache.jasper.runtime.HttpJspBase.service(jasper5-runtime-5.5.23.jar.so)
        javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.23.jar.so)
        org.apache.jasper.servlet.JspServletWrapper.service(jasper5-compiler-5.5.23.jar.so)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(jasper5-compiler-5.5.23.jar.so)
        org.apache.jasper.servlet.JspServlet.service(jasper5-compiler-5.5.23.jar.so)
        javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.23.jar.so)
        filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:123)


root cause

org.apache.commons.db.connectpool.DBConnectException: <h5>【Database Connection Failed! Please contact to gt_lwj@163.com】</h5>ErrorInfo:org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class 'com.mysql.jdbc.Driver' for connect URL 'jdbc:mysql://localhost/czj?useUnicode=true&characterEncoding=GBK'
        org.apache.commons.db.connectpool.DBConnect.<init>(DBConnect.java:58)
        czj.secSortManage.IDSecSort_Flag(secSortManage.java:145)
        org.apache.jsp.czj.index_jsp._jspService(index_jsp.java:305)
        org.apache.jasper.runtime.HttpJspBase.service(jasper5-runtime-5.5.23.jar.so)
        javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.23.jar.so)
        org.apache.jasper.servlet.JspServletWrapper.service(jasper5-compiler-5.5.23.jar.so)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(jasper5-compiler-5.5.23.jar.so)
        org.apache.jasper.servlet.JspServlet.service(jasper5-compiler-5.5.23.jar.so)
        javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.23.jar.so)
        filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:123)


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


--------------------------------------------------------------------------------

Apache Tomcat/5.5.20
【Database Connection Failed! Please contact to gt_lwj@163.com

好長,粗略看了一下,可能是以上的問題
敬请高人指点……不甚感激!!!
我也只是推斷,不知正不正確:
 
1)你的環境是不是: Apache+java+mysql

出現問題的地方是連接mysql的地方

我也只是推斷,樓主自已看吧