-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Problem configuring service jboss.har:service=Hibernate
PostPosted: Thu Dec 22, 2005 9:18 am 
Beginner
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>


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 22, 2005 1:26 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
Well, sounds like the version of the Hibernate integration you are using does not have the DeployedTreeCacheObjectName attribute on org.hibernate.jmx.HibernateService


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.