aspose file tools*
The moose likes Object Relational Mapping and the fly likes Coonection problem with weblogic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Coonection problem with weblogic" Watch "Coonection problem with weblogic" New topic
Author

Coonection problem with weblogic

Shankar Sitaraman
Greenhorn

Joined: Aug 26, 2004
Posts: 1
I am trying to update a table from hibernate using a datasource configured in weblogic. I am using pointbase database. I works fine in weblogic when I am using the datasource with CMP inweblogic. Individually I configured the pointbase in hibernate properties file and it works fine when I update using a client from hibernate. I have problem when I use the same client and try to update the table using the data source configured in weblogic.

I get the following exception

Aug 26, 2004 5:44:36 PM net.sf.hibernate.util.NamingHelper getInitialContext
INFO: JNDI InitialContext properties:{java.naming.provider.url=t3://localhost:70
01, java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory}
Aug 26, 2004 5:44:39 PM net.sf.hibernate.connection.DatasourceConnectionProvider
configure
INFO: Using datasource: examples-dataSource-demoPool
Aug 26, 2004 5:44:39 PM net.sf.hibernate.transaction.TransactionManagerLookupFac
tory getTransactionManagerLookup
INFO: No TransactionManagerLookup configured (in JTA environment, use of process
level read-write cache is not recommended)
Aug 26, 2004 5:44:39 PM net.sf.hibernate.cfg.SettingsFactory buildSettings
WARNING: Could not obtain connection metadata
java.sql.SQLException: User: PBPUBLIC, failed to be authenticated.
at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.j
ava:108)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
ef.java:284)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
ef.java:244)
at weblogic.jdbc.common.internal.RmiDataSource_811_WLStub.getConnection(
Unknown Source)
at net.sf.hibernate.connection.DatasourceConnectionProvider.getConnectio
n(DatasourceConnectionProvider.java:56)
at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.ja
va:72)
at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1
132)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.
java:766)
at examples.TestStudentCourse.main(TestStudentCourse.java:27)
Caused by: java.sql.SQLException: User: PBPUBLIC, failed to be authenticated.
at weblogic.jdbc.common.internal.RmiDataSource.getSubject(RmiDataSource.
java:257)
at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSour
ce.java:188)
at weblogic.jdbc.common.internal.RmiDataSource_WLSkel.invoke(Unknown Sou
rce)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:466)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerR
ef.java:108)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:409)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:353)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
144)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
a:404)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
Aug 26, 2004 5:44:39 PM net.sf.hibernate.cfg.SettingsFactory buildSettings
INFO: Use scrollable result sets: false
Aug 26, 2004 5:44:39 PM net.sf.hibernate.cfg.SettingsFactory buildSettings
INFO: Use JDBC3 getGeneratedKeys(): false
Aug 26, 2004 5:44:39 PM net.sf.hibernate.cfg.SettingsFactory buildSettings
INFO: Optimize cache for minimal puts: false
Aug 26, 2004 5:44:39 PM net.sf.hibernate.cfg.SettingsFactory buildSettings
INFO: Query language substitutions: {no='N', true=1, yes='Y', false=0}
Aug 26, 2004 5:44:39 PM net.sf.hibernate.cfg.SettingsFactory buildSettings
INFO: cache provider: net.sf.ehcache.hibernate.Provider
Aug 26, 2004 5:44:39 PM net.sf.hibernate.cfg.Configuration configureCaches
INFO: instantiating and configuring caches
Aug 26, 2004 5:44:40 PM net.sf.hibernate.impl.SessionFactoryImpl <init>
INFO: building session factory
Aug 26, 2004 5:44:41 PM net.sf.hibernate.impl.SessionFactoryObjectFactory addIns
tance

In the hibernate properrties file I have configured for weblogic as follows

hibernate.jndi.class weblogic.jndi.WLInitialContextFactory
hibernate.jndi.url t3://localhost:7001
hibernate.connection.datasource examples-dataSource-demoPool
hibernate.connection.username PBPUBLIC
hibernate.connection.password PBPUBLIC

Please some one send me a soluiton at earliest
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Coonection problem with weblogic