I have set up my ant builds as docmented in help doc 66.html. I am trying to set up Hibernate as a MBean service on JBoss 3.2.2 RC4.
I have 1 JAR and 1 SAR, a JAR with one persistent class and the SAR with the hibernate xml files, the hibernate.properties file and jboss-service.xml for the MBean.
If I deplpy the SAR after my JAR, I get this print out:
19:54:35,055 INFO [Configuration] Mapping resource: com/forisent/framework/itemOrganizer/store/entity/ElementToGroupDTO
.hbm.xml
19:54:35,205 INFO [Binder] Mapping class: com.forisent.framework.itemOrganizer.store.entity.ElementToGroupDTO -> Relati
noship
19:54:35,396 INFO [Configuration] processing one-to-many association mappings
19:54:35,396 INFO [Configuration] processing one-to-one association property references
19:54:35,396 INFO [Configuration] processing foreign key constraints
19:54:35,446 INFO [Dialect] Using dialect: net.sf.hibernate.dialect.MySQLDialect
19:54:35,446 INFO [SettingsFactory] Use outer join fetching: true
19:54:35,456 INFO [NamingHelper] JNDI InitialContext properties:{}
19:54:35,456 INFO [DatasourceConnectionProvider] Using datasource: java:/itemOrganizer
19:54:35,466 INFO [TransactionFactoryFactory] Transaction strategy: net.sf.hibernate.transaction.JTATransactionFactory
19:54:35,466 INFO [NamingHelper] JNDI InitialContext properties:{}
19:54:35,476 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: net.sf.hibernate.transactio
n.JBossTransactionManagerLookup
19:54:35,476 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
19:54:35,476 INFO [NamingHelper] JNDI InitialContext properties:{}
19:54:35,476 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: net.sf.hibernate.transactio
n.JBossTransactionManagerLookup
19:54:35,476 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
19:54:35,796 INFO [SettingsFactory] Use scrollable result sets: true
19:54:35,796 INFO [SettingsFactory] JDBC 2 max batch size: 15
19:54:35,796 INFO [SettingsFactory] Query language substitutions: {}
19:54:35,796 INFO [SettingsFactory] cache provider: net.sf.ehcache.hibernate.Provider
19:54:35,816 INFO [Configuration] instantiating and configuring caches
19:54:35,996 INFO [SessionFactoryImpl] building session factory
19:54:36,157 INFO [HibernateServiceMBean] Could not build SessionFactory using the MBean classpath - will try again using client classpath: could not instantiate id generator
19:54:36,157 INFO [SessionFactoryObjectFactory] Factory name: java:/HibernateFactory
19:54:36,157 INFO [NamingHelper] JNDI InitialContext properties:{}
19:54:36,157 INFO [SessionFactoryObjectFactory] Bound factory to JNDI name: java:/HibernateFactory
19:54:36,157 WARN [SessionFactoryObjectFactory] InitialContext did not implement EventContext
19:54:36,167 INFO [MainDeployer] Deployed package: file:/C:/JBoss/server/default/deploy/Hibernate.sar
Code:
With the errors stating: Could not build SessionFactory using the MBean classpath - will try again using client classpath: could not instantiate id generator
I have placed all the required hibernate JARs in my deploy/default.lib directory.
What is going wrong here? Thanks.