Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » MappingException when initializing the hbDataStore
MappingException when initializing the hbDataStore [message #427300] Wed, 11 February 2009 14:42 Go to next message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
Hello,

I had a perfectly working Teneo/Hibernate environment which now
generates a MappingException when initializing.


Here is the message in the exception:


"Could not determine type for:
org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rUserType,
at table: status, for
columns:[org.hibernate.mapping.Column(econtainer_class),
org.hibernate.mapping.Column(e_container)]"


it fails in when calling "buildSessionFactory()"

What could be the root of this problem?, my code didn't change,
but the following happened:

- I messed around with plugin dependencies, not sure all is "seen"
nowadays. Should I do some buddy policies? (My Hibernate jars and
needed auxiliary jars are in a separate plugin.

- The model could have changed, causing the problem? (I write "could" as
I likely did't change it, but who knows...).

Thanks for the help!

rgds Christophe
Re: MappingException when initializing the hbDataStore [message #427301 is a reply to message #427300] Wed, 11 February 2009 14:50 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Christophe,
Yes this is probably related to a classpath issue, hibernate throws this exception if it can't find the a class which
implements a type (in this case EContainerUserType). So I would check there.
The plugin containing the hibernate jars should have the eclipse buddypolicy set to dependent.

gr. Martin

Christophe Bouhier wrote:
> Hello,
>
> I had a perfectly working Teneo/Hibernate environment which now
> generates a MappingException when initializing.
>
>
> Here is the message in the exception:
>
>
> "Could not determine type for:
> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rUserType,
> at table: status, for
> columns:[org.hibernate.mapping.Column(econtainer_class),
> org.hibernate.mapping.Column(e_container)]"
>
>
> it fails in when calling "buildSessionFactory()"
>
> What could be the root of this problem?, my code didn't change,
> but the following happened:
>
> - I messed around with plugin dependencies, not sure all is "seen"
> nowadays. Should I do some buddy policies? (My Hibernate jars and
> needed auxiliary jars are in a separate plugin.
>
> - The model could have changed, causing the problem? (I write "could" as
> I likely did't change it, but who knows...).
>
> Thanks for the help!
>
> rgds Christophe


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: MappingException when initializing the hbDataStore [message #427332 is a reply to message #427301] Thu, 12 February 2009 13:03 Go to previous message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
Thank you, problem solved.
Previous Topic:Attribute derived from resource uri
Next Topic:[CDO] Passive Updates ?
Goto Forum:
  


Current Time: Wed Sep 25 00:24:36 GMT 2024

Powered by FUDForum. Page generated in 0.04033 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top