Hi,
I'm new in using Hibernate and build an HAR-Archive with the following structure:
firsthibernate.har:
Code:
META-INF
. hibernate-service.xml
. MANIFEST.MF
de
fn
first
common
hibernate
. *.class (NO! "Hibernate Classes)
valueobject
hibernate
. *.hbm.xml (71 files)
. *.class (71 classes corresponding to the *.hbm.xml)
Hibernate version: 2.1.8 Mapping document (hibernate-service.xml in the HAR-File):Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE server>
<server>
<mbean code="net.sf.hibernate.jmx.HibernateService" name="jboss.jca:service=Hibernate">
<depends>jboss.har:service=HARDeployer</depends>
<depends>jboss.jca:service=LocalTxCM,name=SapdbDS</depends>
<attribute name="JndiName">java:/HibernateFactory</attribute>
<attribute name="Datasource">java:/SapdbDS</attribute>
<attribute name="Dialect">net.sf.hibernate.dialect.SAPDBDialect</attribute>
<attribute name="ShowSql">true</attribute>
<attribute name="UserTransactionName">UserTransaction</attribute>
<attribute name="TransactionStrategy">net.sf.hibernate.transaction.JTATransactionFactory</attribute>
<attribute name="TransactionManagerLookupStrategy">net.sf.hibernate.transaction.JBossTransactionManagerLookup</attribute>
</mbean>
</server>
Now when I put the HAR archive in the Deploy directory of my JBoss (Version 4.0.1) he doesn't search the mapping files automatically.
When I define explicite the Attribute
mapping with the mapping files, all works fine...
Could anybody give me a hint where my mistake is?
Thanks,
Harald Diehl