Unable to configure EntityManagerFactory?

You are using a JPA 1.0 implementation, you need to provide a JPA 1.0 compliant orm. Xml (note the version attribute amongst other things).

You are using a JPA 1.0 implementation, you need to provide a JPA 1.0 compliant orm. Xml (note the version attribute amongst other things): ... Yours probably looks like: ... Which is correct... if you are using a JPA 2.0 provider. But to be honest, I don't know why you are providing an orm.

Xml, you usually don't need an XML mapping file when using annotations. References JPA 1.0 Specifciation Section "10.2 XML Schema" JPA 2.0 Specifciation Section "12.3 XML Schema" Thanks for your reply and sorry for the orm.xml. My intense is to show the location of persistence.xml.

I am not using XML mapping. That orm. Xml is auto generated.

Shall I remove that file? I would try to remove the orm. Xml indeed, entity-mappings is the root element of the orm.

Xml, that's what the error is about. What do you mean in "if you are using a JPA 2.0 provider"? Provider means, JPA is just an API.To use JPA, you need an implementation of this API and such implementations are called persistence providers (EcliseLink, OpenJPA).

In your case, you are using bernate EntityManager 3.4.0. GA which is a JPA 1.0 implementation. What I have to do to change to JPA 2.0?

By adding javax. Persistence_2.0.0. Jar or by change the hibernate which is using JPA 2.0?

Both, you'd have to use bernate EntityManager 3.5+ (and its dependencies, and this includes the javax. Persistence_2.0.0. Jar).

Thanks for your reply and sorry for the orm.xml.. My intense is to show the location of persistence.xml. I am not using XML mapping. That orm.

Xml is auto generated. Shall I remove that file? What do you mean in "if you are using a JPA 2.0 provider"?

Provider means, What I have to do to change to JPA 2.0? By adding javax. Persistence_2.0.0.

Jar or by change the hibernate which is using JPA 2.0? – TamilVendhan Sep 20 '10 at 5:54 I have added persistence. Xml file in my question.My orm.

Xml file is empty. – TamilVendhan Sep 20 '10 at 6:07 Thanks again. I have added the hibernate-entitymanager-3.5.0-Final.

Jar & javax. Persistence_2.0.0. Jar in lib folder.

Now that XML error was cleared. But, still its showing 'Unable to Configure EntityManagerFactory' manager factory. – TamilVendhan Sep 20 '10 at 10:43 I have updated the new errors in my Question – TamilVendhan Sep 20 '10 at 10:52.

16047 31149935@qtp-23671010-1 ERROR org.hibernate.util. XMLHelper - Error parsing XML: XML InputStream(2) cvc-complex-type.3.1: Value '2.0' of attribute 'version' of element 'entity-mappings' is not valid with respect to the corresponding attribute use. Attribute 'version' has a fixed value of '1.0'.

Looks like this is error in your xml with some kind of attribute version's value.

Pascal's answer may I know why my answer is down voted. He also pointed the same thing (XML) – Jaydeep Sep 20 '10 at 6:17 I actually got frustrated from your answer. I know that the problem was with the xml files.

But I cant clear them, and thats why I asked help here. And, what you did. Just pasted the lines from my question and pointing the same thing I already know, and don't know to get out of it.

Ok, Cool... I tried to up vote again. But it ll be updated after you edit your answer. – TamilVendhan Sep 20 '10 at 7:22.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions