Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dali » Mapping file "META-INF/orm.xml" does not have ORM content
Mapping file "META-INF/orm.xml" does not have ORM content [message #517094] Fri, 26 February 2010 09:09 Go to next message
Ari Meyer is currently offline Ari MeyerFriend
Messages: 136
Registered: July 2009
Senior Member
Hi,

I am using orm.xml just for named query definitions, at least for the
moment. Everything works fine with Eclipselink JPA 2.0 at runtime, but
Dali always gives me this validation error:

Mapping file "META-INF/orm.xml" does not have ORM content

I can see why it's doing this, as I indeed have no ORM content, but
technically, it's still a valid orm.xml file and works correctly at
runtime. Is this considered a bug in Dali?

Thanks,
Ari
Re: Mapping file "META-INF/orm.xml" does not have ORM content [message #517233 is a reply to message #517094] Fri, 26 February 2010 16:15 Go to previous messageGo to next message
Paul Fullbright is currently offline Paul FullbrightFriend
Messages: 201
Registered: July 2009
Senior Member
No, that file should be perfectly legal. The complaint is regarding whether or not Dali recognizes that file as being a legal orm.xml file.

Assuming you're using Dali 2.2 (and not a milestone), the problem may be that you're using a JPA 2.0 version of the orm.xml, which is not yet supported. If all you're doing is defining queries, a 1.0 version of the orm.xml should work just fine. Try that.

Otherwise, there could be a problem with Dali recognizing the file type, which should be solved with a project clean.

A third option is to try a milestone of Dali 2.3, which supports JPA 2.0 and EclipseLink 2.0 and also has solved some of these file content recognition issues. Being a milestone, it will have its stability problems compared to a release, but this might be tolerable in your situation.

- Paul
Re: Mapping file "META-INF/orm.xml" does not have ORM content [message #517367 is a reply to message #517233] Sat, 27 February 2010 04:32 Go to previous messageGo to next message
Ari Meyer is currently offline Ari MeyerFriend
Messages: 136
Registered: July 2009
Senior Member
Thanks, Paul.

Paul Fullbright wrote:
> No, that file should be perfectly legal. The complaint is regarding
> whether or not Dali recognizes that file as being a legal orm.xml file.
>
> Assuming you're using Dali 2.2 (and not a milestone), the problem may be
> that you're using a JPA 2.0 version of the orm.xml, which is not yet
> supported. If all you're doing is defining queries, a 1.0 version of
> the orm.xml should work just fine. Try that.

Yep, I'm using Dali 2.2, Eclipse 3.5.1.

I was using the JPA 1.0 version of the orm.xml when I first encountered
the validation error. I just moved to 2.0, and it's still there.

>
> Otherwise, there could be a problem with Dali recognizing the file type,
> which should be solved with a project clean.

Project clean seems to clear the error, that's correct. Whenever I
perform a JPA validation, though, the error comes up again.

>
> A third option is to try a milestone of Dali 2.3, which supports JPA 2.0
> and EclipseLink 2.0 and also has solved some of these file content
> recognition issues. Being a milestone, it will have its stability
> problems compared to a release, but this might be tolerable in your
> situation.
>
> - Paul

Thanks for the suggestion. It's not critical enough for me to switch to
a 2.3M, but good to know that 2.3 may address the problem.

Best,
Ari
Re: Mapping file "META-INF/orm.xml" does not have ORM content [message #618862 is a reply to message #517094] Fri, 26 February 2010 16:15 Go to previous messageGo to next message
Paul Fullbright is currently offline Paul FullbrightFriend
Messages: 201
Registered: July 2009
Senior Member
No, that file should be perfectly legal. The complaint is regarding whether or not Dali recognizes that file as being a legal orm.xml file.

Assuming you're using Dali 2.2 (and not a milestone), the problem may be that you're using a JPA 2.0 version of the orm.xml, which is not yet supported. If all you're doing is defining queries, a 1.0 version of the orm.xml should work just fine. Try that.

Otherwise, there could be a problem with Dali recognizing the file type, which should be solved with a project clean.

A third option is to try a milestone of Dali 2.3, which supports JPA 2.0 and EclipseLink 2.0 and also has solved some of these file content recognition issues. Being a milestone, it will have its stability problems compared to a release, but this might be tolerable in your situation.

- Paul
Re: Mapping file "META-INF/orm.xml" does not have ORM content [message #618864 is a reply to message #618862] Sat, 27 February 2010 09:20 Go to previous message
Ari Meyer is currently offline Ari MeyerFriend
Messages: 136
Registered: July 2009
Senior Member
Thanks, Paul.

Paul Fullbright wrote:
> No, that file should be perfectly legal. The complaint is regarding
> whether or not Dali recognizes that file as being a legal orm.xml file.
>
> Assuming you're using Dali 2.2 (and not a milestone), the problem may be
> that you're using a JPA 2.0 version of the orm.xml, which is not yet
> supported. If all you're doing is defining queries, a 1.0 version of
> the orm.xml should work just fine. Try that.

Yep, I'm using Dali 2.2, Eclipse 3.5.1.

I was using the JPA 1.0 version of the orm.xml when I first encountered
the validation error. I just moved to 2.0, and it's still there.

>
> Otherwise, there could be a problem with Dali recognizing the file type,
> which should be solved with a project clean.

Project clean seems to clear the error, that's correct. Whenever I
perform a JPA validation, though, the error comes up again.

>
> A third option is to try a milestone of Dali 2.3, which supports JPA 2.0
> and EclipseLink 2.0 and also has solved some of these file content
> recognition issues. Being a milestone, it will have its stability
> problems compared to a release, but this might be tolerable in your
> situation.
>
> - Paul

Thanks for the suggestion. It's not critical enough for me to switch to
a 2.3M, but good to know that 2.3 may address the problem.

Best,
Ari
Previous Topic:javax.naming.NoInitialContextException using "generate tables from entities"
Next Topic:using synonyms resolving to tables in another schema
Goto Forum:
  


Current Time: Wed Apr 24 15:59:19 GMT 2024

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

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

Back to the top