I got it all working with Apache Derby as the database server, without a hitch (so far).
First one needs to replace (in default/lib) the jboss-hibernate.jar that comes with JBoss4RC2 with the one from this wiki http://www.jboss.org/wiki/Wiki.jsp?page=JBossHibernate Rename jboss-hibernate-NEW.jar as jboss-hibernate.jar. Also configure the MBean as mentioned in the wiki: My MBean is configured as: | <mbean code="org.jboss.hibernate.jmx.Hibernate" name="jboss.har:service=Hibernate"> | <attribute name="DatasourceName">java:/DefaultDS</attribute> | <attribute name="SessionFactoryName">java:/hibernate/SessionFactory</attribute> | <attribute name="Dialect">net.sf.hibernate.dialect.DerbyDialect</attribute> | <attribute name="CacheProviderClass">net.sf.hibernate.cache.HashtableCacheProvider</attribute> | </mbean> | If you are going to use the Apache Derby DB then there is no dialect support for this at the moment but the requried files can be got from here http://opensource.atlassian.com/projects/hibernate/browse/HB-1224 compiled and incorprated into the hibernate2.jar file in default/lib Finally my jboss-app.xml file is as follows: | <!DOCTYPE jboss-app PUBLIC "-//JBoss//DTD J2EE Application 1.4//EN" | "http://www.jboss.org/j2ee/dtd/jboss-app_4_0.dtd"> | <jboss-app> | <module> | <har>rlhibernate.har</har> | </module> | <module> | <ejb>rlhibernate.jar</ejb> | </module> | </jboss-app> | The only thing I noticed is that this job-app.xml seems to go in as meta-inf/application.xml since my ear is created using an Ant script. Doesn't seem to affect the deployment of the ear though. Hope this helps. Cheers -raj View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3858526#3858526 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3858526 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user