Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] How to create EclipseLink Sessions, ORM.xml files in J2SE environment

Hi Tim
What you said was pretty much true until yesterday. I had got confused between pure JPA solution and EclipseLink specific implementation.
 
But now, I have got the pure JPA solution working. Thanks to you for helping me finish that part.
 
Then I started trying to accomplish the same thing using EclipseLink only API by using sessions.xml and stuff.
 
I am trying to understand how to get the second one (EclipseLink specific one) working. Thats where I got this exception:
 
Exception Description: Missing descriptor for [class com.xx.TestEtl].
Verify that the descriptor has been properly registered with the Session.


f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng

--- On Tue, 1/20/09, Tim Hollosy <hollosyt@xxxxxxxxx> wrote:
From: Tim Hollosy <hollosyt@xxxxxxxxx>
Subject: Re: [eclipselink-users] How to create EclipseLink Sessions, ORM.xml files in J2SE environment
To: "EclipseLink User Discussions" <eclipselink-users@xxxxxxxxxxx>
Date: Tuesday, January 20, 2009, 9:27 AM

Also be aware, the example on my blog uses a pure JPA approach
(mostly) the only native class I use is UnitOfWork. I think Kris is
kind of confused between the two. But just bare in mind, if you're
following my example/my code make sure you realize you're working in a
Pure JPA environment.

./tch



On Tue, Jan 20, 2009 at 9:06 AM, Tom Ware <tom.ware@xxxxxxxxxx> wrote:
> Hi Kris,
>
>  This error generally occurs because for some reason the metadata for your
> TestEtl class is not available to EclipseLink and you are treating it as
> persistent.
>
>  Depending on how you are configured, the metadata can come from different
> places.
>
>  If you are using a pure JPA solution, it will be derived from
Annotations,
> orm.xml and your persistence.xml file.
>
>  If you are using the EclipseLink-proprietary APIs, it will be derived
from
> your sessions.xml and from either your project class or your deployment
> xml(generated with the EclipseLink Mapping Workbench)
>
>  Perhaps you can explain a little more about which of these files you are
> using and what you are doing when you see the error.
>
> -Tom
>
> krisUSA123 wrote:
>>
>> Based on EclipseTeam's suggestions, I was able to create
sessions.xml file
>> and was trying to create a CRUD operation.
>> May I know what this error means:
>>
>> Exception Description: Missing descriptor for [class com.xx.TestEtl].
>> Verify that the descriptor has been properly registered with the
Session.
>>
>> How do I fix it?
>>
>> Appreciate your help.
>> Thanks guys for being responsive to my earlier post.
>>
>> Thanks
>> Kris
>
> _______________________________________________
> eclipselink-users mailing list
> eclipselink-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/eclipselink-users
>
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users


Back to the top