persistence@glassfish.java.net

Re[2]: persistence.xml error

From: Dmitry Mozheyko <mozheyko_d_at_mail.ru>
Date: Tue, 02 May 2006 12:27:44 +0400

-----Original Message-----
From: Marina Vatkina <Marina.Vatkina_at_Sun.COM>
To: persistence_at_glassfish.dev.java.net
Date: Tue, 02 May 2006 01:01:29 -0700
Subject: Re: persistence.xml error

>
> Sorry, the correct link for the DDL generation properties would be:
> http://blogs.sun.com/roller/page/java2dbInGlassFish

Thank you, Marina.
This link solve all other problems:)

>
> -marina
>
> Marina Vatkina wrote:
> >
> > Please look at the example on the persistence page:
> > https://glassfish.dev.java.net/javaee5/persistence/entity-persistence-support.html#Java_SE.
> >
> >
> > You'll see the correct names for DDL generation properties.
> >
> > thanks,
> > -marina
> >
> > Sanjeeb Kumar Sahoo wrote:
> >
> >> 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?
> >>>
> >>>
>