- 浏览: 1988871 次
- 性别:
- 来自: 深圳
文章分类
- 全部博客 (509)
- JavaEE (122)
- Oracle数据库 (29)
- JavaScript (37)
- SAP (5)
- MySql数据库 (7)
- JavaSE (4)
- Ajax (1)
- jQuery (13)
- SSH框架 (36)
- Web Service (10)
- JSF框架 (2)
- JBPM (0)
- ireport报表 (2)
- ibatis (5)
- Hibernate (31)
- JSP (11)
- Tomcat 服务器 (20)
- Other (19)
- JavaWeb (4)
- Maven (11)
- OSWorkFlow (10)
- HTML (13)
- Exception汇总 (7)
- SVN (2)
- 笑话 (1)
- JSTL (1)
- WebSphere Message Broker (13)
- ANT命令 (3)
- Liunx (12)
- Struts2 (26)
- Eclipse (6)
- DOS (3)
- Flex (11)
- WebSphere (1)
- 开发常用工具 (3)
- Junit (2)
- EJB (4)
- Struts1.2 (2)
- Jboss (1)
- Android (2)
- Java框架源码解析 (1)
- Spring (4)
- MyBatis (6)
- SpringMVC (4)
- Jetty (2)
- 数据库表设计 (1)
- SSO (4)
最新评论
-
贝塔ZQ:
也可以试试PageOffice插件,觉得更简单点
Jxl操作Excel设置背景、字体颜色、对齐方式、列的宽度 -
jia1208:
...
Could not publish server configuration for Tomcat v6.0 Server at localhost. -
u011274527:
赞
java.io.EOFException java.io.ObjectInputStream$PeekInputStream.readFully 错误 -
旭旭小牛啦:
怎么没哟了,继续赛
jQuery 选择器 -
wzw3919:
100行会报空指针
Java 解压缩zip文件
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of cla
- 博客分类:
- Tomcat 服务器
获取数据源错误信息如下:
信息: Server startup in 1290 ms
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)
at pack.java.datasource.demo.DataSourceDemo.getConnection(DataSourceDemo.java:31)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:70)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:394)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getDriver(DriverManager.java:243)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1437)
... 23 more
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)
at pack.java.datasource.demo.DataSourceDemo.getConnection(DataSourceDemo.java:31)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:70)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:394)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getDriver(DriverManager.java:243)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1437)
... 23 more
解决方案:
是因为的Tomcat 的版本不同, 配置的数据源也不相同..会产生此错误.
发表评论
-
Maven构建大型互联网架构springmvc+mybatis+Restfull+Webservice+Bootstrap
2015-04-12 23:28 71SpringMVC + Mybatis + SpringS ... -
手机App后台架构:Springmvc+SpringSecurity+mybatis+Rest+Quartz+Bootstrap Html5( Maven构建)
2015-04-09 01:39 76APP后台架构Maven构建,模拟大型互联网架构,支持高并发 ... -
maven构建springmvc+mybatis+rest+webservice+bootstrap html5(cms开源项目)
2015-04-09 01:21 85SpringMVC + Mybatis + SpringS ... -
使用dos命令查找tomncat端口是否被占用,并且清除之。
2014-07-15 20:26 1150如果启动tomcat发现端口被占用。 你可以使用dos命令先 ... -
创建tomcat服务器时报Cannot create a server using the selected type
2014-03-08 14:08 1066使用eclipse创建tomcat6.0服务器时 却发现创 ... -
Could not publish server configuration for Tomcat v6.0 Server at localhost.
2014-01-04 15:50 54689经常在使用tomcat服务器的时候 总会发生一些莫名其妙的错 ... -
在eclipse中远程调试tomcat
2013-12-29 22:15 3120如果tomcat服务器安装在其他的机器上 。然后,在本地把 ... -
The class org.apache.taglibs.standard.functions.Functions specified in TLD for t
2012-03-20 10:19 2640在jsp页面引用: <%@ taglib uri ... -
Tomcat 乱码解决方案-字符编码的配置
2012-03-07 19:33 1172在Tomcat下conf文件夹下server.xml ... -
tomcat 6.029启动时 严重: Exception looking up UserDatabase under key UserDatabase
2011-12-09 14:36 6143tomcat在启动时报如下错误: 严重: Exception ... -
Tomcat容器中的context.xml介绍
2011-12-07 18:04 1406Tomcat下的apache-tomcat-6.0.29\co ... -
MyEclipse中tomcat部署时,找不到web项目的解决方案
2011-08-12 19:13 22144在MyEclipse中,使用tomcat 部署web项目时,选 ... -
tomcat-6.0.29配置数据源
2011-06-27 23:12 3122我们知道 tomcat分不同的版本,.配置的数据源的方法,也不 ... -
在web.xml配置引用数据源的时候,出现java.lang.reflect.InvocationTargetException异常
2011-06-27 21:37 3577配置 web.xml 引用数据源的错误信息如下: 20 ... -
weblogic 9.X 配置
2011-04-24 23:07 1138weblogic 9.X 配置 以 ... -
Target runtime apache tomcat v5.5 is not defined错误
2011-03-29 20:47 4701在“错误”视图中直接右击删除出错的条目就可以了。如果不行,还可 ... -
Tomcat 6.0.0.29 的数据源配置.以及配置User登陆。
2011-03-17 14:51 1439打开你的Tomcat安装目录,D:\apache-tomcat ... -
java.io.EOFException java.io.ObjectInputStream$PeekInputStream.readFully 错误
2011-01-07 00:10 13211Tomcat 启动时 java.io.EOFExcep ... -
Server Tomcat v6.0 Server at localhost was unable to start within 45 seconds
2010-12-19 14:55 3740Server Tomcat v6.0 Server at lo ... -
解决Tomcat 端口被占用问题.Several ports (8005, 8080, 8009) required by Tomcat v6.0
2010-12-08 17:04 22052比如说:我们非法关闭Tomcat,则会出现端口占用问题. ...
相关推荐
总之,要解决`java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource`的问题,你需要确保你的项目正确包含了Apache Commons DBCP及其相关依赖,并正确配置了`BasicDataSource`。同时,了解...
在处理`org.apache.commons.dbcp.BasicDataSource`时,可能会遇到一些常见问题,如配置错误、连接泄漏、性能问题等。下面我们将详细探讨这些问题及其解决方案。 首先,`BasicDataSource`是DBCP库中的核心类,它实现...
org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'com.mysql.jdbc.Driver' 出现异常原因,缺少数据库连接jar
在这个特定的错误中,我们看到的是`org.apache.commons.dbcp.BasicDataSource`,这是Apache Commons DBCP库中的一个类,用于管理数据库连接池。这个异常通常意味着在应用的类路径(ClassPath)中没有包含DBCP的jar...
com.springsource.org.apache.commons.dbcp-sources-1.2.2.osgi.jar源码 jar包
apache出品,用来取代老旧的dbcp
然而,对于初学者来说,遇到错误是常有的事,比如“java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource”。这个异常表明在运行时,系统无法找到指定的类,即Apache Commons DBCP的...
Oracle JDBC Driver是Oracle公司提供的用于Java应用程序与Oracle数据库交互的接口。它实现了Java Database Connectivity (JDBC) API,使得开发者可以使用Java语言来操作Oracle数据库,执行SQL语句,进行数据查询、...
com.springsource.org.apache.commons.dbcp_1.2.2.osgi.jar
- **连接池**:通过集成第三方连接池库(如C3P0、Apache DBCP或HikariCP),实现数据库连接的复用,提高系统性能。 - **JNDI查找**:在应用服务器环境中,可以通过JNDI查找获取数据源,简化数据库连接配置。 在使用...
本篇将详细探讨如何解决在Struts框架中遇到的`java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource`异常。 `org.apache.commons.dbcp.BasicDataSource`是Apache Commons DBCP库中的一个类...
commons-dbcp-1.2.2.jar commons-collections-3.2.1.jar commons-codec-1.3.jar commons-chain-1.1.jar commons-beanutils-1.6.jar 包含两个最常用的源码: commons-beanutils-1.6-src.zip commons-collections-...
这个压缩包“org.apache.servicemix.bundles.spring-jdbc-4.0.2.RELEASE_1.zip”包含的是Apache ServiceMix集成的Spring JDBC模块的一个特定版本,即4.0.2.RELEASE_1。Spring JDBC是Spring框架的一个关键部分,专门...
资源包"org.apache.commons.dbcp"包含了这个库的相关源代码,方便开发者深入理解和定制。 在Java应用中,数据库连接的创建和关闭是非常耗时的操作。DBCP通过维持一个连接池,避免了每次操作数据库都需要创建新的...
The JDBC Connection Pool org.apache.tomcat.jdbc.pool is a replacement or an alternative to the commons-dbcp connection pool.
包含: ...com.springsource.org.apache.commons.dbcp-1.2.2.osgi.jar, com.springsource.org.apache.commons.httpclient-3.1.0.jar, com.springsource.org.apache.commons.io-1.4.0.jar, ...
com.springsource.org.apache.commons.beanutils-1.8.0.jar, com.springsource.org.apache.commons.collections-3.2.1.jar, com.springsource.org.apache.commons.dbcp-1.2.2.osgi.jar, ...
org.apache.commons 系列的 JAR集合,用以解决异常,包含内容如下: commons-cli-1.0 commons-codec-1.3 commons-collections-3.1 commons-dbcp commons-digester commons-discovery-0.2 commons-fileupload-1.2.1 ...
#### 错误二:org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'com.microsoft.jdbc.sqlserver.SQLServerDriver' **错误表现:** 配置更改后重启Tomcat时出现新的异常信息: ```...