Beginner |
|
Joined: Tue Aug 30, 2005 9:40 am Posts: 29
|
Hi ,
When we are trying to deploy the Hibernate application into JBOSS AS, we are getting the following errror.
Can you please suggest what is wrong ?
--------------------------------------------------------------------------------------
Problem configuring service jboss.har:service=Hibernate
org.jboss.deployment.DeploymentException: Exception setting attribute javax.management.Attribute: name=DeployedTreeCacheObjectName value=jboss.har:service=HarSecondLevelCache on mbean jboss.har:service=Hibernate; - nested throwable: (javax.management.AttributeNotFoundException: not found: DeployedTreeCacheObjectName)
at org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator.java:573)
at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:323)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:164)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:118)
at org.jboss.system.ServiceController.install(ServiceController.java:200)
at sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source)
----------------------------------------------------------------------------------------------
MBEAN configuration is
--------------------------------------------------------------------------------------------------
<?xml version="1.0"?>
<server>
<mbean code="org.hibernate.jmx.HibernateService"
name="jboss.har:service=Hibernate">
<depends>jboss:service=Naming</depends>
<depends>jboss:service=TransactionManager</depends>
<depends optional-attribute-name="DeployedTreeCacheObjectName">jboss.har:service=HarSecondLevelCache</depends>
<!-- our other mbean attributes -->
<attribute name="CacheProviderClass">org.jboss.hibernate.cache.DeployedTreeCacheProvider</attribute>
<!-- Bind the Hibernate service to JNDI -->
<attribute name="SessionFactoryName">java:/hibernate/SessionFactory</attribute>
<!-- Datasource settings -->
<attribute name="Datasource">java:/DefaultDS</attribute>
<attribute name="Dialect">org.hibernate.dialect.HSQLDialect</attribute>
<!-- Transaction integration -->
<attribute name="TransactionStrategy">
org.hibernate.transaction.JTATransactionFactory</attribute>
<attribute name="TransactionManagerLookupStrategy">
org.hibernate.transaction.JBossTransactionManagerLookup</attribute>
<attribute name="FlushBeforeCompletionEnabled">true</attribute>
<attribute name="AutoCloseSessionEnabled">true</attribute>
<!-- Fetching options -->
<attribute name="MaximumFetchDepth">5</attribute>
<!-- Second-level caching -->
<attribute name="SecondLevelCacheEnabled">true</attribute>
<attribute name="CacheProviderClass">org.hibernate.cache.EhCacheProvider</attribute>
<attribute name="QueryCacheEnabled">true</attribute>
<!-- Logging -->
<attribute name="ShowSqlEnabled">true</attribute>
<!-- Mapping files -->
<attribute name="MapResources">Person.hbm.xml</attribute>
</mbean>
</server>
|
|