You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by packiaramar <pa...@infosys.com> on 2012/04/05 07:59:29 UTC

Persistence Error:Value '2.0' of attribute 'version' of element 'persistence' is not valid with respect to the corresponding attribute use. Attribute 'version' has a fixed value of '1.0'.)

Am developing Dynamic web project with HTML 5 and Tomcat server 7. 
Its showing the Exception in persistence.xml file while running...
 
*cvc-complex-type.3.1: Value '2.0' of attribute 'version' of element
'persistence' is not valid with respect to the corresponding attribute use.
Attribute 'version' has a fixed value of '1.0'*

I imported all the jar files..
Am not able to figure out the problem.. Please let me knw , anyone knws the
solution

--
View this message in context: http://openejb.979440.n4.nabble.com/Persistence-Error-Value-2-0-of-attribute-version-of-element-persistence-is-not-valid-with-respect-to-tp4534033p4534033.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: Persistence Error:Value '2.0' of attribute 'version' of element 'persistence' is not valid with respect to the corresponding attribute use. Attribute 'version' has a fixed value of '1.0'.)

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi,

any more verbose exception? Maybe you included persistence dependencies...

here a sample using jpa2:
http://openejb.apache.org/examples-trunk/webapps/rest-example/README.html

- Romain


2012/4/5 packiaramar <pa...@infosys.com>

> Am developing Dynamic web project with HTML 5 and Tomcat server 7.
> Its showing the Exception in persistence.xml file while running...
>
> *cvc-complex-type.3.1: Value '2.0' of attribute 'version' of element
> 'persistence' is not valid with respect to the corresponding attribute use.
> Attribute 'version' has a fixed value of '1.0'*
>
> I imported all the jar files..
> Am not able to figure out the problem.. Please let me knw , anyone knws the
> solution
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Persistence-Error-Value-2-0-of-attribute-version-of-element-persistence-is-not-valid-with-respect-to-tp4534033p4534033.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>