-->
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.  [ 1 post ] 
Author Message
 Post subject: Hibernate 3.6.9 + JBoss 7.1.0
PostPosted: Tue May 29, 2012 6:53 am 
Newbie

Joined: Tue May 29, 2012 6:48 am
Posts: 1
I'm using a SAR inside an EAR in my webapp. The SAR's jboss-service.xml looks like this :


<mbean code=HibernateService" name="jboss.jca:service=HibernateFactory,name=HibernateFactory">

<!-- Make it deploy ONLY after DataSource had been started -->

<attribute name="MapResources">
conf/base/Category.hbm.xml,
</attribute>
<attribute name="JndiName">java:jboss/HibernateFactory</attribute>
<attribute name="Datasource">java:jboss/datasources/DS</attribute>
<attribute name="Dialect">org.hibernate.dialect.SAPDBDialect</attribute>

<attribute name="ShowSqlEnabled">false</attribute>
<attribute name="UserTransactionName">java:jboss/UserTransaction</attribute>
<attribute name="JdbcBatchSize">0</attribute>

<!-- Transaction integration -->
<attribute name="TransactionStrategy">org.hibernate.transaction.CMTTransactionFactory</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>


</mbean>

At JBoss startup I get :

Could not build SessionFactory using the MBean classpath - will try again using client classpath: resource: e.hbm.xml not found

My hbm.xml files are in the same SAR ( /conf/*.hbm.xml).

Any help ?

Thanks.


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

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.