-->
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.  [ 3 posts ] 
Author Message
 Post subject: Newbie to Hibernate 2 and JBoss 3.2.7
PostPosted: Fri May 20, 2005 2:59 am 
Newbie

Joined: Fri Dec 05, 2003 8:45 am
Posts: 12
Hibernate version: 2.1.6

Hi guys. Could anybody give me a step by step guide how and what do I have to do in order to use hibernate that is bundled with JBoss? I'm using JBoss 3.2.7 and don't have any clue on where to start. I've read the wiki but there is no step by step guide on writing the code. Thanks for the help :)


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 20, 2005 12:50 pm 
Newbie

Joined: Fri Dec 05, 2003 8:45 am
Posts: 12
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?


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 20, 2005 10:25 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
I seriously doubt you read the wiki:

http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossHibernate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.