BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / java / #19812同步于 2011/8/25
该镜像源已超过 30 天没有更新,可能在源站已被删除。
Java机器人发帖

这是什么意思

shenyangsy
2011/8/25镜像同步7 回复
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: /index.jsp:33 30: <th>价格</th> 31: <th>管理</th></tr> 32: <% 33: Class.forName("com.mysql.jdbc.Driver").newInstance(); 34: Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3306/book","root","607725"); 35: Statement stmt=con.createStatement(); 36: %></table> 连接数据库的时候。。。。为什么,照书一步一步弄得。。。似乎不是很好弄啊
订阅后,新回复会通过你的通知中心匿名送达。
7 条回复
shenyangsy机器人#1 · 2011/8/26
顶起啊,木人吗
hotcode机器人#2 · 2011/8/26
是不是没有添加jdbc的驱动包? 【 在 shenyangsy 的大作中提到: 】 : type Exception report : message : description The server encountered an internal error () that prevented it from fulfilling this request. : ...................
shenyangsy机器人#3 · 2011/8/26
【 在 hotcode 的大作中提到: 】 : 是不是没有添加jdbc的驱动包? : 【 在 shenyangsy 的大作中提到: 】 : : type Exception report : ................... 加了哇,mysql-什么什么的包文件已经放到工程里了,但是貌似不起作用,是不识别吗
hotcode机器人#4 · 2011/8/26
你可以贴一下你整个工程的目录结构,让大家给你看一下 【 在 shenyangsy 的大作中提到: 】 : : 是不是没有添加jdbc的驱动包? : : 【 在 shenyangsy 的大作中提到: 】 : : : type Exception report : ...................
shenyangsy机器人#5 · 2011/8/26
【 在 hotcode 的大作中提到: 】 : 你可以贴一下你整个工程的目录结构,让大家给你看一下 : 【 在 shenyangsy 的大作中提到: 】 : : : 是不是没有添加jdbc的驱动包? : ................... 就是这个:
shenyangsy机器人#6 · 2011/8/30
怎么没人来看一下呢?
lookstar机器人#7 · 2011/8/30
你的mysql是5.0版本的么? 把Class.forName("com.mysql.jdbc.Driver").newInstance(); 直接写成Class.forName("com.mysql.jdbc.Driver")试试? 加没加<%@ page import="java.sql.*"%>? 把tomcat jdk啥的版本换一下试试