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.