标签:mysql java web springmvc hibernate jsp
1、错误描述
严重: 抛出了“org.apache.tomcat.dbcp.dbcp.SQLNestedException”异常:Cannot create JDBC driver of class ‘‘ for connect URL ‘null‘ 堆栈: org.apache.tomcat.dbcp.dbcp.BasicDataSource.createConnectionFactory(1452). org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(1371). org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(1044). com.tansuosoft.discoverx.db.Database.getConnection(129). com.tansuosoft.discoverx.dao.DBRequest.getConnection(199). com.tansuosoft.discoverx.dao.DBRequest.sendRequest(512). com.tansuosoft.discoverx.web.app.message.UrgeContext.init(96). com.tansuosoft.discoverx.web.app.message.UrgeContext.<init>(50). com.tansuosoft.discoverx.web.app.message.UrgeContext.getInstance(107). com.tansuosoft.discoverx.web.ContextListener.contextInitialized(113). org.apache.catalina.core.StandardContext.listenerStart(5017). org.apache.catalina.core.StandardContext.startInternal(5531). org.apache.catalina.util.LifecycleBase.start(150). org.apache.catalina.core.ContainerBase.addChildInternal(901). org.apache.catalina.core.ContainerBase.addChild(877). org.apache.catalina.core.StandardHost.addChild(652). org.apache.catalina.startup.HostConfig.deployDescriptor(677). org.apache.catalina.startup.HostConfig$DeployDescriptor.run(1912). java.util.concurrent.Executors$RunnableAdapter.call(511). java.util.concurrent.FutureTask.run(266). java.util.concurrent.ThreadPoolExecutor.runWorker(1142). java.util.concurrent.ThreadPoolExecutor$Worker.run(617). java.lang.Thread.run(745). 信息: 执行SQL语句时出现异常:,原因:Cannot create JDBC driver of class ‘‘ for connect URL ‘null‘ 九月 07, 2015 4:36:04 下午 com.tansuosoft.discoverx.dao.DBRequest sendRequest 信息: SQL执行错误:“Cannot create JDBC driver of class ‘‘ for connect URL ‘null‘”,SQL语句=“ 严重: 抛出了“org.apache.tomcat.dbcp.dbcp.SQLNestedException”异常:Cannot create JDBC driver of class ‘‘ for connect URL ‘null‘ 堆栈: org.apache.tomcat.dbcp.dbcp.BasicDataSource.createConnectionFactory(1452). org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(1371). org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(1044). org.apache.catalina.core.StandardContext.listenerStart(5017). org.apache.catalina.core.StandardContext.startInternal(5531). org.apache.catalina.util.LifecycleBase.start(150). org.apache.catalina.core.ContainerBase.addChildInternal(901). org.apache.catalina.core.ContainerBase.addChild(877). org.apache.catalina.core.StandardHost.addChild(652). org.apache.catalina.startup.HostConfig.deployDescriptor(677). org.apache.catalina.startup.HostConfig$DeployDescriptor.run(1912). java.util.concurrent.Executors$RunnableAdapter.call(511). java.util.concurrent.FutureTask.run(266). java.util.concurrent.ThreadPoolExecutor.runWorker(1142). java.util.concurrent.ThreadPoolExecutor$Worker.run(617). java.lang.Thread.run(745). 九月 07, 2015 4:36:04 下午 org.apache.catalina.core.StandardContext listenerStart 严重: Exception sending context initialized event to listener instance of class com.tansuosoft.discoverx.web.ContextListener common.exception.DBException: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class ‘‘ for connect URL ‘null‘ at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5017) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5531) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:677) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1912) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class ‘‘ for connect URL ‘null‘ at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1452) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1371) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044) ... 17 more Caused by: java.sql.SQLException: No suitable driver at java.sql.DriverManager.getDriver(DriverManager.java:315) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1437) ... 22 more 九月 07, 2015 4:36:04 下午 org.apache.catalina.core.StandardContext startInternal 严重: One or more listeners failed to start. Full details will be found in the appropriate container log file 九月 07, 2015 4:36:04 下午 org.apache.catalina.core.StandardContext startInternal 严重: Context [/osp] startup failed due to previous errors 九月 07, 2015 4:36:04 下午 com.tansuosoft.discoverx.web.ContextListener fireEvent 信息: 触发"onsystemshutdown"类型的事件处理程序: 九月 07, 2015 4:36:04 下午 com.tansuosoft.discoverx.db.Database executeScalar 信息: 执行SQL语句时出现异常:原因:Cannot create JDBC driver of class ‘‘ for connect URL ‘null‘ 严重: 抛出了“org.apache.tomcat.dbcp.dbcp.SQLNestedException”异常:Cannot create JDBC driver of class ‘‘ for connect URL ‘null‘ 堆栈: org.apache.tomcat.dbcp.dbcp.BasicDataSource.createConnectionFactory(1452). org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(1371). org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(1044). org.apache.catalina.core.StandardContext.listenerStop(5064). org.apache.catalina.core.StandardContext.stopInternal(5726). org.apache.catalina.util.LifecycleBase.stop(232). org.apache.catalina.util.LifecycleBase.start(160). org.apache.catalina.core.ContainerBase.addChildInternal(901). org.apache.catalina.core.ContainerBase.addChild(877). org.apache.catalina.core.StandardHost.addChild(652). org.apache.catalina.startup.HostConfig.deployDescriptor(677). org.apache.catalina.startup.HostConfig$DeployDescriptor.run(1912). java.util.concurrent.Executors$RunnableAdapter.call(511). java.util.concurrent.FutureTask.run(266). java.util.concurrent.ThreadPoolExecutor.runWorker(1142). java.util.concurrent.ThreadPoolExecutor$Worker.run(617). java.lang.Thread.run(745). 信息: 执行SQL语句时出现异常:原因:Cannot create JDBC driver of class ‘‘ for connect URL ‘null‘ 严重: 抛出了“org.apache.tomcat.dbcp.dbcp.SQLNestedException”异常:Cannot create JDBC driver of class ‘‘ for connect URL ‘null‘ 堆栈: org.apache.tomcat.dbcp.dbcp.BasicDataSource.createConnectionFactory(1452). org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(1371). org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(1044). org.apache.catalina.core.StandardContext.listenerStop(5064). org.apache.catalina.core.StandardContext.stopInternal(5726). org.apache.catalina.util.LifecycleBase.stop(232). org.apache.catalina.util.LifecycleBase.start(160). org.apache.catalina.core.ContainerBase.addChildInternal(901). org.apache.catalina.core.ContainerBase.addChild(877). org.apache.catalina.core.StandardHost.addChild(652). org.apache.catalina.startup.HostConfig.deployDescriptor(677). org.apache.catalina.startup.HostConfig$DeployDescriptor.run(1912). java.util.concurrent.Executors$RunnableAdapter.call(511). java.util.concurrent.FutureTask.run(266). java.util.concurrent.ThreadPoolExecutor.runWorker(1142). java.util.concurrent.ThreadPoolExecutor$Worker.run(617). java.lang.Thread.run(745). 九月 07, 2015 4:36:05 下午 com.tansuosoft.discoverx.web.ContextListener fireEvent 严重: 抛出了“java.lang.RuntimeException”异常:无法初始化“TotalAccessCount”对应的自增长序号! 堆栈: org.apache.catalina.core.StandardContext.listenerStop(5064). org.apache.catalina.core.StandardContext.stopInternal(5726). org.apache.catalina.util.LifecycleBase.stop(232). org.apache.catalina.util.LifecycleBase.start(160). org.apache.catalina.core.ContainerBase.addChildInternal(901). org.apache.catalina.core.ContainerBase.addChild(877). org.apache.catalina.core.StandardHost.addChild(652). org.apache.catalina.startup.HostConfig.deployDescriptor(677). org.apache.catalina.startup.HostConfig$DeployDescriptor.run(1912). java.util.concurrent.Executors$RunnableAdapter.call(511). java.util.concurrent.FutureTask.run(266). java.util.concurrent.ThreadPoolExecutor.runWorker(1142). java.util.concurrent.ThreadPoolExecutor$Worker.run(617). java.lang.Thread.run(745). 严重: 抛出了“org.apache.tomcat.dbcp.dbcp.SQLNestedException”异常:Cannot create JDBC driver of class ‘‘ for connect URL ‘null‘ 堆栈: org.apache.tomcat.dbcp.dbcp.BasicDataSource.createConnectionFactory(1452). org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(1371). org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(1044). org.apache.catalina.core.StandardContext.listenerStop(5064). org.apache.catalina.core.StandardContext.stopInternal(5726). org.apache.catalina.util.LifecycleBase.stop(232). org.apache.catalina.util.LifecycleBase.start(160). org.apache.catalina.core.ContainerBase.addChildInternal(901). org.apache.catalina.core.ContainerBase.addChild(877). org.apache.catalina.core.StandardHost.addChild(652). org.apache.catalina.startup.HostConfig.deployDescriptor(677). org.apache.catalina.startup.HostConfig$DeployDescriptor.run(1912). java.util.concurrent.Executors$RunnableAdapter.call(511). java.util.concurrent.FutureTask.run(266). java.util.concurrent.ThreadPoolExecutor.runWorker(1142). java.util.concurrent.ThreadPoolExecutor$Worker.run(617). java.lang.Thread.run(745). 信息: 执行SQL语句时出现异常:原因:Cannot create JDBC driver of class ‘‘ for connect URL ‘null‘ 信息: SQL执行错误:“Cannot create JDBC driver of class ‘‘ for connect URL ‘null‘”, 严重: 抛出了“org.apache.tomcat.dbcp.dbcp.SQLNestedException”异常:Cannot create JDBC driver of class ‘‘ for connect URL ‘null‘ 堆栈: org.apache.tomcat.dbcp.dbcp.BasicDataSource.createConnectionFactory(1452). org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(1371). org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(1044). org.apache.catalina.core.StandardContext.listenerStop(5064). org.apache.catalina.core.StandardContext.stopInternal(5726). org.apache.catalina.util.LifecycleBase.stop(232). org.apache.catalina.util.LifecycleBase.start(160). org.apache.catalina.core.ContainerBase.addChildInternal(901). org.apache.catalina.core.ContainerBase.addChild(877). org.apache.catalina.core.StandardHost.addChild(652). org.apache.catalina.startup.HostConfig.deployDescriptor(677). org.apache.catalina.startup.HostConfig$DeployDescriptor.run(1912). java.util.concurrent.Executors$RunnableAdapter.call(511). java.util.concurrent.FutureTask.run(266). java.util.concurrent.ThreadPoolExecutor.runWorker(1142). java.util.concurrent.ThreadPoolExecutor$Worker.run(617). java.lang.Thread.run(745). 九月 07, 2015 4:36:05 下午 org.apache.catalina.core.StandardContext listenerStop 严重: Exception sending context destroyed event to listener instance of class com.tansuosoft.discoverx.web.ContextListener common.exception.DBException: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class ‘‘ for connect URL ‘null‘ at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5726) at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:677) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1912) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class ‘‘ for connect URL ‘null‘ at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1452) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1371) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044) ... 18 more Caused by: java.sql.SQLException: No suitable driver at java.sql.DriverManager.getDriver(DriverManager.java:315) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1437) ... 23 more 九月 07, 2015 4:36:05 下午 org.apache.catalina.startup.HostConfig deployDescriptor 信息: Deployment of configuration descriptor E:\apache-tomcat-7.0.63\conf\Catalina\localhost\osa.xml has finished in 5,836 ms
2、错误原因
连接MySQL数据库时,配置数据库驱动和MySQL连接路径、账号、密码时,都是空导致报错
3、解决办法
在配置文件中配置数据库驱动、账号、密码和数据库连接路径
版权声明:本文为博主原创文章,未经博主允许不得转载。
Cannot create JDBC driver of class '' for connect URL 'null'
标签:mysql java web springmvc hibernate jsp
原文地址:http://blog.csdn.net/you23hai45/article/details/48293415