On 26 Feb 2004 17:17, tmaus wrote:
>On 26 Feb 2004 15:22, tmaus wrote:
>>Im using the same example as above ..
>>but as long as i keep my hbm.xml files in a structure like
>>com/foo/bar/aa.hbm.xml
>>the file is not find by the HibernateServiceMBean.
>>once i put it into the root directory it is found and bound
>>any ideas about that ???
>it looks like this only occurs if the .hbm.xml files are in a packed
jar ..
>the moment i deploy the application exploded ... things work ...
>here is my structure
>foo.sar
>| -- META-INF
>| | -- jboss-service.xml
>|
>| - hibernate-2.1
>| - myHibernateClassesAndMappingFiles
>|
>| - other things
How are you specifying the mappings in the jboss-service.xml? From your
example, you should have something like:
<attribute name="MapResources">com/foo/bar/aa.hbm.xml</attribute>
In the SAR, the structure would be:
foo.sar
| -- META-INF
| | -- jboss-service.xml
|
| -- com
| | -- foo
| | -- bar
| | -- aa.hbm.xml
Sherman |