社区
Web 开发
帖子详情
org.apache.catalina.users.MemoryUserDatabaseFactory与org.apache.commons.dbcp.BasicDataSourceFactory的区别
netbir
2006-10-26 03:53:48
在网上看到在tomcat中设置数据库连接池有用下面这种方法的,它们的什么区别呢?
org.apache.catalina.users.MemoryUserDatabaseFactory
与
org.apache.commons.dbcp.BasicDataSourceFactory
...全文
278
3
打赏
收藏
org.apache.catalina.users.MemoryUserDatabaseFactory与org.apache.commons.dbcp.BasicDataSourceFactory的区别
在网上看到在tomcat中设置数据库连接池有用下面这种方法的,它们的什么区别呢? org.apache.catalina.users.MemoryUserDatabaseFactory 与 org.apache.commons.dbcp.BasicDataSourceFactory
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
3 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
netbir
2006-10-27
打赏
举报
回复
是不是前一个是连接池,后一个不是连接池,如果是这样的话,那肯定前一个执行效率要高了
netbir
2006-10-27
打赏
举报
回复
后一个不能当连接池吗
polarman
2006-10-27
打赏
举报
回复
前一个是tomcat自己配置用户用的数据源配置方法,从user.xml(在tomcat下的某个目录下)中读取用户信息
后一个是配置jdbc数据源用的
tom
cat
-7_API_帮助文档
================================================================================ Licensed to the
Apache
Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the
Apache
License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.
apache
.
org
/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ================================================================================
Apache
Tom
cat
Version 7.0.57 Release Notes ========= CONTENTS: ========= * Dependency Changes * API Stability * JNI
Base
d Appli
cat
ions * Bundled APIs * Web appli
cat
ion reloading and static fields in shared libraries * Tom
cat
on
Lin
ux * Enab
lin
g SSI and CGI Support * Security manager URLs * Sym
lin
king static resources * Viewing the Tom
cat
Change Log * Cryptographic software notice * When all else fails =================== Dependency Changes: =================== Tom
cat
7.0 is designed to run on Java SE 6 and later. In addition, Tom
cat
7.0 uses the Eclipse JDT Java compiler for compi
lin
g JSP pages. This means you no longer need to have the complete Java Development Kit (JDK) to run Tom
cat
, but a Java Runtime Environment (JRE) is sufficient. The Eclipse JDT Java compiler is bundled with the binary Tom
cat
distributions. Tom
cat
can also be configured to use the compiler from the JDK to compile JSPs, or any other Java compiler supported by
Apache
Ant. ============== API Stability: ============== The public interfaces for the following classes are fixed and will not be changed at all during the remaining lifetime of the 7.x series: - javax/**/* The public interfaces for the following classes may be added to in order to resolve bugs and/or add new features. No existing interface will be removed or changed although it may be depre
cat
ed. -
org
/
apache
/
cat
a
lin
a/* -
org
/
apache
/
cat
a
lin
a/comet/* Note: As Tom
cat
7 matures, the above list will be added to. The list is not considered complete at this time. The remaining classes are considered part of the Tom
cat
internals and may change without notice between point releases. ======================= JNI
Base
d Appli
cat
ions: ======================= Appli
cat
ions that require native libraries must ensure that the libraries have been loaded prior to use. Typically, this is done with a call like: static { System.loadLibrary("path-to-library-file"); } in some class. However, the appli
cat
ion must also ensure that the library is not loaded more than once. If the above code were placed in a class inside the web appli
cat
ion (i.e. under /WEB-INF/classes or /WEB-INF/lib), and the appli
cat
ion were reloaded, the loadLibrary() call would be attempted a second time. To avoid this problem, place classes that load native libraries outside of the web appli
cat
ion, and ensure that the loadLibrary() call is executed only once during the lifetime of a particular JVM. ============= Bundled APIs: ============= A standard installation of Tom
cat
7.0 makes all of the following APIs available for use by web appli
cat
ions (by placing them in "lib"): * annotations-api.jar (Annotations package) *
cat
a
lin
a.jar (Tom
cat
Cat
a
lin
a implementation) *
cat
a
lin
a-ant.jar (Tom
cat
Cat
a
lin
a Ant tasks) *
cat
a
lin
a-ha.jar (High availability package) *
cat
a
lin
a-tribes.jar (Group communi
cat
ion) * ecj-4.4.jar (Eclipse JDT Java compiler) * el-api.jar (EL 2.2 API) * jasper.jar (Jasper 2 Compiler and Runtime) * jasper-el.jar (Jasper 2 EL implementation) * jsp-api.jar (JSP 2.2 API) * servlet-api.jar (Servlet 3.0 API) * tom
cat
7-websocket.jar (WebSocket 1.1 implementation) * tom
cat
-api.jar (Interfaces shared by
Cat
a
lin
a and Jasper) * tom
cat
-coyote.jar (Tom
cat
connectors and utility classes) * tom
cat
-
dbcp
.jar (package renamed d
ata
base
connection pool
base
d on
Commons
DBCP
) * tom
cat
-jdbc.jar (Tom
cat
's d
ata
base
connection poo
lin
g solution) * tom
cat
-util.jar (Various utilities) * websocket-api.jar (WebSocket 1.1 API) You can make additional APIs available to all of your web appli
cat
ions by putting unpacked classes into a "classes" directory (not created by default), or by placing them in JAR files in the "lib" directory. To override the XML parser implementation or interfaces, use the endorsed mechanism of the JVM. The default configuration defines JARs lo
cat
ed in "endorsed" as endorsed. ================================================================ Web appli
cat
ion reloading and static fields in shared libraries: ================================================================ Some shared libraries (many are part of the JDK) keep references to objects instantiated by the web appli
cat
ion. To avoid class loading related problems (ClassCastExceptions, messages indi
cat
ing that the classloader is stopped, etc.), the shared libraries state should be reinitialized. Something which might help is to avoid putting classes which would be referenced by a shared static field in the web appli
cat
ion classloader, and putting them in the shared classloader instead (JARs should be put in the "lib" folder, and classes should be put in the "classes" folder). ================ Tom
cat
on
Lin
ux: ================ GLIBC 2.2 /
Lin
ux 2.4
users
should define an environment variable: export LD_ASSUME_KERNEL=2.2.5 Redhat
Lin
ux 9.0
users
should use the following setting to avoid stability problems: export LD_ASSUME_KERNEL=2.4.1 There are some
Lin
ux bugs reported against the NIO sendfile behavior, make sure you have a JDK that is up to date, or disable sendfile behavior in the Connector.
6427312: (fc) FileChannel.transferTo() throws IOException "system call interrupted"
5103988: (fc) FileChannel.transferTo should return -1 for EAGAIN instead throws IOException
6253145: (fc) FileChannel.transferTo on
Lin
ux fails when going beyond 2GB boundary
6470086: (fc) FileChannel.transferTo(2147483647, 1, channel) cause "Value too large" exception
============================= Enab
lin
g SSI and CGI Support: ============================= Because of the security risks associated with CGI and SSI available to web appli
cat
ions, these features are disabled by default. To enable and configure CGI support, please see the cgi-howto.html page. To enable and configue SSI support, please see the ssi-howto.html page. ====================== Security manager URLs: ====================== In order to grant security permissions to JARs lo
cat
ed inside the web appli
cat
ion repository, use URLs of of the following format in your policy file: file:${
cat
a
lin
a.
base
}/webapps/examples/WEB-INF/lib/driver.jar ============================ Sym
lin
king static resources: ============================ By default, Unix sym
lin
ks will not work when used in a web appli
cat
ion to
lin
k resources lo
cat
ed outside the web appli
cat
ion root directory. This behavior is optional, and the "allow
Lin
king" flag may be used to disable the check. ============================== Viewing the Tom
cat
Change Log: ============================== See changelog.html in this directory. ============================= Cryptographic software notice ============================= This distribution includes cryptographic software. The country in which you currently reside may have restrictions on the import, possession, use, and/or re-export to another country, of encryption software. BEFORE using any encryption software, please check your country's laws, regulations and policies concerning the import, possession, or use, and re-export of encryption software, to see if this is permitted. See
org/> for more information. The U.S. Government Department of Commerce, Bureau of Industry and Security (BIS), has classified this software as Export Commodity Control Number (ECCN) 5D002.C.1, which includes information security software using or performing cryptographic functions with asymmetric algorithms. The form and manner of this
Apache
Software Foundation distribution makes it eligible for export under the License Exception ENC Technology Software Unrestricted (TSU) exception (see the BIS Export Administration Regulations, Section 740.13) for both object code and source code. The following provides more details on the included cryptographic software: - Tom
cat
includes code designed to work with JSSE - Tom
cat
includes code designed to work with OpenSSL ==================== When all else fails: ==================== See the FAQ http://tom
cat
.
apache
.
org
/faq/
异常:Caused by:
org
.
apache
.tom
cat
.
dbcp
.
dbcp
.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'--解决方法
最近在搞oracle,遇到配置应用时出现:
Caused by:
org
.
apache
.tom
cat
.
dbcp
.
dbcp
.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'
困扰了好久,排除了数据库包的问题,排除了程序本身的问题,仔细查看数据库连接字符串等信息也没问题,最后只能规规矩矩的按照如下方法解决之:
step1:
basic
d
ata
source
factory
mysql_Ubuntu Tom
cat
7 java.lang.ClassNotFoundException:
org
.
apache
.tom
cat
.
dbcp
...
问题I'm trying to set up a JDBC
D
ata
Source
in Tom
cat
7 under Ubuntu 12.X, so I added the following to the context.xml file:maxActive="5" maxIdle="2" maxWait="5000"driverClassName="
org
.postgresql.Driver"...
SSM报错“Invalid property ' username' of bean class [
org
.
apache
.
commons
.
dbcp
2.
Basic
D
ata
Source
]”
错误
org
.springframework.beans.
factory
.BeanCreationException: Error creating bean with name '
d
ata
Source
' defined in class path resource [appli
cat
ionContext.xml]: Error setting property values; nested ...
Apache
Tom
cat
8.5.54 API
Overview Package Class Tree Depre
cat
ed Index Help
Apache
Tom
cat
8.5.54 Prev Next Frames No Frames
Apache
Tom
cat
8.5.54 API Packages Package Description
org
.
apache
.
cat
a
lin
a
org
.
apache
.
cat
a
lin
a.a...
Web 开发
81,091
社区成员
341,719
社区内容
发帖
与我相关
我的任务
Web 开发
Java Web 开发
复制链接
扫一扫
分享
社区描述
Java Web 开发
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章