-->
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.  [ 2 posts ] 
Author Message
 Post subject: HAR deployer doesn't find the mapping file ???
PostPosted: Wed Mar 16, 2005 6:13 am 
Newbie

Joined: Wed Mar 16, 2005 5:26 am
Posts: 2
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 17, 2005 3:11 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
Sure. You are using the wrong MBean. Use org.jboss.hibernate.jmx.Hibernate


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

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.