-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Problem with Resource Reference
PostPosted: Wed Feb 02, 2005 9:30 pm 
Beginner
Beginner

Joined: Mon Nov 29, 2004 5:34 pm
Posts: 35
Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 2.1.7

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Name and version of the database you are using:Oracle 9.2.0.1.0

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:



Hi,
I am using Websphere 5.1.2 and wants to persist my data through hibernate.

1. I have create the datasource for websphere and gave JNDI name as jdbc/oracle/abc
2. And in the hibernate configuration file hibernate.cfg.xml I have the following to access the

<hibernate-configuration>
<session-factory>
<property name="hibernate.session_factory_name">
HibernateSessionFactory
</property>
<property name="hibernate.connection.datasource">jdbc/oracle/abc</property>
<property name="default_schema">ACCESS</property>
<property name="hibernate.dialect">net.sf.hibernate.dialect.Oracle9Dialect</property>
<property name="hibernate.show_sql">true</property>
<property name="net.sf.hibernate.transaction.JTATransactionFactory">
net.sf.hibernate.transaction.WebSphereTransactionManagerLookup
</property>
<mapping resource="domain/person.hbm.xml" />
</session-factory>
</hibernate-configuration>

3. When I am trying to start the websphere server I am getting following error in Console.

[2/2/05 17:05:33:778 PST] 3d7a3fb9 ConnectionFac I J2CA0122I: Resource reference jdbc/oracle/abc could not be located, so default values of the following are used: [Resource-ref settings]

res-auth: 1 (APPLICATION)
res-isolation-level: 0 (TRANSACTION_NONE)
res-sharing-scope: true (SHAREABLE)
res-resolution-control: 999 (undefined)
[Other attributes]

isCMP1_x: false (not CMP1.x)
isJMS: false (not JMS)

[2/2/05 17:05:33:948 PST] 3d7a3fb9 DatasourceCon I net.sf.hibernate.connection.DatasourceConnectionProvider Using datasource: jdbc/oracle/abc



Did any of you get similar problems, what about the problem here.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.