[jboss-user] [JBoss Cache: Core Edition] - Re: basic question on starting a jboss cache
radomehta
do-not-reply at jboss.com
Fri Mar 28 05:05:04 EDT 2008
Thanks a lot bstansberry. Your post was very useful for me.
According to what u said , I have now configured my hibernate as:
<!-- JBoss Cache configuration file name -->
But when I run my application, I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/cache/TransactionManagerLookup
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
at java.lang.Class.getConstructor0(Class.java:2671)
at java.lang.Class.newInstance0(Class.java:321)
at java.lang.Class.newInstance(Class.java:303)
at org.hibernate.cfg.SettingsFactory.createCacheProvider(SettingsFactory.java:375)
.....................
So in my configuration file I added another configuration:
Now I get the error:
Exception in thread "main" javax.persistence.PersistenceException: org.hibernate.HibernateException: Could not instantiate TransactionManagerLookup 'org.jboss.cache.transaction.GenericTransactionManagerLookup'
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:720)
at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:121)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:51)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:33)
at TestPersistence.main(TestPersistence.java:18)
Caused by: org.hibernate.HibernateException: Could not instantiate TransactionManagerLookup 'org.jboss.cache.transaction.GenericTransactionManagerLookup'
at org.hibernate.transaction.TransactionManagerLookupFactory.getTransactionManagerLookup(TransactionManagerLookupFactory.java:47)
at org.hibernate.cfg.SettingsFactory.createTransactionManagerLookup(SettingsFactory.java:422)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:140)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2073)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1298)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:713)
... 4 more
What could be the problem?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139578#4139578
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139578
More information about the jboss-user
mailing list