geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter <peter.em...@dak.de>
Subject Geronimo 1.1 with Hibernate 3.1
Date Wed, 08 Nov 2006 11:23:44 GMT
A suggested solution for Geronimo 1.0 is available at 
http://cwiki.apache.org/confluence/display/GMOxDOC10/JBoss+to+Geronimo+-
+Hibernate+Migration. Unfortunately this does not work for Geronimo 1.1.

What I have tried is:
public class GeronimoTransactionManagerLookup
    implements TransactionManagerLookup
{
   public static final String TransactionMgrGBeanName=
	   		"geronimo.server:J2EEApplication=null," +
   			"J2EEModule=geronimo/j2ee-server/1.1.1/car," +
   			"J2EEServer=geronimo,j2eeType=TransactionManager," +
   			"name=TransactionManager";
   ...

but I still get

DEBUG [SessionFactoryObjectFactory] initializing class 
SessionFactoryObjectFactory
DEBUG [SessionFactoryObjectFactory] registered: 
8b81890a0ec727bb010ec727c8de0000 (unnamed)
INFO  [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name 
configured
DEBUG [SessionFactoryImpl] instantiated session factory
DEBUG [SessionFactoryImpl] obtaining JTA TransactionManager
ERROR [PersistenceManager] Geronimo Transaction Manager Lookup Failed
org.hibernate.HibernateException: Geronimo Transaction Manager Lookup Failed
	at 
org.hibernate.transaction.GeronimoTransactionManagerLookup.getTransactionManage
r(GeronimoTransactionManagerLookup.java:29)
	at org.hibernate.impl.SessionFactoryImpl.<init>
(SessionFactoryImpl.java:301)
	at org.hibernate.cfg.Configuration.buildSessionFactory
(Configuration.java:1154)

How should this GBeanName be set? Or do I need to change something else?


Mime
View raw message