[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3175?page=c...
]
purandhar P commented on HHH-3175:
----------------------------------
Hi it is working fine if i comment out the following lines
<property
name="transaction.manager_lookup_class">org.hibernate.transaction.OC4JTransactionManagerLookup</property>
<property
name="transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
but by doing this i will loose transaction management .e.e i have manage my
session.flush();session.commit(),close()..etc
which i can't offered to ..
please suggest me what to do??
Regards,
Purandhar
Could not locate TransactionManager in OAS middle Tier
------------------------------------------------------
Key: HHH-3175
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3175
Project: Hibernate3
Issue Type: Bug
Components: core
Affects Versions: 3.2.6
Environment: Oracle Application Server 10.1.2 middle tier with portal and
infrastructure services
Reporter: purandhar P
my hibernate.cfg.xml files is like this
<property
name="connection.datasource">jdbc/RMDBConnectionPooledDS</property>
<property
name="transaction.manager_lookup_class">org.hibernate.transaction.OC4JTransactionManagerLookup</property>
<property
name="transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
<property
name="FlushBeforeCompletionEnabled">true</property>
<property name="AutoCloseSessionEnabled">true</property>
<property
name="jndi.url">opmn:ormi://localhost:80/RM_Application</property>
<property
name="jndi.class">com.evermind.server.rmi.RMIInitialContextFactory</property>
<property
name="jndi.security.principal">jazn.com/admin</property>
<property name="jndi.security.credentials">password1</property>
<property name="dedicated.rmicontext">true</property>
<property name="dedicated.connection">true</property>
<property
name="jta.UserTransaction">java:comp/UserTransaction</property>
<property
name="current_session_context_class">jta</property>
<property name="jdbc.batch_size">200</property>
<property name="autocommit">false</property>
<property name="autoRollback">true</property>
org.hibernate.HibernateException: Could not locate TransactionManager
at
org.hibernate.transaction.JNDITransactionManagerLookup.getTransactionManager(JNDITransactionManagerLookup.java:26)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:325)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1300)
at com.osg.rmp.dao.util.HibernateFactory.configureSessionFactory(Unknown Source)
at com.osg.rmp.dao.util.HibernateFactory.buildIfNeeded(Unknown Source)
at com.osg.rmp.dao.util.HibernateFactory.openSession(Unknown Source)
at com.osg.rmp.dao.MasterDataDAO.getImpactUnitsList(Unknown Source)
at com.osg.rmp.ajax.util.RMData.<clinit>(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:219)
at
com.osg.rmp.ajax.servlet.RMContextListener.contextInitialized(RMContextListener.java:43)
at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1009)
at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:549)
at com.evermind.server.Application.getHttpApplication(Application.java:890)
at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:707)
at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:625)
at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:278)
at com.evermind.server.http.HttpServer.setSites(HttpServer.java:278)
at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:179)
at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2394)
at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1551)
at
com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:92)
at java.lang.Thread.run(Thread.java:534)
Caused by: javax.naming.NameNotFoundException: No object bound for
java:comp/pm/TransactionManager
at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:116)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at
org.hibernate.transaction.JNDITransactionManagerLookup.getTransactionManager(JNDITransactionManagerLookup.java:23)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira