I tried it with the new build with my domain classes on the classpath...and
it still couldn't find the mapping file!  So I messed around a bit and found
the problem.  I had it mapped as follows:

<attribute name="MapResources">
/com/vetconnect/client/dao/Client.hbm.xml,/com/vetconnect/client/dao/ClientP
hone.hbm.xml
</attribute>

When it should have been:

<attribute name="MapResources">
com/vetconnect/client/dao/Client.hbm.xml,com/vetconnect/client/dao/ClientPho
ne.hbm.xml
</attribute>

I removed the first "/" in front of the resource and it worked.  I took a
closer look at the documentation and sure enough I see the hibernate.cfg.xml
file defines file mappings without the first "/".

Then I tried an experiment.  I reverted back to your previous version with
the SessionFactory stub using the new MapResources property, took the
classes and mappings out of the server classpath and put them back in the
EJB jar.  It worked!  (That'll teach me not to study the documentation more
closely)

So take your pick on a version.  It works both ways.

Regards,
John

-----Original Message-----
From: Gavin_King/[EMAIL PROTECTED]
[mailto:Gavin_King/[EMAIL PROTECTED]
Sent: Saturday, August 10, 2002 9:56 PM
To: [EMAIL PROTECTED]
Subject: [Hibernate-devel] Finishing off the JMX stuff...



So I think we established that we are going to have to load mappings from
the MBean classpath. So I've removed the SessionFactoryStub and added a bit
of extra functionality to the MBean.

Would people, especially John, try this latest version out in JBoss and
let me know how it functions. If all goes well, we can officially release
and document this for 1.1 beta 4.

(Unfortunately I think the features list on the website erroneously
mentions
JMX support already....woops.)



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
_______________________________________________
Hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to