Hi,
I am getting problem with user transaction at the time server start. This problem is coming at the time hibernate session close. Details given below:-
Hibernate version: 3.2.0.cr3
Websphere version: 6.0.2
Mapping documents:
My Hibernate.cfg.xml looks as following:-
My SessionFactory configuration file looks as follows:
<session-factory>
<property name="hibernate.dialect">org.hibernate.dialect.OracleDialect</property>
<property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
<property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.WebSphereExtendedJTATransactionLookup</property>
</session-factory>
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
[12/12/06 10:38:43:191 GMT] 0000003f Helpers W NMSV0610I: A NamingException is being thrown from a javax.naming.Context implementation. Details follow:
Context implementation: com.ibm.ws.naming.jndicos.CNContextImpl
Context method: lookupExt
Context name: HCLDSGMTP057Node01Cell/nodes/HCLDSGMTP057Node01/servers/server1
Target name: java:comp/UserTransaction
Other data: ""
Exception stack trace: javax.naming.ConfigurationException: NamingManager.getURLContext cannot find the factory for this scheme: java
at com.ibm.ws.naming.jndicos.CNContextImpl.checkForUrlContext(CNContextImpl.java:3114)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1407)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1290)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:144)
at javax.naming.InitialContext.lookup(InitialContext.java:361)
at org.hibernate.transaction.JTATransactionFactory.isTransactionInProgress(JTATransactionFactory.java:83)
at org.hibernate.jdbc.JDBCContext.isTransactionInProgress(JDBCContext.java:187)
at org.hibernate.jdbc.JDBCContext.registerSynchronizationIfPossible(JDBCContext.java:159)
at org.hibernate.impl.SessionImpl.checkTransactionSynchStatus(SessionImpl.java:1861)
at org.hibernate.impl.SessionImpl.isOpen(SessionImpl.java:320)
at com.dixons.persistence.framework.server.HibernateSession.close(HibernateSession.java:158)
at com.dixons.persistence.framework.server.HibernateSession.finalize(HibernateSession.java:185)
at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
at java.lang.ref.Finalizer.runFinalizer(Finalizer.java(Compiled Code))
at java.lang.ref.Finalizer.access$100(Finalizer.java(Inlined Compiled Code))
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java(Compiled Code))
Name and version of the database you are using:
Oracle 10
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
Any help would be greatly appreciated, thanks in advance.
Regards
Amit Goel
|