hamids,
Thank you so much for your message!
now I add the TranactionManagers, and the hibernate.cfg.xml looks as following:
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<!-- properties -->
<property name="connection.username">username</property>
<property name="connection.url">jdbc:oracle:thin:@ipaddress : port : sid </property>
<property name="connection.password">password</property>
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="dialect">net.sf.hibernate.dialect.Oracle9Dialect</property>
<property name="show_sql">false</property>
<property name="transaction.manager_lookup_class">net.sf.hibernate.transaction.WeblogicTransactionManagerLookup</property>
<mapping resource="hibernate/Role.hbm.xml" />
</session-factory>
</hibernate-configuration>
Now a new error as following:
00:00:51,046 INFO [Environment] Hibernate 2.1.6
00:00:51,046 INFO [Environment] hibernate.properties not found
00:00:51,062 INFO [Environment] using CGLIB reflection optimizer
00:00:51,062 INFO [Configuration] configuring from resource: /hibernate.cfg.xml
00:00:51,062 INFO [Configuration] Configuration resource: /hibernate.cfg.xml
00:00:51,734 INFO [Configuration] Mapping resource: hibernate/Role.hbm.xml
00:00:51,984 INFO [Binder] Mapping class: com.eplus.healthe.hibernate.Role -> ROLES
00:00:52,109 INFO [Configuration] Configured SessionFactory: null
00:00:52,109 INFO [Configuration] processing one-to-many association mappings
00:00:52,109 INFO [Configuration] processing one-to-one association property references
00:00:52,109 INFO [Configuration] processing foreign key constraints
00:00:52,140 INFO [Dialect] Using dialect: net.sf.hibernate.dialect.Oracle9Dialect
00:00:52,156 INFO [SettingsFactory] Use outer join fetching: true
00:00:52,156 INFO [DriverManagerConnectionProvider] Using Hibernate built-in connection pool (not for production use!)
00:00:52,156 INFO [DriverManagerConnectionProvider] Hibernate connection pool size: 20
00:00:52,265 INFO [DriverManagerConnectionProvider] using driver: oracle.jdbc.driver.OracleDriver at URL: jdbc:oracle:thin:@10.0.1.210:1521:UTF8
00:00:52,265 INFO [DriverManagerConnectionProvider] connection properties: {user=HEALTHE_ADMIN2, password=password}
00:00:52,265 INFO [TransactionManagerLookupFactory] No TransactionManagerLookup configured (in JTA environment, use of process level read-write cache is not recommended)
00:00:52,937 INFO [SettingsFactory] Use scrollable result sets: true
00:00:52,937 INFO [SettingsFactory] Use JDBC3 getGeneratedKeys(): false
00:00:52,937 INFO [SettingsFactory] Optimize cache for minimal puts: false
00:00:52,937 INFO [SettingsFactory] Query language substitutions: {}
00:00:52,937 INFO [SettingsFactory] cache provider: net.sf.hibernate.cache.EhCacheProvider
00:00:52,937 INFO [Configuration] instantiating and configuring caches
00:00:53,125 INFO [SessionFactoryImpl] building session factory
00:00:53,609 INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
I'm looking forawrd to hearing from you!
Regards,
Paul
|