[jboss-user] [JBoss Cache: Core Edition] - JBossCache newbie - in 4.2.1GA
DeanoUK
do-not-reply at jboss.com
Thu Mar 20 10:49:22 EDT 2008
Hi all.
This is my first stab at getting the caching working out of the box with JBoss 4.2.1.
I've added this to my persistance.xml :
| <!-- Uses JBoss Cache as entity cache. -->
| <property name="hibernate.cache.provider_class" value="org.jboss.ejb3.entity.TreeCacheProviderHook"/>
| <property name="hibernate.treecache.mbean.object_name" value="jboss.cache:service=EJB3EntityTreeCache"/>
| <!-- Enabled query cache. -->
| <property name="hibernate.cache.use_query_cache" value="true"/>
And then see this on startup:
| javax.persistence.PersistenceException: org.hibernate.cache.CacheException: java
| .lang.RuntimeException: Error creating MBeanProxy: jboss.cache:service=EJB3Entit
| yTreeCache
| at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Con
| figuration.java:737)
| at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFa
| ctory(HibernatePersistence.java:127)
| at org.jboss.ejb3.entity.Persisten
|
etc
| Caused by: java.lang.RuntimeException: Error creating MBeanProxy: jboss.cache:se
| rvice=EJB3EntityTreeCache
| at org.jboss.mx.util.MBeanProxyExt.init(MBeanProxyExt.java:415)
| at org.jboss.mx.util.MBeanProxyExt.<init>(MBeanProxyExt.java:99)
| at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:394)
| at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:349)
| at org.jboss.ejb3.entity.TreeCacheProviderHook.start(TreeCacheProviderHo
| ok.java:128)
| ... 149 more
| Caused by: javax.management.InstanceNotFoundException: jboss.cache:service=EJB3E
| ntityTreeCache is not registered.
| at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistr
| y.java:523)
| at org.jboss.mx.server.MBeanServerImpl.getMBeanInfo(MBeanServerImpl.java
| :666)
| at org.jboss.mx.util.MBeanProxyExt.init(MBeanProxyExt.java:407)
| ... 153 more
|
Have I missed something? Is there a vetry basic tutorial to get me up and running?
Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138069#4138069
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4138069
More information about the jboss-user
mailing list