File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes Configure Hibernate in JBOSS 4.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Configure Hibernate in JBOSS 4.0" Watch "Configure Hibernate in JBOSS 4.0" New topic
Author

Configure Hibernate in JBOSS 4.0

Shanika Weerapperuma
Greenhorn

Joined: Jun 28, 2004
Posts: 26
Can someone please help me to configure Hibernate in JBOSS. I use JBOSS V4.0.0 with Hibernate 2.1.6. Not sure if the way i have configured is correct!

I copied the relavent hibernate jars to the default/lib folder of JBOSS. Created a .har and deployed as an exploded folder. My .har has the following structure :

jboss.har-
|META-INF
| hibernate-service.xml
|com
|src
| MyTest1.java
| MyTest2.java
| MyTest1.hbm.xml
| MyTest2.hbm.xml

My hibernate-service.xml looks like :




I get a deployment error when deplying the jboss.har :
org.jboss.deployment.DeploymentException: No Attribute found with name: MapResources
Shanika Weerapperuma
Greenhorn

Joined: Jun 28, 2004
Posts: 26
I figured this out. That tag is not required. The hbm.xml files available anywhere in the .har file is mapped automatically. Removing that statement solved the issue.
 
wood burning stoves
 
subject: Configure Hibernate in JBOSS 4.0
 
Similar Threads
Configure Hibernate in JBOSS 4.0
connection pooling Jboss 3.0
Problem in putting a dataSource for the Oracle 9i database on JBoss for entity beans
No 'jboss' MBeanServer found !
HibernateService with multiple datasources