Establish a JDBC-based RESIN3.0.8 connection pool

xiaoxiao2021-03-06  52

First, I have a bitter water. This connection pool has been engaged for 3 days. It can be connected with the database, but it is not supported to load balancing, depressed ing. I have to continue to fight. Let's write the process of establishing the connection pool, avoid Everyone can go more.

Home:

http://www.caucho.com/index.xtp [Speed ​​Slow]

Resin3.0.8 Download Address:

http://www.caucho.com/download/resin-3.0.8.tar.gz

(Here, it is assumed that JDK has been installed /usr/local/j2sdk1.4.2_04, and Apache has compiled by: / www)

Must ensure that apache is supporting DSO mode. If you don't know, you can use the command to determine:

/ www / bin / httpd -l | grep -i mod_so.c If you continue ...

Compile RESIN: (Document says it is recommended to use GCC3.0, I originally used Warning in the process of 2.95, compiled, and later upgraded to the latest version 3.4, compiled MOD_CAUCHO.SO, the size is really different, high version A lot of small. Therefore, it is recommended to use a high version)

TAR ZXF RESIN-3.0.8.tar.gzcd resin-3.0.8./configure --with-apxs = / www / bin / apxs && make & makers, if it is Apache1.3 version of mod_caucho.so Will be in / www / libexec directory, if it is 2.0, MOD_CAUCHO.SO will under / www / modules, here I am using the 1.3 version. Then set an environment variable: My habit is to put it below / etc / profile. JAVA_HOME = / usr / local / j2sdk1.4.2_04export JAVA_HOMECLASSPATH = / usr / local / j2sdk1.4.2_04 / lib: $ CLASSPATHexport CLASSPATH modified resin.conf, jdbc / oracle Oracle.jdbc.pool.OracleConnectionPoolDataSource JDBC: Oracle: Thin: @localhost: 1521: AppDB test test 8 30 30s Last execution /usr/local/RESIN-3.0.8/bin/httpd.sh Executive error: conf / resin.conf: 85: can't loading class `Oracle.jdbc.pool.oracleConnectionPoolDataSource 'in the current context.java.lang.classNotFoundException: Oracle.jdbc.pool.OracleConnectionPoolDataSource This is the key to this article. Most people know how to solve it, but this problem is really entangled in 1 day, and then finally Know that it is the driver of Oracle JDBC. This driver is included in classes12.jar, but I can't find this file, and Find came out of Classes12.zip, no matter. Later, I asked a master to know what to do: cd/oracle/product/8.1.7/jdbc/lib/unzip classes12.zipjar cf classs12.jar javax oraclerm -rf javax oracleunzip nls_charset12.zipjar cf nls_charset12.jar oraclerm -RF Oracle finally edits the ClassPath environment variable, and must refer to this file, you can't just refer to this lib directory export classpath = / oracle / product / 8.1.7 / jdbc / lib / classs12.jar: $ ClassPath This connection pool is built I have to continue to configure resin.conf, and there are still many questions in my heart.

转载请注明原文地址:https://www.9cbs.com/read-116627.html

New Post(0)