I get this message when deploying my Foo.har
Code:
MBeans waiting for other MBeans:
ObjectName: Foo.har:service=Hibernate
state: FAILED
I Depend On:
Depends On Me: org.jboss.deployment.DeploymentException: No Attribute found with name: MapResources
MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
ObjectName: Foo.har:service=Hibernate
state: FAILED
I Depend On:
Depends On Me: org.jboss.deployment.DeploymentException: No Attribute found with name: MapResources
Here is my hibernate-service.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE server>
<server>
<mbean code="org.jboss.hibernate.jmx.Hibernate" name="Foo.har:service=Hibernate">
<attribute name="MapResources">mappings/Foo.hbm.xml</attribute>
<attribute name="JndiName">java:/hibernate/HibernateFactory</attribute>
<attribute name="DatasourceName">java:/MySQLDS</attribute>
<attribute name="SessionFactoryName">java:/hibernate/SessionFactory</attribute>
<attribute name="Dialect">net.sf.hibernate.dialect.MySQLDialect</attribute>
<attribute name="CacheProviderClass">net.sf.ehcache.hibernate.Provider</attribute>
<attribute name="QueryCacheEnabled">true</attribute>
<attribute name="ShowSqlEnabled">true</attribute>
<attribute name="MaxFetchDepth">1</attribute>
</mbean>
</server>
Can anybody give me a clue what is wrong with it?