persistence@glassfish.java.net

Re: persistence.xml error

From: Onur Tokan <otokan_at_gmail.com>
Date: Tue, 2 May 2006 09:55:40 +0300

Try with this,
<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0">

Regards,

On 5/2/06, Dmitry Mozheyko <mozheyko_d_at_mail.ru> 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?
>
>