Thread:
 Using hibernate with jboss 
 marcelitamo   18 Jun 2004, 00:47 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: marcelitamo (18 Jun 2004, 00:47) Replies: 0, Views: 37891
Subject: Using hibernate with jboss
I have my file hibernate.sar with the following structure:

META-INF/jboss-service.xml
mappings/Usuario.hbm.xml
co/edu/escuelaing/Usuario.class

Jboss-service.xml is:

<server> 
<mbean code="net.sf.hibernate.jmx.HibernateService" 
name="jboss.jca:service=HibernateFactory, 
name=HibernateFactory"> 
<depends>jboss.jca:service=RARDeployer</depends> 
<depends>jboss.jca:service=LocalTxCM,name=SigmaDS</depends> 
<!-- Make it deploy ONLY after DataSource had been started --> 
<attribute name="MapResources">/mappings/Usuario.hbm.xml</attribute> 
<attribute 
name="JndiName">java:/hibernate/HibernateFactory</attribute> 
<attribute name="Datasource">java:/SigmaDS</attribute> 
<attribute 
name="Dialect">net.sf.hibernate.dialect.PostgreSQLDialect</attribute> 
<attribute 
name="TransactionStrategy">net.sf.hibernate.transaction.JTATransactionF
actory</attribute> 
<attribute 
name="TransactionManagerLookupStrategy">net.sf.hibernate.transaction.JB
ossTransactionManagerLookup</attribute> 
<attribute name="UseOuterJoin">false</attribute> 
<attribute name="ShowSql">false</attribute> 
<attribute name="UserTransactionName">UserTransaction</attribute> 
</mbean> 
</server>

but when I run Jboss server, appears to me this: 

17:43:13,576 INFO [Configuration] Mapping resource: 
mappings/Usuario.hbm.xml 
17:43:13,597INFO [HibernateServiceMBean] Could not build 
SessionFactory using 
the MBean classpath - will try again using client classpath: Resource: 
mappings/Usuario.hbm.xml not found 

I do not know, why?
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]