日期:2014-05-18  浏览次数:20621 次

Tomcat 6.0正式版我所有的数据库操作都出错,真是莫名其抄,莫名其抄呀,兄弟进来看看,顶者有分!!!

以前在Tomcat   5.0.28下mysql   5.0与Sql   Server2000所有程序运行正常,

现在换到Tomcat   6.0.10下都不能运行了(数据库还是原来的)

现在随便贴一个以前运行正常的程序。与Tomcat   6.0下运行的错误信息

<meta   http-equiv= "Content-Type "   content= "text/html;   charset=gb2312 ">
<%@   page   contentType= "text/html;   charset=gb2312 "   errorPage= " "   %>
<%@   page   import= "java.util.*,java.sql.* "   %>
<%
                String   m_sql=null;
                ResultSet   m_rs=null;
                String   classID   =   null   ;
String   className=null;
        try{
                Class.forName(   "com.mysql.jdbc.Driver ");
                String     url= "jdbc:mysql://localhost:3306/bookstore ";        
String     user= "root ";        
String     password= "130411 ";  
                Connection     conn=java.sql.DriverManager.getConnection(dbUrl,dbUser,dbPassword);
               
%>
        <table>
                <!----------一级分类------------>
      <%  
                        Statement   stmt   =conn.createStatement();
                    String   sql=   "select   id,classname   from   bookclass   order   by   id "
                        ResultSet   rs   =   stmt.executeQuery(sql);
                                        while(rs.next())    
                                        {    
              classID=   rs.getString(1);
className=rs.getString(2);
        <tr>
                <td   width= "160 "   colspan= "2 "> <a   href= "ClassList.jsp?ClassId= <%=classID%> "> <font   color= "#ff4700 "   style= "FONT-WEIGHT:bold;FONT-SIZE:14px "> <%=className%> </font> </a> </td>
        </tr>
                   
      %>
</table>


#######################错误信息############################

HTTP   Status   500   -  

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

type   Ex