At 22:36 18/03/2003 +0100, Christophe Lombart wrote:
Just to complete the information provided by Lucy, you can find here how to deploy OJB (PB) on weblogic. It is quite similar to Jboss.
I think Thomas should be interested to receive this small install guide for weblogic (Tested only on Weblogic 7):

I'm getting close to my wits end with problems using OJB PB 1.0 rc1 in Weblogic 7 against Oracle 8.1.7 via Type 4 Oracle jdbc driver. If anyone could help shed some light on this, it would be very much appreciated!


I've followed Christophe/Lucy's instructions, tweaked the existing jboss samples but am getting a weird error message :

SQLException thrown while trying to get Connection from Datasource (prodConnectionPool) User: system, failed to be authenticated.

In WL 7, I've adapted the fileRealm.properties to allow everyone reset/reserve access on this datasource on this host (everything's running locally). The same datasource also works just fine when called via my JNDI test harness. And I can connect using the users credentials below via plain JDBC.

But accessing the datasource via OJB causes a huge stack trace (at very bottom).

Fyi, the repository file looks like this -

<jdbc-connection-descriptor
jcd-alias="default"
default-connection="true"
platform="Oracle"
jdbc-level="2.0"
jndi-datasource-name="prodConnectionPool"
username="system"
password="manager"
eager-release="false"
batch-mode="false"
useAutoCommit="0"
ignoreAutoCommitExceptions="false"
>
<sequence-manager className="org.apache.ojb.broker.util.sequence.SequenceManagerNextValImpl">
<attribute attribute-name="grabSize" attribute-value="20"/>
</sequence-manager>
</jdbc-connection-descriptor>



<02-Apr-03 18:55:08 BST> <Notice> <WebLogicServer> <000360> <Server started in R
UNNING mode>
ejbCreate was called
[org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl] ERROR: SQLException thrown while trying to get Connection from Datasource (prodConnectionPool) User: system, failed to be authenticated.
java.sql.SQLException: User: system, failed to be authenticated.
at weblogic.jdbc.common.internal.RmiDataSource.getSubject(RmiDataSource.
java:224)
at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSour
ce.java:150)
at org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl.newCo
nnectionFromDataSource(Unknown Source)
at org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl.looku
pConnection(Unknown Source)
at org.apache.ojb.broker.accesslayer.ConnectionFactoryManagedImpl.lookup
Connection(Unknown Source)
at org.apache.ojb.broker.accesslayer.ConnectionManagerImpl.getConnection
(Unknown Source)
at org.apache.ojb.broker.accesslayer.StatementManager.getSelectByPKState
ment(Unknown Source)
at org.apache.ojb.broker.accesslayer.JdbcAccessImpl.materializeObject(Un
known Source)
at org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.store(Unknown So
urce)
at org.apache.ojb.broker.singlevm.DelegatingPersistenceBroker.store(Unkn
own Source)
at org.apache.ojb.ejb.PBSessionBean.storeObjects(PBSessionBean.java:184)


at org.apache.ojb.ejb.PBSessionBean.storeObjects(PBSessionBean.java:225)

at org.apache.ojb.ejb.PBSessionBean_2i5o70_EOImpl.storeObjects(PBSession
Bean_2i5o70_EOImpl.java:149)
at org.apache.ojb.ejb.PBSessionBean_2i5o70_EOImpl_WLSkel.invoke(Unknown
Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerR
ef.java:114)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
eManager.java:821)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
a:308)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189



Many thanks! Jem



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to