-->
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: [Xdoclet] My hibernate doclet generates empty MapResources
PostPosted: Mon Jul 19, 2004 9:45 pm 
Beginner
Beginner

Joined: Wed Mar 03, 2004 6:02 am
Posts: 46
Location: Kuala Lumpur, Malaysia
Greetings,

I'm using the Hibernate MBean in JBoss3.2.3 (Hibernate 2.1.4). I'm trying to generate the jboss-service.xml file but somehow the factory is not being binded to the JNDI tree. There are no errors. Here is an extract of my jboss-service.xml that's generated:

Code:
<server>
   <mbean code="net.sf.hibernate.jmx.HibernateService" name="jboss.jca:service=HelloWorldHibernateFactory">
       <depends>jboss.jca:service=RARDeployer</depends>
       <depends>jboss.jca:service=LocalTxCM,name=HelloWorldDS</depends>
       <attribute name="MapResources"></attribute>
       <attribute name="JndiName">java:/HelloWorldHibernateFactory</attribute>
       ..... snip .....
</server>


You'll notice that my mapping files are not being named inside the MapResources attribute. What's to note:

a) The generate hibernate.sar has got the hbm.xml files and jboss-service.xml in it.
b) I am using a hbm2java methodology. I generate the Java class files before calling the hibernatedoclet task.

The wiki page http://www.hibernate.org/72.html says that I only need to have a fileset under the hibernatedoclet task pointing to my generated java files. I followed that instruction and it's not working out for me.

A more primary question for me is: if the MapResources attribute is empty, will it cause the binding to the JNDI tree to fail ?

Thank you in advance for any pointers.

Alistair[/url]


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 17, 2005 11:42 am 
Beginner
Beginner

Joined: Mon Feb 09, 2004 3:06 pm
Posts: 26
Location: Tampa, FL
I am encountering the same problem (empty MapResources) and am also using the Hbm2Java methodology. Any ideas why the *.hbm.xml file aren't being picked up?

_________________
Bill Pfeiffer


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.