users@glassfish.java.net

Re: Can't deploy app client with Glassfish v3 - JPA problem

From: Marina Vatkina <Marina.Vatkina_at_Sun.COM>
Date: Thu, 14 Jan 2010 14:06:01 -0800

exclude-unlisted-classes by default is false in Java EE.

-marina

Bobby Bissett wrote:
> Weird -- I just noticed that the exclude-unlisted-classes element is
> in one persistence unit but not the other. For what it's worth, the
> example application I'm working on now works just fine without it.
> (The only elements I have inside "persistence-unit" are "provider" and
> "jta-data-source.")
>
> Cheers,
> Bobby
>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <persistence version="2.0"
>> xmlns="http://java.sun.com/xml/ns/persistence"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
>> http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
>>
>> <!-- this is the type I think you don't want -->
>> <persistence-unit name="your_name_here1"
>> transaction-type="RESOURCE_LOCAL">
>> <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
>> <exclude-unlisted-classes>false</exclude-unlisted-classes>
>> <properties>
>> <property name="javax.persistence.jdbc.url"
>> value="jdbc:derby://localhost:1527/sun-appserv-samples"/>
>> <property name="javax.persistence.jdbc.password" value="APP"/>
>> <property name="javax.persistence.jdbc.driver"
>> value="org.apache.derby.jdbc.ClientDriver"/>
>> <property name="javax.persistence.jdbc.user" value="APP"/>
>> <property name="eclipselink.ddl-generation" value="create-tables"/>
>> </properties>
>> </persistence-unit>
>>
>> <!-- this is the JTA type. let GFv3 handle the details. -->
>> <persistence-unit name="your_name_here2" transaction-type="JTA">
>> <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
>> <jta-data-source>jdbc/your_jndi_name_here</jta-data-source>
>> <properties>
>> <property name="eclipselink.ddl-generation" value="create-tables"/>
>> </properties>
>> </persistence-unit>
>>
>> </persistence>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>