Creating a ConnectionPool in WLS6.1
HI all,
i am desperately trying to create a ConnectionPool in WLS6.1 sp1 because i need
it for my Entity
EJBs.
in my machine i have installed Oracle 8.0.5...
i got many errors (Drivers not found) so i decided to use Cloudscape.
the pool is created successfully, but since i am using the Cloudscape that comes
with WLS, when i deploy my
EJBs i receive the errro 'Table not found' (obviously).
so, can anyone tell me how can i download a 'good' copy of cloudscape and then
use it with WLS6.1??
has anyone ever tried that??
thanx and regards
marco
HI all,
i am desperately trying to create a ConnectionPool in WLS6.1 sp1 because i need
it for my Entity
EJBs.
in my machine i have installed Oracle 8.0.5...
i got many errors (Drivers not found) so i decided to use Cloudscape.
the pool is created successfully, but since i am using the Cloudscape that comes
with WLS, when i deploy my
EJBs i receive the errro 'Table not found' (obviously).
so, can anyone tell me how can i download a 'good' copy of cloudscape and then
use it with WLS6.1??
has anyone ever tried that??
thanx and regards
marco
Similar Messages
-
Steps to create another domain on WLS6?
Hi,
I am trying to create another domain in weblogic6.0, which by default have
three domain
already in there.
1. I startup example server and open weblogic admin console.
http://localhost:7001/console/
2. I select 'Create or edit other Domains' item from Configuration-General
menu,
then create a new domain (mybea) in Repositories.
it create a subdirectory mybea under bea/wlserver6.0/config
directory.
also with a config.xml file and I changed it a bit like follow.
---------- config.xml ------------
<Domain
Name="mybea"
>
<Server
AcceptBacklog="50"
AdministrationPort="0"
ClusterWeight="1"
ConsoleInputEnabled="false"
DGCIdlePeriodsUntilTimeout="2"
DefaultProtocol="t3"
DefaultSecureProtocol="t3s"
HttpdEnabled="true"
JavaCompiler="D:\BeaServer\jdk130/bin/javac"
ListenPort="7001"
Name="mybeaServer"
NativeIOEnabled="true"
SocketReaderTimeoutMaxMillis="10"
TransactionLogFilePrefix="config/mybea/logs/"
TunnelingClientPingSecs="45"
TunnelingClientTimeoutSecs="40"
>
<Log
FileName="./config/mybea/logs/weblogic.log"
Name="mybeaServer"
/>
<ServerDebug
Name="mybeaServer"
/>
<KernelDebug
Name="mybeaServer"
/>
</Server>
<JTA
Name="mybea"
/>
<ApplicationManager
Name="mybea"
/>
<Security
Name="mybea"
/>
</Domain>
3. Next step I am not sure how to do.
I rename startExamplesServer.cmd and then copy it to mybea directory
and changed startup script like this,
java -hotspot -ms64m -mx64m -classpath
%CLASSPATH% -Dweblogic.Domain=mybea -Dweblogic.Name=mybeaServer -Dbea.home=D
:\BeaServer -Dcloudscape.system.home=./samples/eval/cloudscape/data -Djava.s
ecurity.policy==D:\BeaServer\wlserver6.0/lib/weblogic.policy weblogic.Server
I got error ,
Starting WebLogic Server ....
<Jan 9, 2001 11:41:03 AM GMT+11:00> <Notice> <Management> <Loading
configuration file .\config\mybea\config.xml ...>
<Jan 9, 2001 11:41:05 AM GMT+11:00> <Info> <Logging> <Only log messages of
severity "Error" or worse will be display
<Jan 9, 2001 11:41:08 AM GMT+11:00> <Emergency> <Server> <Unable to
initialize the server: 'Fatal initialization exc
Throwable: java.lang.SecurityException: Authentication for user system
denied in realm weblogic
java.lang.SecurityException: Authentication for user system denied in realm
weblogic
at weblogic.security.acl.Realm.authenticate(Realm.java:209)
at weblogic.security.acl.Realm.getAuthenticatedName(Realm.java:229)
at
weblogic.security.acl.internal.Security.authenticate(Security.java:113)
at
weblogic.security.SecurityService.initializeSuid(SecurityService.java:293)
at
weblogic.security.SecurityService.initialize(SecurityService.java:123)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:343)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:169)
at weblogic.Server.main(Server.java:35)
'>
The WebLogic Server did not start up properly.
Exception raised: java.lang.SecurityException: Authentication for user
system denied in realm weblogic
java.lang.SecurityException: Authentication for user system denied in realm
weblogic
at weblogic.security.acl.Realm.authenticate(Realm.java:209)
at weblogic.security.acl.Realm.getAuthenticatedName(Realm.java:229)
at
weblogic.security.acl.internal.Security.authenticate(Security.java:113)
at
weblogic.security.SecurityService.initializeSuid(SecurityService.java:293)
at
weblogic.security.SecurityService.initialize(SecurityService.java:123)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:343)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:169)
at weblogic.Server.main(Server.java:35)
it look like fileRealm.properties file is not correct,
Can someone give me idea how to do this?
Thanks in advanceHi Patrick,
Thanks for the that great tip.
In that time machine back up I have some applications for e.g. MS office etc and I wanted it to be like a virtual machine as such that I launch when I want to use the applications, see my data etc....I have bought parallels as that allows you to have multiple virtual machines on your laptop whether these are multiple mac images as time machine backups or linux, Microsoft Windows 7, 8 etc....
Thats what I eventually want to do here...
This feature that you provided is also of good reference for me in future. -
How can i create a connectionPool in BMP?
How connectionPolling handled in BMP?Application server is websphere.
Simple - you don't need to as WebSphere already has one and the J2EE provides you with an API to use.
At WebSphere top-level create a DataSource to point to your database and give the data-source a name (eg. MyDataSource). You will have to specify a db driver (but WAS gives you options) and the db URL.
Then any code running in WAS can do this...
javax.naming.Context ctx = new InitialContext();
DataSource ds = (DataSource) ctx.lookup("jdbc/MyDataSource");
java.sql.Connection con = null;
try {
con = ds.getConnection("usr", "pwd");
java.sql.Statement stmt = con.createStatement();
java.sql.ResultSet rs = stmt.executeQuery("SELECT * FROM my_table");
while (rs.next()) {
//etc
} catch (Exception e) {
//handle
} finally {
if (con != null) {
try { con.close(); } catch (SQLException sql) { /* handle */ }
}In an BMP EJB, you can set the ds variable as an instance variable and initialize it in the setSessionContext() method, supplying the username and password in the EJB's environment properties -
Error creating connection pool for WLS6.1 for DB2 connect
Hi,
We have installed licensed copy of Weblogic 6.1 Applciation server on HPUX 11.0.
Our backend system is DB2 on Mainframe (S/390). We have installed DB2Connect
JDBC driver ver 7.1 on HPUX. While creating pool throught weblogic console with
following parameters:
Name: DB2Pool
URL:jdbc:db2:INFOSYSG
Driver Classname: COM.ibm.db2.jdbc.app.DB2Driver
Properties:
user=jargon
password=jargon
Then appropriate Target was selected.
When server was started following error was recevied on console:
"CLI0647E Error allocating DB2 environment handle, rc=db2jdbc"
Any pointers to the solution are welcome.
Regards,
Punam Chordia
Infosys Technologies Ltd, Pune
Phone: 91-20-2932000 Ext. 5650
Fax: 91-20-2932832Hi,
thank you for your answer, but i already fixed my problem.
i simply put the profile-script of the db2-instance into the start script of the
weblogic server.
i didn´t really figure out so far which variable was missing, but now it works.
unfortunately i found that this driver supports only 2 connections at the same
time when using jdk 1.3.0 :-(.
Regards,
Andreas Koch
Netfidelity Consulting GmbH
tel +49 211 6012330
fax +49 211 6012320
mail [email protected]
Joseph Weinstein <[email protected]> wrote:
If you can connect to DB2 on your own, using their
driver and their JDBC examples, then show me the code
that works, and show me the classpath and OS environment
you're running in, and I'll show you what should be
done for the server.
Andreas Koch wrote:
Hi,
unfortunately i have the same problem and found no solution so far.
you may check my start-script, but in my eyes all db/2 stuff shouldbe
found.
thanks for urgent help
Andreas Koch
NetFidelity Consulting Gmbh
[email protected]
"Slava Imeshev" <[email protected]> schrieb im Newsbeitrag
news:[email protected]...
Hi Punam,
You need to make sure that all driver's native libraries are
available to the Weblogic. Check if SQLLIB\bin is on the path
and let us know if it helps.
Regards,
Slava Imeshev
"Punam" <[email protected]> wrote in message
news:[email protected]...
Hi,
We have installed licensed copy of Weblogic 6.1 Applciation server
on
HPUX
11.0.
Our backend system is DB2 on Mainframe (S/390). We have installedDB2Connect
JDBC driver ver 7.1 on HPUX. While creating pool throught weblogic
console
with
following parameters:
Name: DB2Pool
URL:jdbc:db2:INFOSYSG
Driver Classname: COM.ibm.db2.jdbc.app.DB2Driver
Properties:
user=jargon
password=jargon
Then appropriate Target was selected.
When server was started following error was recevied on console:
"CLI0647E Error allocating DB2 environment handle, rc=db2jdbc"
Any pointers to the solution are welcome.
Regards,
Punam Chordia
Infosys Technologies Ltd, Pune
Phone: 91-20-2932000 Ext. 5650
Fax: 91-20-2932832
Name: startWebLogic.sh
startWebLogic.sh Type: Kornshell Script File (application/x-unknown-content-type-mks_shell)
Encoding: x-uuencode -
Using Oracle thin driver with Weblogic 6.1
hi all,
i am trying to create a ConnectionPool using WLS6.1 and Oracle 8.0.5.
Since i cannot use the weblogic driver (due to the old version of oracle that
i have)
i am trying to use instead the oracle thin driver.
i configured my pool as follows:
URL jdbc:oracle:[email protected]:1521:ORC1
Driver oracle.jdbc.Driver.OracleDriver
Propeties user=SCOTT
when i try to assing the created pool to a server (using the 'Target' link),
i always got this exception
weblogic.management.DeploymentException: Error creating connection pool - with
n
ested exception:
[weblogic.common.ResourceException: Cannot load driver class: oracle.jdbc.Driver
.OracleDriver]
at weblogic.jdbc.common.JDBCService.addDeployment(JDBCService.java:110)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
oymentTarget.java:329)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
oymentTarget.java:144)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:608)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
.java:592)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:352)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBean
s(ConfigurationMBeanImpl.java:484)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:354)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:449)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:190)
at $Proxy7.addDeployment(Unknown Source)
at weblogic.management.internal.DynamicMBeanImpl.updateDeployments(Dynam
icMBeanImpl.java:1448)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBe
anImpl.java:858)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBe
anImpl.java:810)
at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(Conf
igurationMBeanImpl.java:288)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.j
ava:1356)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.j
ava:1331)
at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:
303)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:185)
at $Proxy75.setTargets(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.console.info.FilteredMBeanAttribute.doSet(Filtere
dMBeanAttribute.java:89)
at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(D
oEditMBeanAction.java:116)
at weblogic.management.console.actions.internal.ActionServlet.doAction(A
ctionServlet.java:167)
at weblogic.management.console.actions.internal.ActionServlet.doPost(Act
ionServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:2456)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2039)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
--------------- nested within: ------------------
weblogic.management.DistributedOperationUpdateException: Error creating connecti
on pool - with nested exception:
[weblogic.management.DeploymentException: Error creating connection pool - with
nested exception:
[weblogic.common.ResourceException: Cannot load driver class: oracle.jdbc.Driver
.OracleDriver]]
at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBean
s(ConfigurationMBeanImpl.java:494)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:354)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:44>
However, i set the CLASSPATH & PATH of my startWebLogic.cmd as follows:
set PATH=c:\orant\bin;d:\bea\wlserver6.1\bin\oci817_8;.\bin;%PATH%
set CLASSPATH=.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar;.\samples\eval\cloudscape\lib\cloudscape.jar;.\config\examples\serverclasses;c:\orant\jdbc\lib\classes111.zip
AND, i have written a small program that uses JDBC (without weblogic) to query
a table
on the Oracle (using the pool's URL in the properties for getting the Connection
conn = DriverManager.getConnection("jdbc:oracle:thin:@127.0.0.1:1521:ORC1", "scott",
"tiger");
and that program works fine.
Can anyone tell me what is wrong?? it seems that everything is in order (with
respect to CLASSPATH, PATH etc..)
hope someone can solve my problem
thanx and regards
marcoyour url should be
jdbc:oracle:thin:@127.0.0.1:1521:ORC1
notice the ':' before the '@'.
sree
"Marco" <[email protected]> wrote in message
news:[email protected]...
Hi Sree,
You have to place the classes11.zip file in the beginning of the classpath.i did it. my CLASSPATH is now
CLASSPATH=c:\orant\jdbc\lib\classes111.zip;.;.\lib\weblogic_sp.jar;.\lib\web
logic.jar;.\samples\eval\cloudscape\lib\cloudscape.jar;.\config\examples\ser
verclasses
But now, when i assign the target, the exception is:
--------------- nested within: ------------------
weblogic.management.DistributedOperationUpdateException: Error creating
connecti
on pool - with nested exception:
[weblogic.management.DeploymentException: Error creating connection pool -
with
nested exception:
[weblogic.common.ResourceException: weblogic.common.ResourceException:
Could not create pool connection. The DBMS driver exception was:
java.sql.SQLException: Sub Protocol must be specified in connection URL
at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:352)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:102)
at
weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Con
nectionEnvFactory.java:192)
at
weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Con
nectionEnvFactory.java:134)
at
weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllo
cator.java:698)
at
weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.j
ava:282)
at
weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.j
ava:629)
at
weblogic.jdbc.common.JDBCService.addDeployment(JDBCService.java:107)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
oymentTarget.java:329)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
oymentTarget.java:144)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:608)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
java:592)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:352)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at
weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBean
s(ConfigurationMBeanImpl.java:484)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:354)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:449)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:190)
at $Proxy8.addDeployment(Unknown Source)
at weblogic.management.internal.DynamicMB>
what is SubProtocol???
my ConnectionPool is configured as follows:
Name: MyJDBC Connection Pool
URL : jdbc:oracle:[email protected]:1521:ORC1
Driver: oracle.jdbc.driver.OracleDriver
Properties: user=SCOTT
Password : tiger
can u help me???
thanx in advance and regards
marco
>
>
at
weblogic.jdbc.common.JDBCService.addDeployment(JDBCService.java:110)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
oymentTarget.java:329)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
oymentTarget.java:144)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:608)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
java:592)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:352)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at
weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBean
s(ConfigurationMBeanImpl.java:484)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:354)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:449)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:190)
at $Proxy7.addDeployment(Unknown Source)
at
weblogic.management.internal.DynamicMBeanImpl.updateDeployments(Dynam
icMBeanImpl.java:1448)
at
weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBe
anImpl.java:858)
at
weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBe
anImpl.java:810)
at
weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(Conf
igurationMBeanImpl.java:288)
at
com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.j
ava:1356)
at
com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.j
ava:1331)
at
weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:
303)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:185)
at $Proxy75.setTargets(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.console.info.FilteredMBeanAttribute.doSet(Filtere
dMBeanAttribute.java:89)
at
weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(D
oEditMBeanAction.java:116)
at
weblogic.management.console.actions.internal.ActionServlet.doAction(A
ctionServlet.java:167)
at
weblogic.management.console.actions.internal.ActionServlet.doPost(Act
ionServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:265)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:200)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:2456)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2039)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
--------------- nested within: ------------------
weblogic.management.DistributedOperationUpdateException: Error creating
connecti
on pool - with nested exception:
[weblogic.management.DeploymentException: Error creating connection pool
with
nested exception:
[weblogic.common.ResourceException: Cannot load driver class:
oracle.jdbc.Driver
OracleDriver]]
at
weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBean
s(ConfigurationMBeanImpl.java:494)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:354)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:44>
However, i set the CLASSPATH & PATH of my startWebLogic.cmd as follows:
set PATH=c:\orant\bin;d:\bea\wlserver6.1\bin\oci817_8;.\bin;%PATH%
set
CLASSPATH=.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar;.\samples\eval\cloudsc
a
pe\lib\cloudscape.jar;.\config\examples\serverclasses;c:\orant\jdbc\lib\clas
ses111.zip
AND, i have written a small program that uses JDBC (without weblogic)
to
query
a table
on the Oracle (using the pool's URL in the properties for getting the
Connection
conn = DriverManager.getConnection("jdbc:oracle:thin:@127.0.0.1:1521:ORC1",
"scott",
"tiger");
and that program works fine.
Can anyone tell me what is wrong?? it seems that everything is in order
(with
respect to CLASSPATH, PATH etc..)
hope someone can solve my problem
thanx and regards
marco -
when i use the following command to create a connectionPool
java weblogic.Admin -url t3://localhost:8100 -username admin -passwd 123456 CREATE_POOL
testPool driver=com.pointbase.jdbc.jdbcUniversalDriver, url=jdbc:pointbase://localhost/mydb,props=user=cwy;password=123456,
maxCapacity=10
Then ,there is an error:
Missing startup value props in JDBC Connectin Pool testPool
The username and password can not cause the error.
How can i do that???????when i use the following command to create a connectionPool
java weblogic.Admin -url t3://localhost:8100 -username admin -passwd 123456 CREATE_POOL
testPool driver=com.pointbase.jdbc.jdbcUniversalDriver, url=jdbc:pointbase://localhost/mydb,props=user=cwy;password=123456,
maxCapacity=10
Then ,there is an error:
Missing startup value props in JDBC Connectin Pool testPool
The username and password can not cause the error.
How can i do that??????? -
Error Message while creating connection pool
Hi all,
I got the following error message while creating connection pool for the
SQL Server thru the Application Server Admin Console.
The message is,
An error has occured.
Operation 'create.Jdbc.ConnectionPool' failed in 'resources' Config Mbean. Target exception message :
JdbcConnectionPool Already Exists: cannot add duplicate.
But the connection pool for the SQL Server was not there in the list.
What may be the possible reason for this error.
i was trying to deploy a BMP entiy bean using the Sun Application Server.
Prior deploying i just tried to create connection pool and test the connection using the Admin Console
Please help me by providing a solution.Kriti Sundar Mazumder wrote:
Hi
I am getting an following error message, while creating database connection pool
in weblogic 7.
"<Jun 18, 2004 4:52:36 AM CDT> <Error> <JDBC> <001060> <Cannot startup connection
pool "MyJDBCConnectionPool" java.sql.SQLException: [IBM][JDBC Driver] CLI0647E
Error allocating DB2 environment handle, rc=-1.>"
Can anyone help me out in this regard
Regards
KritiHi. I am no expert, but it sounds like a problem with the privileges the user
has... The best thing is to step back to a simpler environment. Can you try
connecting to DB2 with a simple program like utils.dbping? Please look at our
driver docs for the DB2 driver, because there are several variations in connect
properties depending on the type of DB2 you are connecting to...
Joe -
Minimum DB2 resources needed for a WL ConnectionPool to DB2 on UNIX?
I posted this same message to the DB2 group as well....
I want to create a ConnectionPool to a DB2 database using the Weblogic
App Server v6.1 running on UNIX/Solaris 8. The DB2 database that I'd
like to connect to resides on a separate server(on Windows 2K Server)
elsewhere on our network.
What is the bare minimum required to install on the Unix machine to
support this client connection?
To configure the LIGHTEST posible setup on the UNIX machine, do I:
Install the "DB2 Run-Time Client"?
OR
Install the "DB2 Connect for Unix"?
OR
Neither?
After one of these is installed, do I: (again, what is the minimum
required?)
Do I need to create an instance? (with associated users & groups)
OR
Do I need to configure an Administration Server?
OR
BOTH?
OR
Neither?
I know I need to include the db2driver.zip and the db2home/lib in WL's
environment variables within the Weblogic App Server. Anything else?
I have found the following settings on the web to configure the
ConnectionPool but I'm unsure of a couple values:
URL: jdbc:db2:???? (not sure what to put here)
CLASSNAME: COM.ibm.db2.jdbc.app.DB2Driver
PROPS: (what are the Required (minimum) props for a connection?)
user,pwd,server(?)If you use the DB2 driver from Data Direct, it is a type 4 driver. You only need 3 jar files
(the type 2 driver from IBM installs about 60Meg of data on your drive).
"Stephen Felts" <[email protected]> wrote in message news:[email protected]...
Using IBM's drivers, you install the DB2 Runtime Clients V8.1 (multiple languages).
Then you can follow the documentation from WLS 8.1 (even if running 6.1, except
ignore the sentence about using the JDBC Connection Pool Assistant, which is new
in 8.1b - you will need to type everything in yourself).
The documentation has a sample excerpt from the config.xml.
See http://e-docs.bea.com/wls/docs81/jdbc/thirdparty.html#1096721.
The documentation also mentions using the Client Configuration Assistant.
Using the DB2 command line processor, you need to enter something like
catalog tcpip node <nodename> remote <servername> server <port_number>
catalog database <databasename> as <aliasname> at node <nodename>
"Bobb" <[email protected]> wrote in message news:[email protected]...
I posted this same message to the DB2 group as well....
I want to create a ConnectionPool to a DB2 database using the Weblogic
App Server v6.1 running on UNIX/Solaris 8. The DB2 database that I'd
like to connect to resides on a separate server(on Windows 2K Server)
elsewhere on our network.
What is the bare minimum required to install on the Unix machine to
support this client connection?
To configure the LIGHTEST posible setup on the UNIX machine, do I:
Install the "DB2 Run-Time Client"?
OR
Install the "DB2 Connect for Unix"?
OR
Neither?
After one of these is installed, do I: (again, what is the minimum
required?)
Do I need to create an instance? (with associated users & groups)
OR
Do I need to configure an Administration Server?
OR
BOTH?
OR
Neither?
I know I need to include the db2driver.zip and the db2home/lib in WL's
environment variables within the Weblogic App Server. Anything else?
I have found the following settings on the web to configure the
ConnectionPool but I'm unsure of a couple values:
URL: jdbc:db2:???? (not sure what to put here)
CLASSNAME: COM.ibm.db2.jdbc.app.DB2Driver
PROPS: (what are the Required (minimum) props for a connection?)
user,pwd,server(?) -
Proper use of ConnectionPool in occi
Hi,
I am developing a client server application using Windows server 2003 x64, Oracle 11.1.0.6.0 client connecting to oracle 10.1.0.2.0 database, Visual studio 2008, visual c++ 9.
The scenario is something like this,
upon receiving the client request, the server executes a stored procedure as per the request. I have a number of classes thru which the stored procedure gets called. Currently, in every method of these classes, I am creating new connection to the database as follows..
+Environment *env = Environment::createEnvironment(Environment::OBJECT);+
+Connection *conn = env->createConnection( USERID, PASSWORD, ORACLESID );+
But now I want to use a ConnectionPool to improve performance of the application.
My question is, where do I create the ConnectionPool object so that it is accessible from all the methods of the classes?Got it!!
I did the following..
Declare the Environment and StatelessConnectionPool objects above main function.
+oracle::occi::Environment *env;+
+oracle::occi::StatelessConnectionPool *connPool;+
+int tmain(int argc, TCHAR* argv[])+
+{+
+......+
+}+
Then declare these objects as EXTERN from wherever you want to access them.
+extern oracle::occi::Environment *env;+
+extern oracle::occi::StatelessConnectionPool *connPool;+
+//Method that uses these objects+
The objects can directly be used in the methods where the they are declared as 'extern'.
Enjoy! -
Unable to Persistent ConnPool & DS in config.xml created dynamically.
Here is my scenario.
I am trying to create JDBCConnectionPools and JDBCDataSources dynamically from a StartupClass. The StartupClass is creating the ConnectionPool and DataSources but it is not persisting it to the config.xml. I tried using setPersistentEnaabled on JDBCConnectionPoolMBean and also used RepositoryMBean to persistent the domain, even then it is not working.
If I run the same code out side the server JVM it is working fine. Creating all JDBCConnectionPools and their associated DataSources and they are all getting persisted to the config.xml.
I want to know whether it is a feature of webloigc server or it is a bug in weblogic server.
My ENV:
Weblogic 8.1 SP3
Windows 2000.
JAVA - jdk142_04(which comes along the weblogic 8.1 SP3)
Thanks -
SivaHi,
Pls try application-config tag like this
<application-config>
<property name="PrivateSharingReference" value="com.sap.portal.htmlb">
</property>
<property name="SharingReference" value="com.sap.portal.runtime.application.soap">
</property>
</application-config>
Also check component tag is in this order
<component name="AddAccounts">
<component-config>
<property name="ClassName" value="Test">
</property>
<property name="JSP" value="pagelet/test.jsp">
</property>
</component-config>
<component-profile>
<property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld">
</property>
</component-profile>
</component>
regards,
Sujesh -
How ConnectionPool works in RAC?
For example, we create a ConnectionPool .if one of the instances in RAC is down, and some connections in ConnectionPool just connect this instance, then this connection become invalid. Can ConnectionPool automatically eliminate this connection from the pool?
If happened, How can I deal with it?For example, we create a ConnectionPool .if one of the instances in RAC is down, and some connections in ConnectionPool just connect this instance, then this connection become invalid. Can ConnectionPool automatically eliminate this connection from the pool?
If happened, How can I deal with it? -
ResourceException code=7 Thrown While Creating OracleConnectionPool
Hi Everyone...
i have needed to reinstall oracle 11g enterprise edition on our server; but after the reinstallation when i try to create a connectionpool by glassfish jdbc pool manager it always throws this exception(and also writes down to service.log):
at com.sun.enterprise.tools.admingui.util.JMXUtil.invoke(JMXUtil.java:124)+
* at com.sun.enterprise.tools.admingui.util.JMXUtil.invoke(JMXUtil.java:75)*
* at com.sun.enterprise.tools.admingui.handlers.JdbcHandlers.pingJdbcConnectionPool(JdbcHandlers.java:530)*
* at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)*
* at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)*
* at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)*
* at java.lang.reflect.Method.invoke(Method.java:597)*
* at com.sun.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:422)*
* at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:424)*
* at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:398)*
* at com.sun.jsftemplating.layout.event.CommandActionListener.invokeCommandHandlers(CommandActionListener.java:132)*
* at com.sun.jsftemplating.layout.event.CommandActionListener.processAction(CommandActionListener.java:80)*
* at javax.faces.event.ActionEvent.processListener(ActionEvent.java:77)*
* at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:746)*
* at javax.faces.component.UICommand.broadcast(UICommand.java:368)*
* at com.sun.webui.jsf.component.WebuiCommand.broadcast(WebuiCommand.java:160)*
* at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:447)*
* at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:752)*
* at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)*
* at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)*
* at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)*
* at com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.execute(PartialTraversalLifecycle.java:80)*
* at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)*
* at com.sun.enterprise.tools.admingui.servlet.DelayedInitFacesServlet.service(DelayedInitFacesServlet.java:89)*
* at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)*
* at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:333)*
* at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)*
* at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:240)*
* at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)*
* at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)*
* at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:313)*
* at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)*
* at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)*
* at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)*
* at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)*
* at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)*
* at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)*
* at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)*
* at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)*
* at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)*
* at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)*
* at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)*
* at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)*
* at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)*
* at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)*
* at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)*
* at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)*
* at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:288)*
* at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:647)*
* at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:579)*
* at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:831)*
* at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)*
* at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)*
* at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)*
* at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)*
* at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:116)*
Caused by: javax.resource.ResourceException: 7+
* at com.sun.enterprise.connectors.ConnectorConnectionPoolAdminServiceImpl.testConnectionPool(ConnectorConnectionPoolAdminServiceImpl.java:556)*
* at com.sun.enterprise.connectors.ConnectorRuntime.testConnectionPool(ConnectorRuntime.java:520)*
* at com.sun.enterprise.admin.mbeans.ResourcesMBean.pingConnectionPool(ResourcesMBean.java:2387)*
* at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)*
* at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)*
* at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)*
* at java.lang.reflect.Method.invoke(Method.java:597)*
* at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:381)*
* at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:364)*
* at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:477)*
* at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)*
* at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)*
* at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)*
* at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)*
* at java.lang.reflect.Method.invoke(Method.java:597)*
* at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)*
* at $Proxy1.invoke(Unknown Source)*
* at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)*
* at com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174)*
* at com.sun.enterprise.tools.admingui.util.JMXUtil.invoke(JMXUtil.java:119)*
* ... 55 more*
Caused by: java.lang.ArrayIndexOutOfBoundsException: 7+
* at oracle.security.o3logon.C0.r(C0)*
* at oracle.security.o3logon.C0.l(C0)*
* at oracle.security.o3logon.C1.c(C1)*
* at oracle.security.o3logon.O3LoginClientHelper.getEPasswd(O3LoginClientHelper)*
* at oracle.jdbc.ttc7.O3log.<init>(O3log.java:289)*
* at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:251)*
* at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:249)*
* at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:365)*
* at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)*
* at java.sql.DriverManager.getConnection(DriverManager.java:582)*
* at java.sql.DriverManager.getConnection(DriverManager.java:185)*
* at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:111)*
* at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:90)*
* at com.sun.gjc.spi.DSManagedConnectionFactory.createManagedConnection(DSManagedConnectionFactory.java:105)*
* at com.sun.enterprise.connectors.ConnectorConnectionPoolAdminServiceImpl.getUnpooledConnection(ConnectorConnectionPoolAdminServiceImpl.java:1315)*
* at com.sun.enterprise.connectors.ConnectorConnectionPoolAdminServiceImpl.testConnectionPool(ConnectorConnectionPoolAdminServiceImpl.java:551)*
* ... 74 more*
At least , anybody knows the meaning of error codes of ResourceException?? Because i dont know what the code # 7 means... if there is a link or a list for error codes i will be pleased...
Thx for your replies in advance...Hi Gopi,
Please let me know one thing ....ther seems to be a confusion here. In the Type you have chosen as TEXT??? This is actually not available. Actually the Length field is not available for any other types other than numeric and alpha numeric. Foe numeric type the structure filed is not available.
I recommend you to remove the UDF and add it once gain using the follwoing combo:
1. Title -
> Vcode
2. Description -
> Vender code
3. Type --> Alphanumeric
4. Structure --->Regular
5. Length -
> 10
Nagesh -
I hava an application that uses both a servlet and a JSP and I need to use connection pooling. I have a connectionPool class that works fine in the servlet. I create the pool in my init() method and access it when needed in doGet(). I would like to do the same thing in my JSP, but since the server creates the servlet code, how can I create the connectionPool only once rather than every time the JSP is invoked? In other words, what can I do to simulate a servlet's init() method in a JSP?
If you read the JavaServer Pages specification, you will realize that there is provision for such things.
The following is an extract from the JavaServer Pages specification 1.1...
The contract also describes how a JSP author can indicate that some actions must be taken
when the init() and destroy() methods of the page implementation occur. In JSP 1.1 this is
done by defining methods with name jspInit() and jspDestroy() in a declaration scripting
element in the JSP page. Before the first time a request is delivered to a JSP page a jspInit()
method, if present, will be called to prepare the page. Similarly, a JSP container can reclaim
the resources used by a JSP page at any time that a request is not being serviced by the JSP
page by invoking first its jspDestroy() method, if present.
So, you should dfine a method with the signature public void jspInit() in your JSP and do the one time initialization therein. Also, you do the associated cleanup in a method with the signature public void jspDestroy() -
How can i locate the resource file in the weblogic?
hello
in struts, i can leave some parameter in a resource file (such as "Application.properties")outside of my code,and get them in the "Action" class by the "getResource" method.
in my data access tier,i still want to use such a machanism but i can't use the "getResource()" method,for example,there is a ConnectionPool class,i want to read some parameters from a resource file ("param.properties") that is under the same directory as the ConnectionPool class,the following is the code snippet:
public static void init(DataSource ds){
myself=new ConnectionPool(ds);
java.util.Properties prop=new java.util.Properties();
try{
java.io.FileInputStream fin=new java.io.FileInputStream("./param.properties");
prop.load(fin);
}catch(Exception e){
e.printStackTrace();
System.out.println(prop.get("help.create"));
the "ConnectionPool" class is in the "com.jhtop.task.forum.db.util" package,the "param.properties" is in the same package (com.jhtop.task.forum.db.util),
but when i execute the program,it tell me that it can't find the file.if i use the absolute path,it works.
i wonder how can i locate the file path in the weblogic,or what's my current path,or how may i setup my work directory?
in tomcat,my current directory is bin directory,how about weblogic?
who can help me?thank you!My english is bad and I'm not sure I've well understood your problem.
How have you created your file ?
Why do you put it in such a directory and not an other ? -
Process instance identifications
Hi,
I'm working on BPM 11GR1. Can anybody please tell me what is the link (if there is any one) between the follwing instance identifications: "Instance ID", "Conversation ID", witch appear in Enterprise Manager environment and "Instance #" in BPM Workspace? What does it mean "Conversation ID"?
RegardsNamrata,
The run time bean information is also stored in the default database pointbase of weblogic.You can point this database to any other database like Oracle ,db2 etc.You need to run the databse scripts which you can find in the installed directory.
You need to create a connectionPool,JNDI and need to use this JNDI name in the weblogic server Admin console.
Or you can change the default database setting during the domain creation.
Hope this helps you.
Regards
Bishnu
Maybe you are looking for
-
I have a question about the downloads for CS4.
I had to go back to CS4 Master Suite after my card was deactivated, because adobe got hacked and my credit card was compromised. Since I was in the middle of traveling and I'm still in a bad situation, because of it I am still on CS4. Which sucks for
-
My itunes gift card only has a 15 digit code but it requires 16 digits to redeem it, what do I do?
-
Hi, I'm just a beginner with XI. I've got such scenario to develop. Could anyone help me ? 1. After completing production in external system I'm receving LOIPRO.LOIPRO01 message from R/3 system with status I0045. (I mean LOIPRO with status I0045 is b
-
Deleting Data/ Process Chains
Hi All, I want to delete data from a number of cubes, and also after deleting I want to make sure that no data is to be loaded into these cubes via any process chains that are already present and loading. My Question is by looking at a cube h
-
Beginner needs help with CMR field problem
Hello, I have two ejbs, one called EstablishmentEJB and another called VisitorCommentsEJB. The relationship is of one EstablishmentEJB instance to many VisitorCommentsEJB instances. Here are the definitions for the tables: CREATE TABLE establishments