persistence@glassfish.java.net

Re: persistence.xml error

From: Sanjeeb Kumar Sahoo <Sanjeeb.Sahoo_at_Sun.COM>
Date: Tue, 02 May 2006 12:31:15 +0530

Pl find answer at
http://blogs.sun.com/roller/page/theaquarium?entry=version_information_is_required_for


Thanks,
Sahoo
Dmitry Mozheyko wrote:
> Hello all.
> I try to deploy my enterprise application (working fine on build b32g Linux) onto Solaris Sparc build b43 and receive error:
> Invalid Deployment Descriptors in Deployment descriptor file META-INF/persistence.xml in archive [example-ejb.jar].
> Line 2 Column 61 -- cvc-complex-type.4: Attribute 'version' must appear on element 'persistence'."
>
> [persistence.xml-file]
> <?xml version="1.0" encoding="UTF-8"?>
> <persistence xmlns="http://java.sun.com/xml/ns/persistence">
> <persistence-unit name="em" transaction-type="JTA">
> <jta-data-source>jdbc/__default</jta-data-source>
> <properties>
> <property name="ddl-generation" value="createtables"/>
> </properties>
> </persistence-unit>
> </persistence>
>
> Why?
>
>