Help in creating the connection pool for Oracle 8i using Jdriver
Hi
Iam pretty new to Weblogic and would be greatfull if some one can help me
out in finding the parameters to be specified in Weblogic console for creating
a Connection pool for Oracle 8i database running on solaris. I have installed
necessary client libraries in weblogic machine.
The details for my database are as follows
database name : mydb
database server : 173.24.24.1
database port : 1521
username : myuser
I would appreciate if you can provide me the following details to be entered in
weblogic console for creating the connection pool
URL
DRIVER CLASS NAME
PROPERTIES
ACL NAME
PASSWORD
Thanks,
S Hari
Hari
Jdbc Connection Pool Configuration
URL= jdbc:weblogic:oracle
DRIVER CLASS NAME=weblogic.jdbc.oci.Driver
PROPERTIES
user=myuser
password=<password in mydb>
server=mydb
After configuring Connection Pool Select Targets tab. Select Server from Available
to Chosen.
Deepak
Hari wrote:
Hi
Iam pretty new to Weblogic and would be greatfull if some one can help me
out in finding the parameters to be specified in Weblogic console for creating
a Connection pool for Oracle 8i database running on solaris. I have installed
necessary client libraries in weblogic machine.
The details for my database are as follows
database name : mydb
database server : 173.24.24.1
database port : 1521
username : myuser
I would appreciate if you can provide me the following details to be entered in
weblogic console for creating the connection pool
URL
DRIVER CLASS NAME
PROPERTIES
ACL NAME
PASSWORD
Thanks,
S Hari
Similar Messages
-
Set up DB Connection Pool for Oracle DataBase Using Java App Server8
Hi,
In the Admin Console of Java App Server 8, I tried to create a connection pool for the oracle database. I chose Resource Type to be "javax.sql.ConnectionPoolDataSource" and the Vendor is Oracle. So the Data Source Class Name is filled by the system to be "oracle.jdbc.pool.OracleConnectionPoolDataSource". Now, I set up the class path to point to the database driver class "sun.jdbc.odbc.JdbcOdbcDriver" and also the to the Data Source Class Name. Also I set up the JVM options in the console. Restart the server, and then try to ping to the database, but get the error:
Operation 'pingConnectionPool' failed in 'resources' Config Mbean. Target exception message: Connection could not be allocated because: No suitable driver
I don't understand what else I should do and why this error is coming?
Please help me out.
Thank you
Regards,
SarahHi,
I've already solve the problem. I did the following:
set the Url to be: jdbc:oracle:thin:@hostname:port:SID
set username
set password
add oracle.jdbc.drivers.OracleDriver into the JVM options -Djdbc.drivers
restart the server
test the connection
it works :) -
Unable create Connection pool for Oracle apps Adapter.
Hi All,
We are trying to create a connection pool for Oracle Apps adapter in 11G SOA suite.
However during the process getting the following error:
An error occurred during activation of changes, please see the log for details.
A <jndi-name> is specified for the resource adapter bean in weblogic-ra.xml, however no <resourceadapter-class> element is specified in ra.xml
Can any one help us on this.
Thanks
Parker.Please refer section "Configuring Connection Information" at below link -
http://download.oracle.com/docs/cd/E17904_01/integration.1111/e10537/T430238T430340.htm#T464886
Regards,
Anuj -
Steps to create Connection pool for Oracle apps Adapter.
Hi All,
Could please tel me the steps to create connection pool for Oracle Apps Adapter.
Thanks,
ParkerSteps are given in section "Configuring Connection Information" in Apps Adapter User guide at below link -
http://download.oracle.com/docs/cd/E17904_01/integration.1111/e10537/T430238T430340.htm#T464886
Regards,
Anuj -
JDBC Connection Pool For Oracle 8.1 In Weblogic 6.1
Hi,
Can any of u help me by giving the code for configuring the oracle thin driver
for oracle 8.1 in config.xml of weblogic 6.1.
Thank You
RamHi Ram,
An example of the config.xml entry is:
<JDBCConnectionPool CapacityIncrement="2"
DriverName="oracle.jdbc.driver.OracleDriver" MaxCapacity="10"
Name="thinPool"
Properties="user=scott;password=tiger;dll=ocijdbc8;protocol=thin"
Targets="myserver" TestConnectionsOnRelease="true"
TestConnectionsOnReserve="true" TestTableName="dual" URL="jdbc:oracle:thin:@rwallace:1521:ORCL"/>
I found this out by running the utils.dbping utility to get the correct driver/url
details then creating the connection pool in the WLS console.
Regards,
Richard Wallace
Senior Developer Relations Engineer
BEA Support.
"Ram" <[email protected]> wrote:
>
Hi,
Can any of u help me by giving the code for configuring the oracle
thin driver
for oracle 8.1 in config.xml of weblogic 6.1.
Thank You
Ram -
Problem creating a connection pool for mssql server
Hi
i downloaded the microsoft type 4 driver for JDBC and i have installed it. now i am trying to create a connection pool for MS Sql server but each time i ping i keep getting an error telling me
Operation 'pingConnectionPool' failed in 'resources' Config Mbean. Target exception message: Connection could not be allocated because: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket
please can someone help out on this
IfeanyichukwuI assume that you installed the driver correctly. You did go into the app sever admin and set the JVM path? You do this by going to Application Server | JVM Settings | Path Settings and putting in an entry for Classpath Prefix.
If that is done and it's not something basic like your database isn't turned on, then it must be your settings. To to Sun's site and search for dbping. http://developers.sun.com/prodtech/appserver/utilities/dbping/dbping_overview.html
Deploy this program and run it. It is a very simple tool that lets you test different property settings. Play around with different settings until you get a ping.
If that doesn't work post your connect pool settings.
Good luck
Mike -
Is it possibel to create one connection [pool for one report only
Hi is it possibe to create one connection pool for one report only. Others report are running from the another connection pool under same DB.
Thanks,Hi,
Why do u want seperate connectionpool for that single report?
I dont think its possible.Direct database request will be good solution for this.Try importing those columns which are used to build that report into physical layer and create new subject area.Not sure weather its right way to do.
Regards,
Srikanth -
How to create the connection pool using jdbc20 driver?
Hi all,
My configuration is WL4.5 SP5 + jdk1.2.2+WinNT+ Oracle thin driver
8.1.6.
It is creating the connections with weblogic.jdbc.pool.Driver, whereas i
want the connections in the pool to be created with jdbc20 driver. This
how my pool definition is defined.
weblogic.jdbc.connectionPool.PoolName=\
url=jdbc:oracle:thin:@<IP address>:<Instance>,\
driver=oracle.jdbc.driver.OracleDriver,\
loginDelaySecs=1,\
initialCapacity=1,\
maxCapacity=40,\
capacityIncrement=2,\
allowShrinking=true,\
shrinkPeriodMins=5,\
refreshMinutes=10,\
testTable=dual,\
props=user=XXXX;password=XXXX
The reason is I want to use BLOB's. I have a message posted in jdbc news
group with the exception i got. But since this more of a environement
issue i am posting it here.
Any help is appreciated,
Thanks
JohnHere is the correct pool definition.
################JDBC20 Driver#########################
weblogic.jdbc.connectionPool.jdbc20Pool=\
url=jdbc20:weblogic:oracle,\
driver=weblogic.jdbc20.oci.Driver,\
loginDelaySecs=1,\
initialCapacity=1,\
maxCapacity=1,\
capacityIncrement=2,\
allowShrinking=true,\
shrinkPeriodMins=15,\
refreshMinutes=10,\
testTable=dual,\
props=user=SCOTT;password=tiger;server=goldengate
weblogic.allow.reserve.weblogic.jdbc.connectionPool.jdbc20Pool=guest
Hope this helps,
--Kumar
Kuppuswamy Seshadhri wrote:
I think you are missing the port number.
A working example,
Ensuring
- TSNAMES is setup and the service is running
- set ORACLE_HOME variable in setenv.cmd
weblogic.jdbc.connectionPool.theOraclePool=\
url=jdbc:oracle:thin:@IPADRESS:1521:orcl,\
driver=oracle.jdbc.driver.OracleDriver,\
loginDelaySecs=1,\
initialCapacity=1,\
maxCapacity=10,\
capacityIncrement=2,\
allowShrinking=true,\
shrinkPeriodMins=15,\
refreshMinutes=10,\
testTable=dual,\
props=user=XXXX;password=XXXX;
weblogic.allow.reserve.weblogic.jdbc.connectionPool.theOraclePool=everyone
Kuppu
"John Galt" <[email protected]> wrote in message
news:[email protected]..
Hi all,
My configuration is WL4.5 SP5 + jdk1.2.2+WinNT+ Oracle thin driver
8.1.6.
It is creating the connections with weblogic.jdbc.pool.Driver, whereas i
want the connections in the pool to be created with jdbc20 driver. This
how my pool definition is defined.
weblogic.jdbc.connectionPool.PoolName=\
url=jdbc:oracle:thin:@<IP address>:<Instance>,\
driver=oracle.jdbc.driver.OracleDriver,\
loginDelaySecs=1,\
initialCapacity=1,\
maxCapacity=40,\
capacityIncrement=2,\
allowShrinking=true,\
shrinkPeriodMins=5,\
refreshMinutes=10,\
testTable=dual,\
props=user=XXXX;password=XXXX
The reason is I want to use BLOB's. I have a message posted in jdbc news
group with the exception i got. But since this more of a environement
issue i am posting it here.
Any help is appreciated,
Thanks
John -
Help!!! Connection Pool for DB2 problem !!
I created a DB2 connection pool in the weblogic.properties, but when
weblogic server starting, I got the following error message:
Thursday August 24 14:26:47 CST 2000:<E> <WebLogicServer> Failed to invoke
startup class
weblogic.jdbc.common.internal.JdbcStartup=weblogic.jdbc.common.internal.Jdbc
Startup
java.security.AccessControlException: access denied (java.sql.SQLPermission
setLog)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java
:272)
at
java.security.AccessController.checkPermission(AccessController.java:399)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
at java.sql.DriverManager.setLogStream(DriverManager.java:397)
at weblogic.jdbc.common.internal.JdbcInfo.initLog(JdbcInfo.java:66)
at weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:187)
at weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
at weblogic.t3.srvr.StartupThread.doWork(StartupThread.java:109)
at
weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java:62)
I don't know how to solve it, and if I use Console to create a Connection
pool, I can successful create it...........please help me !!! I have checked
the weblogic.policy file, but I can not find any problem........
the configuration in the weblogic.properties as below:
weblogic.jdbc.connectionPool.ForumPool=\
url=jdbc:db2:forum,\
driver=COM.ibm.db2.jdbc.app.DB2Driver,\
loginDelaySecs=1,\
initialCapacity=2,\
maxCapacity=10,\
capacityIncrement=1,\
allowShrinking=true,\
shrinkPeriodMins=15,\
refreshMinutes=10,\
testTable=administrator.user,\
props=user=db2admin;password=db2admin
weblogic.allow.reserve.weblogic.jdbc.connectionPool.ForumPool=everyone
weblogic.jdbc.TXDataSource.weblogic.jdbc.jts.JtsForumDS=ForumPool
weblogic.jdbc.DataSource.NonJtsForumDS=ForumPoolYou may want to try the JDBC newsgroup.
Michael Girdley
BEA Systems Inc
"DataL" <[email protected]> wrote in message news:[email protected]...
I created a DB2 connection pool in the weblogic.properties, but when
weblogic server starting, I got the following error message:
Thursday August 24 14:26:47 CST 2000:<E> <WebLogicServer> Failed to invoke
startup class
weblogic.jdbc.common.internal.JdbcStartup=weblogic.jdbc.common.internal.Jdbc
Startup
java.security.AccessControlException: access denied(java.sql.SQLPermission
setLog)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java
:272)
at
java.security.AccessController.checkPermission(AccessController.java:399)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
at java.sql.DriverManager.setLogStream(DriverManager.java:397)
at weblogic.jdbc.common.internal.JdbcInfo.initLog(JdbcInfo.java:66)
at weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:187)
at weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
at weblogic.t3.srvr.StartupThread.doWork(StartupThread.java:109)
at
weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java:62)
I don't know how to solve it, and if I use Console to create a Connection
pool, I can successful create it...........please help me !!! I havechecked
the weblogic.policy file, but I can not find any problem........
the configuration in the weblogic.properties as below:
weblogic.jdbc.connectionPool.ForumPool=\
url=jdbc:db2:forum,\
driver=COM.ibm.db2.jdbc.app.DB2Driver,\
loginDelaySecs=1,\
initialCapacity=2,\
maxCapacity=10,\
capacityIncrement=1,\
allowShrinking=true,\
shrinkPeriodMins=15,\
refreshMinutes=10,\
testTable=administrator.user,\
props=user=db2admin;password=db2admin
weblogic.allow.reserve.weblogic.jdbc.connectionPool.ForumPool=everyone
weblogic.jdbc.TXDataSource.weblogic.jdbc.jts.JtsForumDS=ForumPool
weblogic.jdbc.DataSource.NonJtsForumDS=ForumPool -
Jdbc connection pool for oracle problem - not creating
hi,
iam not able to connect to oraclepool, iamusing weblogic 5.1 ,i started the
server but i am able to connect oracle pool
iam getting a sqlexception as
Sat Jul 22 01:46:09 PDT 2000:<I> <JDBC Pool> Creating connection pool oraclePool
with:
{refreshMinutes=10, poolName=oraclePool, loginDelaySecs=1, testTable=dual, maxCa
pacity=10, props=user=SCOTT;password=tiger;server=DEMO, allowShrinking=true, dri
ver=weblogic.jdbc.oci.Driver, aclName=weblogic.jdbc.connectionPool.oraclePool,
c
apacityIncrement=2, initialCapacity=4, url=jdbc:weblogic:oracle, shrinkPeriodMin
s=15}
Delaying 1 seconds before making a oraclePool pool connection.
java.sql.SQLException: System.loadLibrary threw java.lang.UnsatisfiedLinkError
with the message 'no weblogicoci36 in java.library.path'.
at weblogic.jdbcbase.oci.Driver.connect(Driver.java:116)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Con
nectionEnvFactory.java:149)
can anyone tell me why is this happening ,thanks in advance
sanPlace the bin/oci815_5 in the weblogic installation in your path. You can set this path in
your startweblogic script. If you are on a unix environment, set this in the LD_LIBRARY path.
Shiva.
san wrote:
hi shiva,
iam using oralce8i , so what i hv to do to rectify this problem, any idea, suggestions,
san
Shiva Paranandi <[email protected]> wrote:
Your path should contain the oracle libraries and the oci815_8 directory
(if say you
are using oracle 8i).
Shiva.
san wrote:
hi,
iam not able to connect to oraclepool, iamusing weblogic 5.1 ,i startedthe
server but i am able to connect oracle pool
iam getting a sqlexception as
Sat Jul 22 01:46:09 PDT 2000:<I> <JDBC Pool> Creating connection pooloraclePool
with:
{refreshMinutes=10, poolName=oraclePool, loginDelaySecs=1, testTable=dual,
maxCa> >> pacity=10, props=user=SCOTT;password=tiger;server=DEMO, allowShrinking=true,> >dri> >> ver=weblogic.jdbc.oci.Driver, aclName=weblogic.jdbc.connectionPool.oraclePool,> >> c> >> apacityIncrement=2, initialCapacity=4, url=jdbc:weblogic:oracle, shrinkPeriodMin> >> s=15
Delaying 1 seconds before making a oraclePool pool connection.
java.sql.SQLException: System.loadLibrary threw java.lang.UnsatisfiedLinkError
with the message 'no weblogicoci36 in java.library.path'.
at weblogic.jdbcbase.oci.Driver.connect(Driver.java:116)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Con
nectionEnvFactory.java:149)
can anyone tell me why is this happening ,thanks in advance
san -
Has anyone run the connection pooling for mysql & tomcat successfully?
I'm trying to set up connection pooling. I'm following the how-to page at
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html
But when i test the DBTest/test.jsp file, tomcat displays an error =
could not load jdbc driver class 'null'(msdos)
i have placed all the required .jar files in the tomcat lib.
below is the cofiguration i did to the server.xml file
<!-- Example Server Configuration File -->
<!-- Note that component elements are nested corresponding to their
parent-child relationships with each other -->
<!-- A "Server" is a singleton element that represents the entire JVM,
which may contain one or more "Service" instances. The Server
listens for a shutdown command on the indicated port.
Note: A "Server" is not itself a "Container", so you may not
define subcomponents such as "Valves" or "Loggers" at this level.
-->
<Server port="8005" shutdown="SHUTDOWN" debug="0">
<!-- Uncomment these entries to enable JMX MBeans support -->
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
debug="0"/>
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
debug="0"/>
<!-- Global JNDI resources -->
<GlobalNamingResources>
<!-- Test entry for demonstration purposes -->
<Environment name="simpleValue" type="java.lang.Integer" value="30"/>
<!-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users -->
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved">
</Resource>
<ResourceParams name="UserDatabase">
<parameter>
<name>factory</name>
<value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
</parameter>
<parameter>
<name>pathname</name>
<value>conf/tomcat-users.xml</value>
</parameter>
</ResourceParams>
</GlobalNamingResources>
<!-- A "Service" is a collection of one or more "Connectors" that share
a single "Container" (and therefore the web applications visible
within that Container). Normally, that Container is an "Engine",
but this is not required.
Note: A "Service" is not itself a "Container", so you may not
define subcomponents such as "Valves" or "Loggers" at this level.
-->
<!-- Define the Tomcat Stand-Alone Service -->
<Service name="Tomcat-Standalone">
<!-- A "Connector" represents an endpoint by which requests are received
and responses are returned. Each Connector passes requests on to the
associated "Container" (normally an Engine) for processing.
By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
You can also enable an SSL HTTP/1.1 Connector on port 8443 by
following the instructions below and uncommenting the second Connector
entry. SSL support requires the following steps (see the SSL Config
HOWTO in the Tomcat 4.0 documentation bundle for more detailed
instructions):
* Download and install JSSE 1.0.2 or later, and put the JAR files
into "$JAVA_HOME/jre/lib/ext".
* Execute:
%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix)
with a password value of "changeit" for both the certificate and
the keystore itself.
By default, DNS lookups are enabled when a web application calls
request.getRemoteHost(). This can have an adverse impact on
performance, so you can disable it by setting the
"enableLookups" attribute to "false". When DNS lookups are disabled,
request.getRemoteHost() will return the String version of the
IP address of the remote client.
-->
<!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8081 -->
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8080" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="100" debug="0" connectionTimeout="20000"
useURIValidationHack="false" disableUploadTimeout="true" />
<!-- Note : To disable connection timeouts, set connectionTimeout value
to -1 -->
<!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
<!--
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8443" minProcessors="5" maxProcessors="75"
enableLookups="true"
acceptCount="100" debug="0" scheme="https" secure="true"
useURIValidationHack="false" disableUploadTimeout="true">
<Factory className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
clientAuth="false" protocol="TLS" />
</Connector>
-->
<!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8009" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0" connectionTimeout="20000"
useURIValidationHack="false"
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
<!-- Define an AJP 1.3 Connector on port 8009 -->
<!--
<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
port="8009" minProcessors="5" maxProcessors="75"
acceptCount="10" debug="0"/>
-->
<!-- Define a Proxied HTTP/1.1 Connector on port 8082 -->
<!-- See proxy documentation for more information about using this. -->
<!--
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8082" minProcessors="5" maxProcessors="75"
enableLookups="true" disableUploadTimeout="true"
acceptCount="100" debug="0" connectionTimeout="20000"
proxyPort="80" useURIValidationHack="false" />
-->
<!-- Define a non-SSL legacy HTTP/1.1 Test Connector on port 8083 -->
<!--
<Connector className="org.apache.catalina.connector.http.HttpConnector"
port="8083" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0" />
-->
<!-- Define a non-SSL HTTP/1.0 Test Connector on port 8084 -->
<!--
<Connector className="org.apache.catalina.connector.http10.HttpConnector"
port="8084" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0" />
-->
<!-- An Engine represents the entry point (within Catalina) that processes
every request. The Engine implementation for Tomcat stand alone
analyzes the HTTP headers included with the request, and passes them
on to the appropriate Host (virtual host). -->
<!-- Define the top level container in our container hierarchy -->
<Engine name="Standalone" defaultHost="localhost" debug="0">
<!-- The request dumper valve dumps useful debugging information about
the request headers and cookies that were received, and the response
headers and cookies that were sent, for all requests received by
this instance of Tomcat. If you care only about requests to a
particular virtual host, or a particular application, nest this
element inside the corresponding <Host> or <Context> entry instead.
For a similar mechanism that is portable to all Servlet 2.3
containers, check out the "RequestDumperFilter" Filter in the
example application (the source for this filter may be found in
"$CATALINA_HOME/webapps/examples/WEB-INF/classes/filters").
Request dumping is disabled by default. Uncomment the following
element to enable it. -->
<!--
<Valve className="org.apache.catalina.valves.RequestDumperValve"/>
-->
<!-- Global logger unless overridden at lower levels -->
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="catalina_log." suffix=".txt"
timestamp="true"/>
<!-- Because this Realm is here, an instance will be shared globally -->
<!-- This Realm uses the UserDatabase configured in the global JNDI
resources under the key "UserDatabase". Any edits
that are performed against this UserDatabase are immediately
available for use by the Realm. -->
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
debug="0" resourceName="UserDatabase"/>
<!-- Comment out the old realm but leave here for now in case we
need to go back quickly -->
<!--
<Realm className="org.apache.catalina.realm.MemoryRealm" />
-->
<!-- Replace the above Realm with one of the following to get a Realm
stored in a database and accessed via JDBC -->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="org.gjt.mm.mysql.Driver"
connectionURL="jdbc:mysql://localhost/authority"
connectionName="test" connectionPassword="test"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="oracle.jdbc.driver.OracleDriver"
connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL"
connectionName="scott" connectionPassword="tiger"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="sun.jdbc.odbc.JdbcOdbcDriver"
connectionURL="jdbc:odbc:CATALINA"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!-- Define the default virtual host -->
<Host name="localhost" debug="0" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<Context path="/my-jsp" docBase="c:\JSP-Files" debug="0"
privileged="true" reloadable="true" />
<Context path="" docBase="c:\Inetpub\wwwroot" debug="0" privileged="true" />
<Context path="/sharon" docBase="C:\Tomcat 4.1\webapps\sharon" debug="0" privileged="true" />
<!-- Normally, users must authenticate themselves to each web app
individually. Uncomment the following entry if you would like
a user to be authenticated the first time they encounter a
resource protected by a security constraint, and then have that
user identity maintained across all web applications contained
in this virtual host. -->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn"
debug="0"/>
-->
<!-- Access log processes all requests for this virtual host. By
default, log files are created in the "logs" directory relative to
$CATALINA_HOME. If you wish, you can specify a different
directory with the "directory" attribute. Specify either a relative
(to $CATALINA_HOME) or absolute path to the desired directory.
-->
<!--
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="localhost_access_log." suffix=".txt"
pattern="common" resolveHosts="false"/>
-->
<!-- Logger shared by all Contexts related to this virtual host. By
default (when using FileLogger), log files are created in the "logs"
directory relative to $CATALINA_HOME. If you wish, you can specify
a different directory with the "directory" attribute. Specify either a
relative (to $CATALINA_HOME) or absolute path to the desired
directory.-->
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="localhost_log." suffix=".txt"
timestamp="true"/>
<!-- Define properties for each web application. This is only needed
if you want to set non-default properties, or have web application
document roots in places other than the virtual host's appBase
directory. -->
<!-- Tomcat Root Context -->
<!--
<Context path="" docBase="ROOT" debug="0"/>
-->
<!-- Tomcat Examples Context -->
<Context path="/examples" docBase="examples" debug="0"
reloadable="true" crossContext="true">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_DBTest_log." suffix=".txt"
timestamp="true"/>
<Ejb name="ejb/EmplRecord" type="Entity"
home="com.wombat.empl.EmployeeRecordHome"
remote="com.wombat.empl.EmployeeRecord"/>
<!-- If you wanted the examples app to be able to edit the
user database, you would uncomment the following entry.
Of course, you would want to enable security on the
application as well, so this is not done by default!
The database object could be accessed like this:
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup("java:comp/env");
UserDatabase database =
(UserDatabase) envCtx.lookup("userDatabase");
-->
<!--
<ResourceLink name="userDatabase" global="UserDatabase"
type="org.apache.catalina.UserDatabase"/>
-->
<!-- PersistentManager: Uncomment the section below to test Persistent
Sessions.
saveOnRestart: If true, all active sessions will be saved
to the Store when Catalina is shutdown, regardless of
other settings. All Sessions found in the Store will be
loaded on startup. Sessions past their expiration are
ignored in both cases.
maxActiveSessions: If 0 or greater, having too many active
sessions will result in some being swapped out. minIdleSwap
limits this. -1 means unlimited sessions are allowed.
0 means sessions will almost always be swapped out after
use - this will be noticeably slow for your users.
minIdleSwap: Sessions must be idle for at least this long
(in seconds) before they will be swapped out due to
maxActiveSessions. This avoids thrashing when the site is
highly active. -1 or 0 means there is no minimum - sessions
can be swapped out at any time.
maxIdleSwap: Sessions will be swapped out if idle for this
long (in seconds). If minIdleSwap is higher, then it will
override this. This isn't exact: it is checked periodically.
-1 means sessions won't be swapped out for this reason,
although they may be swapped out for maxActiveSessions.
If set to >= 0, guarantees that all sessions found in the
Store will be loaded on startup.
maxIdleBackup: Sessions will be backed up (saved to the Store,
but left in active memory) if idle for this long (in seconds),
and all sessions found in the Store will be loaded on startup.
If set to -1 sessions will not be backed up, 0 means they
should be backed up shortly after being used.
To clear sessions from the Store, set maxActiveSessions, maxIdleSwap,
and minIdleBackup all to -1, saveOnRestart to false, then restart
Catalina.
-->
<!--
<Manager className="org.apache.catalina.session.PersistentManager"
debug="0"
saveOnRestart="true"
maxActiveSessions="-1"
minIdleSwap="-1"
maxIdleSwap="-1"
maxIdleBackup="-1">
<Store className="org.apache.catalina.session.FileStore"/>
</Manager>
-->
<Environment name="maxExemptions" type="java.lang.Integer"
value="15"/>
<Parameter name="context.param.name" value="context.param.value"
override="false"/>
<Resource name="jdbc/EmployeeAppDb" auth="SERVLET"
type="javax.sql.DataSource"/>
<Resource name="jdbc/TestDB"
auth="Container"
type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/TestDB">
<parameter>
<name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
<!-- Maximum number of dB connections in pool. Make sure you
configure your mysqld max_connections large enough to handle
all of your db connections. Set to 0 for no limit.
-->
<parameter>
<name>maxActive</name>
<value>100</value>
</parameter>
<!-- Maximum number of idle dB connections to retain in pool.
Set to 0 for no limit.
-->
<parameter>
<name>maxIdle</name>
<value>30</value>
</parameter>
<!-- Maximum time to wait for a dB connection to become available
in ms, in this example 10 seconds. An Exception is thrown if
this timeout is exceeded. Set to -1 to wait indefinitely.
-->
<parameter>
<name>maxWait</name>
<value>10000</value>
</parameter>
<!-- MySQL dB username and password for dB connections -->
<parameter>
<name>user</name>
<value>javauser</value>
</parameter>
<parameter>
<name>password</name>
<value>javadude</value>
</parameter>
<!-- Class name for mm.mysql JDBC driver -->
<parameter>
<name>driverClassName</name>
<value>org.gjt.mm.mysql.Driver</value>
</parameter>
<!-- The JDBC connection url for connecting to your MySQL dB.
The autoReconnect=true argument to the url makes sure that the
mm.mysql JDBC Driver will automatically reconnect if mysqld closed the
connection. mysqld by default closes idle connections after 8 hours.
-->
<parameter>
<name>url</name>
<value>jdbc:mysql://localhost:3306/javatest?autoReconnect=true</value>
</parameter>
</ResourceParams>
<Resource name="mail/Session" auth="Container"
type="javax.mail.Session"/>
<ResourceParams name="mail/Session">
<parameter>
<name>mail.smtp.host</name>
<value>localhost</value>
</parameter>
</ResourceParams>
<ResourceLink name="linkToGlobalResource"
global="simpleValue"
type="java.lang.Integer"/>
</Context>
</Host>
</Engine>
</Service>
<!-- The MOD_WEBAPP connector is used to connect Apache 1.3 with Tomcat 4.0
as its servlet container. Please read the README.txt file coming with
the WebApp Module distribution on how to build it.
(Or check out the "jakarta-tomcat-connectors/webapp" CVS repository)
To configure the Apache side, you must ensure that you have the
"ServerName" and "Port" directives defined in "httpd.conf". Then,
lines like these to the bottom of your "httpd.conf" file:
LoadModule webapp_module libexec/mod_webapp.so
WebAppConnection warpConnection warp localhost:8008
WebAppDeploy examples warpConnection /examples/
The next time you restart Apache (after restarting Tomcat, if needed)
the connection will be established, and all applications you make
visible via "WebAppDeploy" directives can be accessed through Apache.
-->
<!-- Define an Apache-Connector Service -->
<!--
<Service name="Tomcat-Apache">
<Connector className="org.apache.catalina.connector.warp.WarpConnector"
port="8008" minProcessors="5" maxProcessors="75"
enableLookups="true" appBase="webapps"
acceptCount="10" debug="0"/>
<Engine className="org.apache.catalina.connector.warp.WarpEngine"
name="Apache" debug="0">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="apache_log." suffix=".txt"
timestamp="true"/>
<Realm className="org.apache.catalina.realm.MemoryRealm" />
</Engine>
</Service>
-->
</Server>
Pleas4 help!!!you have your driver jar in Tomcat\common\lib?
if so, check your classpath, it could be that. -
Error while creating JDBC connection pool for MSSQL database
Hi,
From my windows m/c, I am trying to configure a connection pool to connect to
an MSSQL database on another m/c. While setting the targets, i get the error :-
<Mar 11, 2004 6:17:52 PM GMT+08:00> <Error> <JDBC> <Cannot startup connection
pool "gcdb_connpool" Cannot load driver class: com.microsoft.jdbc.sqlserver.SQLServerDriver>
I have added the path of the jars for the driver in the classpath.
Any help would be appreciated.
Thanks.Hi. Read the weblogic startup script, and follow how it creates
a classpath argument for the server. You must get the driver jars
into that classpath.
Joe
Neha wrote:
Hi,
From my windows m/c, I am trying to configure a connection pool to connect to
an MSSQL database on another m/c. While setting the targets, i get the error :-
<Mar 11, 2004 6:17:52 PM GMT+08:00> <Error> <JDBC> <Cannot startup connection
pool "gcdb_connpool" Cannot load driver class: com.microsoft.jdbc.sqlserver.SQLServerDriver>
I have added the path of the jars for the driver in the classpath.
Any help would be appreciated.
Thanks. -
Problem when creating connection pool for Informix
Hi all,
could you please help me to create a connection pool for informix?
I use a com.informix.jdbcx.IfxXADataSource driver and here are the properties
user=informix
password=informix
url=jdbc:informix-sqli://TW010766:1526/vka:informixserver=TW010766
dataSourceName=TestEntityPool2
portNumber=1526
databaseName=vka
ifxIFXHOST=TW010766
serverName=vka
Here is the error message :
Error during Data Source creation: weblogic.common.ResourceException: DataSource(TestEntity)
can't be created with non-existent Pool (connection or multi) (TestEntityPool2)
at weblogic.jdbc.common.internal.JdbcInfo.validateConnectionPool(JdbcInfo.java:127)
at weblogic.jdbc.common.internal.JdbcInfo.startDataSource(JdbcInfo.java:189)
at weblogic.jdbc.common.internal.JDBCService.addDeploymentx(JDBCService.java:293)
at weblogic.jdbc.common.internal.JDBCService.addDeployment(JDBCService.java:270)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:375)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:303)
at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:256)
at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:207)
Could you please tell me what's wrong with the configuration?
Many thanks in advance.
HoangHoang Nguyen wrote:
For JBuilder :
URL : jdbc:informix-sqli://tra019746:1526/vka:informixserver=vka
Driver : com.informix.jdbcx.IfxXADataSource
username : informix; password : informix
For WebLogic :
URL : jdbc:informix-sqli://tra019746:1526/vka:informixserver=vka
Driver : com.informix.jdbcx.IfxXADataSource
Properties : password=informix
user=informixOk. The problem may have to do with your reiterating all the properties below.
url=jdbc:informix-sqli://tra019746:1526/vka:informixserver=vka
portNumber=1526
databaseName=vka
serverName=vka
ifxIFXHOST=tra019746All these above are implicit in the URL you give to jBuilder and weblogic.
Try defining the pool with only the user and password as properties.
>
>
Error:
Error during Data Source creation: weblogic.common.ResourceException:
DataSource(TestEntity)
can't be created with non-existent Pool (connection or multi) (TestEntityPool2)
at weblogic.jdbc.common.internal.JdbcInfo.validateConnectionPool(JdbcInfo.java:127)
at weblogic.jdbc.common.internal.JdbcInfo.startDataSource(JdbcInfo.java:189)
at weblogic.jdbc.common.internal.JDBCService.addDeploymentx(JDBCService.java:293)
at weblogic.jdbc.common.internal.JDBCService.addDeployment(JDBCService.java:270)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:375)
Thanks Joe
Hoang Nguyen wrote:
Joseph,
The driver that I use comes from informix.
I've tried with JBuilder and no problem. JBuilder can connect to informixand
I can see the tables from JBuilder.
There's something wrong in the configuration with Weblogic.
Many thanks for your help.I understand that there's something wrong with the configuration with
weblogic,
but the problem is due to a mistake in the input you gave to the pool
definition,
and I want to solve that. Please show me the URL, driver name and properties
you give to JBuilder to make Informix connections. Also, show me the
first few lines
that get printend out when you run the weblogic start script. I want
to see the
line that prints out the classpath used in the script for starting the
server.
thanks,
Joe
Joseph Weinstein <[email protected]> wrote:
Ok, I would like you to download Informix's driver from them, and
run one of their example programs, just to prove you can connect to
informix, using their driver, with no weblogic in the picture. We
have
to establish that, because that's all weblogic will be doing anyway.
Once
we know how to connect to informix via JDBC, we can do weblogic stuff.
Joe
Hoang Nguyen wrote:
Hi,
I forgot to mention that I'm working with Weblogic server 7 and
Informix 2000 9.20.
For the configuration, I followed the example given by Weblogic
http://edocs.bea.com/wls/docs70/jdbc/thirdparty.html#thirdparty001,
table 5.2
Here is the example given by weblogic :
user=username
url=jdbc:informix-sqli://dbserver_name_or_ip:port_num/dbname:informixserver=dbserver_name_or_ip
password=password
portNumber =port_num;
databaseName=dbname
serverName=dbserver_name
ifxIFXHOST=dbserver_name_or_ip
If you take a look at the link, you'll see a note :
"In the Properties string, there is a space between portNumber and=". I've tried
that but it seems that this bug had been resolved. When I put the
space,
I've
an number exception.
Thanks for your help.
Hoang
Joseph Weinstein <[email protected]> wrote:
Nguyen Hoang wrote:
Hi all,
could you please help me to create a connection pool for informix?
I use a com.informix.jdbcx.IfxXADataSource driver and here are
the
properties
user=informix
password=informix
url=jdbc:informix-sqli://TW010766:1526/vka:informixserver=TW010766
dataSourceName=TestEntityPool2
portNumber=1526
databaseName=vka
ifxIFXHOST=TW010766
serverName=vka
Here is the error message :
Error during Data Source creation: weblogic.common.ResourceException:DataSource(TestEntity)
can't be created with non-existent Pool (connection or multi)
(TestEntityPool2)
This means the pool was unable to make an informix connection withthe
properties
you gave. Please show me the few lines from an informix driver
example
program
that makes a successful JDBC connection to the DBMS you want, andI will
show
you how to define a pool for weblogic to do the same.
Joe
at weblogic.jdbc.common.internal.JdbcInfo.validateConnectionPool(JdbcInfo.java:127)
at weblogic.jdbc.common.internal.JdbcInfo.startDataSource(JdbcInfo.java:189)
at weblogic.jdbc.common.internal.JDBCService.addDeploymentx(JDBCService.java:293)
at weblogic.jdbc.common.internal.JDBCService.addDeployment(JDBCService.java:270)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:375)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:303)
at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:256)
at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:207)
Could you please tell me what's wrong with the configuration?
Many thanks in advance.
Hoang -
Create A Connection Pool In the ServletContextListener
The Specification says that we should create the connection pool in the ServletContextListener. I have the code for creating a connection pool (see below). How do I create it in the ServletContextListener?
import java.sql.Connection;
import java.sql.SQLException;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.sql.DataSource;
public class DBConnection
public static Connection getDBConnection() throws SQLException
Connection conn = null;
try
InitialContext ctx = new InitialContext();
DataSource ds = ( DataSource ) ctx.lookup( "java:comp/env/jdbc/MySQLDB" );
try
conn = ds.getConnection();
catch( SQLException e )
System.out.println( "Open connection failure: " + e.getMessage() );
catch( NamingException nEx )
nEx.printStackTrace();
return conn;I use the connection pool feature provide by the server I use. Is this what I should do? Please confirm.
import java.sql.Connection;
import java.sql.SQLException;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.sql.DataSource;
import javax.servlet.*;
public class CreateResources implements javax.servlet.ServletContextListener
public void contextInitialized(ServletContextEvent sce)
public static Connection getDBConnection() throws SQLException
Connection conn = null;
try
InitialContext ctx = new InitialContext();
DataSource ds = ( DataSource ) ctx.lookup( "java:comp/env/jdbc/MySQLDB" );
try
conn = ds.getConnection();
catch( SQLException e )
System.out.println( "Open connection failure: " + e.getMessage() );
catch( NamingException nEx )
nEx.printStackTrace();
return conn;
public void contextDestroyed(ServletCotnextEvent sce)
} -
Creating Connection Pool for DB2 V6.1
Hi,
I have created the Connection Pool to point to the DB2 database and has successfully
created the entity bean jar file. However,
when I encountered the following error:
The pool TestPool could not be found. Please make sure that it is declared in
your config.xml file.
The following in from my config.xml file:
<JDBCConnectionPool DriverName="COM.ibm.db2.jdbc.app.DB2Driver"
Name="TestPool"
Properties="user=mydata;server=examplesServer" URL="jdbc:db2:mydata"/>
Hope to hear from you soon. Thanks.Hi Jimmy,
You need to assign a target for your connection pool.
You may do it by going to console, selecting Target
tab on the pool and chose servers your want to run
the connection pool. If you use pre-6.1 version of
weblogic, you will need to reboot the server after you
assigned targets to it.
Regards,
Slava Imeshev
"Jimmy" <[email protected]> wrote in message
news:3c04ad6b$[email protected]..
>
Hi,
I have created the Connection Pool to point to the DB2 database and hassuccessfully
created the entity bean jar file. However,
when I encountered the following error:
The pool TestPool could not be found. Please make sure that it is declaredin
your config.xml file.
The following in from my config.xml file:
<JDBCConnectionPool DriverName="COM.ibm.db2.jdbc.app.DB2Driver"
Name="TestPool"
Properties="user=mydata;server=examplesServer" URL="jdbc:db2:mydata"/>
Hope to hear from you soon. Thanks.
Maybe you are looking for
-
Forecasting reports in discoverer?
Hi, Plz can somebody tell me whether we can make forecasting reports in oracle discoverer with time dimension? If yes then how to make them? Thanx in advance, Divya
-
Hi How can I change how many data points the centre line is calculated over on my SPC chart?
-
Videos sent from iPhone are vertical
Videos sent from an iPhone are vertical. How do I rotate to horizontal?
-
Bapi to create Invoice with reference to SalesOrder
Hi All, I want to create Invoice with reference to SalesOrder , can anybody help me regarding --> what is the Bapi to Create Invoice with reference to SalesOrder --> what are the import parameters Thanks in Advance Regards Srinivas
-
Is it possible to interrupt sfscleanup?
I've use Siebel 8.0.0.5 I run sfscleanup to remove orphan file in Siebel file system and it last long for 45 hours. Is there any way to stop this command(properly)? If I press "Ctrl+C", it will be interrupt right? Please suggest...