Cannot create JDBC driver of class 'org.gjt.mm.mysql.Driver' for connect URL 'null'
来源:百度知道 编辑:UC知道 时间:2024/07/01 03:52:28
做Struts1.2时出错,配好数据源后Tomcat5.5一启动就报错:
Cannot create JDBC driver of class 'org.gjt.mm.mysql.Driver' for connect URL 'null'。
其中struts-config.xml内容如下:
<data-sources>
<data-source key="jdbc/mysql" type="org.apache.commons.dbcp.BasicDataSource">
<set-property property="driverClassName" value="org.gjt.mm.mysql.Driver"/>
<set-property property="url" value="jdbc:mysql://localhost:3306/field"/>
<set-property property="username" value="root"/>
<set-property property="password" value="123456"/>
<set-property property="minCount" value="10"/>
<set-property property="maxCount" value="20"/>
<set-property property="description" value="mysql"/>
<set-property pr
Cannot create JDBC driver of class 'org.gjt.mm.mysql.Driver' for connect URL 'null'。
其中struts-config.xml内容如下:
<data-sources>
<data-source key="jdbc/mysql" type="org.apache.commons.dbcp.BasicDataSource">
<set-property property="driverClassName" value="org.gjt.mm.mysql.Driver"/>
<set-property property="url" value="jdbc:mysql://localhost:3306/field"/>
<set-property property="username" value="root"/>
<set-property property="password" value="123456"/>
<set-property property="minCount" value="10"/>
<set-property property="maxCount" value="20"/>
<set-property property="description" value="mysql"/>
<set-property pr
确定你的mysql驱动放在项目中了么?
1)启动Tomcat服务器,打开浏览器,输入http://localhost:8080/admin(其中localhost是名称服务器或称为主机),
进入管理界面的登陆页面,这时候请输入原来安装时要求输入的用户名和密码,登陆到管理界面,
2)选择Resources-Data sources进入配置数据源界面,选择
Data Source Actions ->选择Create New Data Source,进入配置详细信息界面
主要内容例如下:
JNDI Name: ->jdbc/mysql
Data Source URL ->jdbc:mysql://localhost:3306/test
JDBC Driver Class-> org.gjt.mm.mysql.Driver
3)修改\conf\Catalina\localhost目录下建立一个xml文件,名称为你所发布的web应用的名称.xml,(如testpool.xml)打开添加内容如下:
<?xml version="1.0" encoding="UTF-8"?>
<Context>
<Resource
name="jdbc/mysql"
type="javax.sql.DataSource"
password="123456"
driverClassName="org.gjt.mm.mysql.Driver"
maxIdle="2"
maxWait="50"
u
cannot create the Direct 3D device 怎么办
服务器启动异常!!!Cannot create file D:\mirserver\Mir200\Envir\GameLogItemNameList.txt
安装了DX9,为什么进跑跑卡丁车出现DX 3D Failure,内容是cannot create 512*512 texture
cannot create file C:\boot.ini
巨星MTV制作MTV,总是出现cannot create file"D:工具\巨星MTV\temp\tm6.bep".系统找不到指定的路径。
FRM-41106:You cannot create records without a parent record
虚拟目录Cannot load JDBC driver class 'null'
系统错误error 80070003:cannot create video capture filter如何解决
装好摄像头后 运行amcap程序 提示error1:cannot create video capture filter
我玩跑跑卡丁车时弹出的cannot create 512x512 texture怎么办?