JPA

classic Classic list List threaded Threaded
23 messages Options
12
Reply | Threaded
Open this post in threaded view
|

JPA

Andreas Ernst
Hi,

i am playing with JPA, but there is no useful information about that. A
simple example to display a database table.

The entities class is in the right package entities. I did not added
something to the AppModule class. The persistence.xml exists.

Customer.tml

<html t:type="layout" title="Customer"
       xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd"
       xmlns:p="tapestry:parameter">
   <table t:type="grid" source="customers"/>
</html>


Customers.class

public class Customers {

   @Property
   private Customer customer;
   private EntityManagerFactory factory;
   private EntityManager entityManager;
   @Inject
   private Logger logger;
   @Inject
   private BeanModelSource beanModelSource;
   @Inject
   private Messages messages;

   @Log
   public List<Customers> getCustomers() {
     factory =
Persistence.createEntityManagerFactory("de.aeits_TapestryWeb_war_1.0-SNAPSHOTPU");
     entityManager = factory.createEntityManager();
     return
entityManager.createNamedQuery("Customer.findAll").getResultList();
   }
}


What about the DAO and DAOImpl there are no informations how to use this
classes with a simple query page.

In all docus i found only
'entityManager.createNamedQuery("Customer.findAll").getResultList();' is
needed, but i get a null pointer expection.

Thanks
Andreas
--
ae | Andreas Ernst | IT Spektrum
Postfach 5, 65612 Beselich
Schupbacher Str. 32, 65614 Beselich, Germany
Tel: +49-6484-91002 Fax: +49-6484-91003
[hidden email] | www.ae-online.de
www.tachyon-online.de

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: JPA

Dmitry Gusev
Have you read this?
http://tapestry.apache.org/integrating-with-jpa.html

You should @Inject EntityManager, if you do things right you won't have to
create EntityManager instances yourself.

Also, saying that you have NPE, it would be nice if you provide us a
stacktrace.


On Fri, Oct 11, 2013 at 2:48 PM, Andreas Ernst <[hidden email]> wrote:

> Hi,
>
> i am playing with JPA, but there is no useful information about that. A
> simple example to display a database table.
>
> The entities class is in the right package entities. I did not added
> something to the AppModule class. The persistence.xml exists.
>
> Customer.tml
>
> <html t:type="layout" title="Customer"
>       xmlns:t="http://tapestry.**apache.org/schema/tapestry_5_**3.xsd<http://tapestry.apache.org/schema/tapestry_5_3.xsd>
> "
>       xmlns:p="tapestry:parameter">
>   <table t:type="grid" source="customers"/>
> </html>
>
>
> Customers.class
>
> public class Customers {
>
>   @Property
>   private Customer customer;
>   private EntityManagerFactory factory;
>   private EntityManager entityManager;
>   @Inject
>   private Logger logger;
>   @Inject
>   private BeanModelSource beanModelSource;
>   @Inject
>   private Messages messages;
>
>   @Log
>   public List<Customers> getCustomers() {
>     factory = Persistence.**createEntityManagerFactory("**
> de.aeits_TapestryWeb_war_1.0-**SNAPSHOTPU");
>     entityManager = factory.createEntityManager();
>     return entityManager.**createNamedQuery("Customer.**
> findAll").getResultList();
>   }
> }
>
>
> What about the DAO and DAOImpl there are no informations how to use this
> classes with a simple query page.
>
> In all docus i found only 'entityManager.**createNamedQuery("Customer.**findAll").getResultList();'
> is needed, but i get a null pointer expection.
>
> Thanks
> Andreas
> --
> ae | Andreas Ernst | IT Spektrum
> Postfach 5, 65612 Beselich
> Schupbacher Str. 32, 65614 Beselich, Germany
> Tel: +49-6484-91002 Fax: +49-6484-91003
> [hidden email] | www.ae-online.de
> www.tachyon-online.de
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.**apache.org<[hidden email]>
> For additional commands, e-mail: [hidden email]
>
>


--
Dmitry Gusev

AnjLab Team
http://anjlab.com
Reply | Threaded
Open this post in threaded view
|

Re: JPA

Lance Java
In reply to this post by Andreas Ernst
Reply | Threaded
Open this post in threaded view
|

Re: JPA

Andreas Ernst
In reply to this post by Dmitry Gusev
Am 11.10.13 12:55, schrieb Dmitry Gusev:

> Have you read this?
> http://tapestry.apache.org/integrating-with-jpa.html
>
> You should @Inject EntityManager, if you do things right you won't have to
> create EntityManager instances yourself.
>
> Also, saying that you have NPE, it would be nice if you provide us a
> stacktrace.
>
>
> On Fri, Oct 11, 2013 at 2:48 PM, Andreas Ernst <[hidden email]> wrote:
>
>> Hi,
>>
>> i am playing with JPA, but there is no useful information about that. A
>> simple example to display a database table.
>>
>> The entities class is in the right package entities. I did not added
>> something to the AppModule class. The persistence.xml exists.
>>
>> Customer.tml
>>
>> <html t:type="layout" title="Customer"
>>        xmlns:t="http://tapestry.**apache.org/schema/tapestry_5_**3.xsd<http://tapestry.apache.org/schema/tapestry_5_3.xsd>
>> "
>>        xmlns:p="tapestry:parameter">
>>    <table t:type="grid" source="customers"/>
>> </html>
>>
>>
>> Customers.class
>>
>> public class Customers {
>>
>>    @Property
>>    private Customer customer;
>>    private EntityManagerFactory factory;
>>    private EntityManager entityManager;
>>    @Inject
>>    private Logger logger;
>>    @Inject
>>    private BeanModelSource beanModelSource;
>>    @Inject
>>    private Messages messages;
>>
>>    @Log
>>    public List<Customers> getCustomers() {
>>      factory = Persistence.**createEntityManagerFactory("**
>> de.aeits_TapestryWeb_war_1.0-**SNAPSHOTPU");
>>      entityManager = factory.createEntityManager();
>>      return entityManager.**createNamedQuery("Customer.**
>> findAll").getResultList();
>>    }
>> }
>>
>>
>> What about the DAO and DAOImpl there are no informations how to use this
>> classes with a simple query page.
>>
>> In all docus i found only 'entityManager.**createNamedQuery("Customer.**findAll").getResultList();'
>> is needed, but i get a null pointer expection.

Yes, i read that.

public class Customers {

   @Property
   private Customer customer;
   @Inject
   private EntityManager entityManager;

   public List<Customers> getCustomers() {
     return
entityManager.createNamedQuery("Customer.findAll").getResultList();
   }
}

java.lang.RuntimeException: Unable to locate a single EntityManager. You
must provide the persistence unit name as defined in the persistence.xml
using the @PersistenceContext annotation.
        at
org.apache.tapestry5.internal.jpa.JpaInternalUtils.getEntityManager(JpaInternalUtils.java:92)
        at
org.apache.tapestry5.internal.jpa.EntityManagerObjectProvider$1.createObject(EntityManagerObjectProvider.java:62)

--
ae | Andreas Ernst | IT Spektrum
Postfach 5, 65612 Beselich
Schupbacher Str. 32, 65614 Beselich, Germany
Tel: +49-6484-91002 Fax: +49-6484-91003
[hidden email] | www.ae-online.de
www.tachyon-online.de

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: JPA

Andreas Ernst
In reply to this post by Lance Java
Am 11.10.13 12:59, schrieb Lance Java:
> http://lmgtfy.com/?q=tapestry+jpa&l=1
>
> :)

lol, i read all docs i could find, even the pdf/book of Igor.

I work with NetBeans 7.3.1 and GlassFish 4.0.

--
ae | Andreas Ernst | IT Spektrum
Postfach 5, 65612 Beselich
Schupbacher Str. 32, 65614 Beselich, Germany
Tel: +49-6484-91002 Fax: +49-6484-91003
[hidden email] | www.ae-online.de
www.tachyon-online.de

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: JPA

Dmitry Gusev
Do you have more than one PU in persistence.xml?


On Fri, Oct 11, 2013 at 3:08 PM, Andreas Ernst <[hidden email]> wrote:

> Am 11.10.13 12:59, schrieb Lance Java:
>
>> http://lmgtfy.com/?q=tapestry+**jpa&l=1<http://lmgtfy.com/?q=tapestry+jpa&l=1>
>>
>> :)
>>
>
> lol, i read all docs i could find, even the pdf/book of Igor.
>
> I work with NetBeans 7.3.1 and GlassFish 4.0.
>
>
> --
> ae | Andreas Ernst | IT Spektrum
> Postfach 5, 65612 Beselich
> Schupbacher Str. 32, 65614 Beselich, Germany
> Tel: +49-6484-91002 Fax: +49-6484-91003
> [hidden email] | www.ae-online.de
> www.tachyon-online.de
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.**apache.org<[hidden email]>
> For additional commands, e-mail: [hidden email]
>
>


--
Dmitry Gusev

AnjLab Team
http://anjlab.com
Reply | Threaded
Open this post in threaded view
|

Re: JPA

Andreas Ernst
Am 11.10.13 13:10, schrieb Dmitry Gusev:
> Do you have more than one PU in persistence.xml?

Yes:

<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.1"
xmlns="http://xmlns.jcp.org/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence 
http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
   <persistence-unit name="de.aeits_TapestryWeb_war_1.0-SNAPSHOTPU"
transaction-type="RESOURCE_LOCAL">
     <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
     <class>de.aeits.tapestryweb.entities.DiscountCode</class>
     <class>de.aeits.tapestryweb.entities.MicroMarket</class>
     <class>de.aeits.tapestryweb.entities.Customer</class>
     <exclude-unlisted-classes>false</exclude-unlisted-classes>
     <properties>
       <property name="javax.persistence.jdbc.url"
value="jdbc:derby://localhost:1527/sample"/>
       <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.logging.level" value="FINE"/>
     </properties>
   </persistence-unit>
</persistence>

--
ae | Andreas Ernst | IT Spektrum
Postfach 5, 65612 Beselich
Schupbacher Str. 32, 65614 Beselich, Germany
Tel: +49-6484-91002 Fax: +49-6484-91003
[hidden email] | www.ae-online.de
www.tachyon-online.de

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: JPA

Eugen
In reply to this post by Andreas Ernst
Hi, if You defined more persistence units in Your persistence.xml file
you should inject the EntityManager
 by
@Inject
@PersistenceContext(unitName = "unitname")

2013/10/11 Andreas Ernst <[hidden email]>:

> Am 11.10.13 12:55, schrieb Dmitry Gusev:
>
>> Have you read this?
>> http://tapestry.apache.org/integrating-with-jpa.html
>>
>> You should @Inject EntityManager, if you do things right you won't have to
>> create EntityManager instances yourself.
>>
>> Also, saying that you have NPE, it would be nice if you provide us a
>> stacktrace.
>>
>>
>> On Fri, Oct 11, 2013 at 2:48 PM, Andreas Ernst <[hidden email]> wrote:
>>
>>> Hi,
>>>
>>> i am playing with JPA, but there is no useful information about that. A
>>> simple example to display a database table.
>>>
>>> The entities class is in the right package entities. I did not added
>>> something to the AppModule class. The persistence.xml exists.
>>>
>>> Customer.tml
>>>
>>> <html t:type="layout" title="Customer"
>>>
>>> xmlns:t="http://tapestry.**apache.org/schema/tapestry_5_**3.xsd<http://tapestry.apache.org/schema/tapestry_5_3.xsd>
>>> "
>>>        xmlns:p="tapestry:parameter">
>>>    <table t:type="grid" source="customers"/>
>>> </html>
>>>
>>>
>>> Customers.class
>>>
>>> public class Customers {
>>>
>>>    @Property
>>>    private Customer customer;
>>>    private EntityManagerFactory factory;
>>>    private EntityManager entityManager;
>>>    @Inject
>>>    private Logger logger;
>>>    @Inject
>>>    private BeanModelSource beanModelSource;
>>>    @Inject
>>>    private Messages messages;
>>>
>>>    @Log
>>>    public List<Customers> getCustomers() {
>>>      factory = Persistence.**createEntityManagerFactory("**
>>> de.aeits_TapestryWeb_war_1.0-**SNAPSHOTPU");
>>>      entityManager = factory.createEntityManager();
>>>      return entityManager.**createNamedQuery("Customer.**
>>> findAll").getResultList();
>>>    }
>>> }
>>>
>>>
>>> What about the DAO and DAOImpl there are no informations how to use this
>>> classes with a simple query page.
>>>
>>> In all docus i found only
>>> 'entityManager.**createNamedQuery("Customer.**findAll").getResultList();'
>>> is needed, but i get a null pointer expection.
>
>
> Yes, i read that.
>
>
> public class Customers {
>
>   @Property
>   private Customer customer;
>   @Inject
>   private EntityManager entityManager;
>
>   public List<Customers> getCustomers() {
>     return
> entityManager.createNamedQuery("Customer.findAll").getResultList();
>   }
> }
>
> java.lang.RuntimeException: Unable to locate a single EntityManager. You
> must provide the persistence unit name as defined in the persistence.xml
> using the @PersistenceContext annotation.
>         at
> org.apache.tapestry5.internal.jpa.JpaInternalUtils.getEntityManager(JpaInternalUtils.java:92)
>         at
> org.apache.tapestry5.internal.jpa.EntityManagerObjectProvider$1.createObject(EntityManagerObjectProvider.java:62)
>
>
> --
> ae | Andreas Ernst | IT Spektrum
> Postfach 5, 65612 Beselich
> Schupbacher Str. 32, 65614 Beselich, Germany
> Tel: +49-6484-91002 Fax: +49-6484-91003
> [hidden email] | www.ae-online.de
> www.tachyon-online.de
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
>
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: JPA

Andreas Ernst
Am 11.10.13 13:13, schrieb Eugen:
> Hi, if You defined more persistence units in Your persistence.xml file
> you should inject the EntityManager
>   by
> @Inject
> @PersistenceContext(unitName = "unitname")

public class Customers {

   @Property
   private Customer customer;
   private EntityManagerFactory factory;
   @Inject
   @PersistenceContext(unitName = "de.aeits_TapestryWeb_war_1.0-SNAPSHOTPU")
   private EntityManager entityManager;

   @Log
   public List<Customers> getCustomers() {
     return
entityManager.createNamedQuery("Customer.findAll").getResultList();
   }
}

org.apache.tapestry5.ioc.internal.OperationException: Field
entityManager of class de.aeits.tapestryweb.pages.Customers can not be
claimed by @javax.persistence.PersistenceContext as it is already
claimed by @Inject.
        at
org.apache.tapestry5.ioc.internal.OperationTrackerImpl.logAndRethrow(OperationTrackerImpl.java:121)
        at
org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:88)
        at
org.apache.tapestry5.ioc.internal.OperationTrackerImpl.run(OperationTrackerImpl.java:47)
        at
org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.run(PerThreadOperationTracker.java:76)
        at
org.apache.tapestry5.ioc.internal.RegistryImpl.run(RegistryImpl.java:1116)

--
ae | Andreas Ernst | IT Spektrum
Postfach 5, 65612 Beselich
Schupbacher Str. 32, 65614 Beselich, Germany
Tel: +49-6484-91002 Fax: +49-6484-91003
[hidden email] | www.ae-online.de
www.tachyon-online.de

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: JPA

Dmitry Gusev
Try removing @Inject and only keep @PersistenceContext for the
EntityManager field ? :)




On Fri, Oct 11, 2013 at 3:17 PM, Andreas Ernst <[hidden email]> wrote:

> Am 11.10.13 13:13, schrieb Eugen:
>
>  Hi, if You defined more persistence units in Your persistence.xml file
>> you should inject the EntityManager
>>   by
>> @Inject
>> @PersistenceContext(unitName = "unitname")
>>
>
> public class Customers {
>
>   @Property
>   private Customer customer;
>   private EntityManagerFactory factory;
>   @Inject
>   @PersistenceContext(unitName = "de.aeits_TapestryWeb_war_1.0-**
> SNAPSHOTPU")
>   private EntityManager entityManager;
>
>
>   @Log
>   public List<Customers> getCustomers() {
>     return entityManager.**createNamedQuery("Customer.**
> findAll").getResultList();
>   }
> }
>
> org.apache.tapestry5.ioc.**internal.OperationException: Field
> entityManager of class de.aeits.tapestryweb.pages.**Customers can not be
> claimed by @javax.persistence.**PersistenceContext as it is already
> claimed by @Inject.
>         at org.apache.tapestry5.ioc.**internal.OperationTrackerImpl.**
> logAndRethrow(**OperationTrackerImpl.java:121)
>         at org.apache.tapestry5.ioc.**internal.OperationTrackerImpl.**
> invoke(OperationTrackerImpl.**java:88)
>         at org.apache.tapestry5.ioc.**internal.OperationTrackerImpl.**
> run(OperationTrackerImpl.java:**47)
>         at org.apache.tapestry5.ioc.**internal.**
> PerThreadOperationTracker.run(**PerThreadOperationTracker.**java:76)
>         at org.apache.tapestry5.ioc.**internal.RegistryImpl.run(**
> RegistryImpl.java:1116)
>
>
> --
> ae | Andreas Ernst | IT Spektrum
> Postfach 5, 65612 Beselich
> Schupbacher Str. 32, 65614 Beselich, Germany
> Tel: +49-6484-91002 Fax: +49-6484-91003
> [hidden email] | www.ae-online.de
> www.tachyon-online.de
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.**apache.org<[hidden email]>
> For additional commands, e-mail: [hidden email]
>
>


--
Dmitry Gusev

AnjLab Team
http://anjlab.com
Reply | Threaded
Open this post in threaded view
|

Re: JPA

Dmitry Gusev
Also you don't need this field here:

  private EntityManagerFactory factory;


On Fri, Oct 11, 2013 at 3:20 PM, Dmitry Gusev <[hidden email]>wrote:

> Try removing @Inject and only keep @PersistenceContext for the
> EntityManager field ? :)
>
>
>
>
> On Fri, Oct 11, 2013 at 3:17 PM, Andreas Ernst <[hidden email]> wrote:
>
>> Am 11.10.13 13:13, schrieb Eugen:
>>
>>  Hi, if You defined more persistence units in Your persistence.xml file
>>> you should inject the EntityManager
>>>   by
>>> @Inject
>>> @PersistenceContext(unitName = "unitname")
>>>
>>
>> public class Customers {
>>
>>   @Property
>>   private Customer customer;
>>   private EntityManagerFactory factory;
>>   @Inject
>>   @PersistenceContext(unitName = "de.aeits_TapestryWeb_war_1.0-**
>> SNAPSHOTPU")
>>   private EntityManager entityManager;
>>
>>
>>   @Log
>>   public List<Customers> getCustomers() {
>>     return entityManager.**createNamedQuery("Customer.**
>> findAll").getResultList();
>>   }
>> }
>>
>> org.apache.tapestry5.ioc.**internal.OperationException: Field
>> entityManager of class de.aeits.tapestryweb.pages.**Customers can not be
>> claimed by @javax.persistence.**PersistenceContext as it is already
>> claimed by @Inject.
>>         at org.apache.tapestry5.ioc.**internal.OperationTrackerImpl.**
>> logAndRethrow(**OperationTrackerImpl.java:121)
>>         at org.apache.tapestry5.ioc.**internal.OperationTrackerImpl.**
>> invoke(OperationTrackerImpl.**java:88)
>>         at org.apache.tapestry5.ioc.**internal.OperationTrackerImpl.**
>> run(OperationTrackerImpl.java:**47)
>>         at org.apache.tapestry5.ioc.**internal.**
>> PerThreadOperationTracker.run(**PerThreadOperationTracker.**java:76)
>>         at org.apache.tapestry5.ioc.**internal.RegistryImpl.run(**
>> RegistryImpl.java:1116)
>>
>>
>> --
>> ae | Andreas Ernst | IT Spektrum
>> Postfach 5, 65612 Beselich
>> Schupbacher Str. 32, 65614 Beselich, Germany
>> Tel: +49-6484-91002 Fax: +49-6484-91003
>> [hidden email] | www.ae-online.de
>> www.tachyon-online.de
>>
>> ------------------------------**------------------------------**---------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.**apache.org<[hidden email]>
>> For additional commands, e-mail: [hidden email]
>>
>>
>
>
> --
> Dmitry Gusev
>
> AnjLab Team
> http://anjlab.com
>



--
Dmitry Gusev

AnjLab Team
http://anjlab.com
Reply | Threaded
Open this post in threaded view
|

Re: JPA

Dmitry Gusev
In reply to this post by Andreas Ernst
I can only see one persistence-unit declaration here :\


On Fri, Oct 11, 2013 at 3:12 PM, Andreas Ernst <[hidden email]> wrote:

> Am 11.10.13 13:10, schrieb Dmitry Gusev:
>
>  Do you have more than one PU in persistence.xml?
>>
>
> Yes:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <persistence version="2.1" xmlns="http://xmlns.jcp.org/**
> xml/ns/persistence <http://xmlns.jcp.org/xml/ns/persistence>" xmlns:xsi="
> http://www.w3.org/**2001/XMLSchema-instance<http://www.w3.org/2001/XMLSchema-instance>"
> xsi:schemaLocation="http://**xmlns.jcp.org/xml/ns/**persistence<http://xmlns.jcp.org/xml/ns/persistence>
> http://xmlns.jcp.org/xml/ns/**persistence/persistence_2_1.**xsd<http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd>
> ">
>   <persistence-unit name="de.aeits_TapestryWeb_**war_1.0-SNAPSHOTPU"
> transaction-type="RESOURCE_**LOCAL">
>     <provider>org.eclipse.**persistence.jpa.**
> PersistenceProvider</provider>
>     <class>de.aeits.tapestryweb.**entities.DiscountCode</class>
>     <class>de.aeits.tapestryweb.**entities.MicroMarket</class>
>     <class>de.aeits.tapestryweb.**entities.Customer</class>
>     <exclude-unlisted-classes>**false</exclude-unlisted-**classes>
>     <properties>
>       <property name="javax.persistence.jdbc.**url"
> value="jdbc:derby://localhost:**1527/sample"/>
>       <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.logging.**level" value="FINE"/>
>     </properties>
>   </persistence-unit>
> </persistence>
>
>
> --
> ae | Andreas Ernst | IT Spektrum
> Postfach 5, 65612 Beselich
> Schupbacher Str. 32, 65614 Beselich, Germany
> Tel: +49-6484-91002 Fax: +49-6484-91003
> [hidden email] | www.ae-online.de
> www.tachyon-online.de
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.**apache.org<[hidden email]>
> For additional commands, e-mail: [hidden email]
>
>


--
Dmitry Gusev

AnjLab Team
http://anjlab.com
Reply | Threaded
Open this post in threaded view
|

Re: JPA

Eugen
In reply to this post by Andreas Ernst
ok, You need @Inject in services, in a page @PersistenceContext is enought..

2013/10/11 Andreas Ernst <[hidden email]>:

> Am 11.10.13 13:13, schrieb Eugen:
>
>> Hi, if You defined more persistence units in Your persistence.xml file
>> you should inject the EntityManager
>>   by
>> @Inject
>> @PersistenceContext(unitName = "unitname")
>
>
> public class Customers {
>
>   @Property
>   private Customer customer;
>   private EntityManagerFactory factory;
>   @Inject
>   @PersistenceContext(unitName = "de.aeits_TapestryWeb_war_1.0-SNAPSHOTPU")
>   private EntityManager entityManager;
>
>
>   @Log
>   public List<Customers> getCustomers() {
>     return
> entityManager.createNamedQuery("Customer.findAll").getResultList();
>   }
> }
>
> org.apache.tapestry5.ioc.internal.OperationException: Field entityManager of
> class de.aeits.tapestryweb.pages.Customers can not be claimed by
> @javax.persistence.PersistenceContext as it is already claimed by @Inject.
>         at
> org.apache.tapestry5.ioc.internal.OperationTrackerImpl.logAndRethrow(OperationTrackerImpl.java:121)
>         at
> org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:88)
>         at
> org.apache.tapestry5.ioc.internal.OperationTrackerImpl.run(OperationTrackerImpl.java:47)
>         at
> org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.run(PerThreadOperationTracker.java:76)
>         at
> org.apache.tapestry5.ioc.internal.RegistryImpl.run(RegistryImpl.java:1116)
>
>
> --
> ae | Andreas Ernst | IT Spektrum
> Postfach 5, 65612 Beselich
> Schupbacher Str. 32, 65614 Beselich, Germany
> Tel: +49-6484-91002 Fax: +49-6484-91003
> [hidden email] | www.ae-online.de
> www.tachyon-online.de
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: JPA

Andreas Ernst
In reply to this post by Dmitry Gusev
Am 11.10.13 13:20, schrieb Dmitry Gusev:
> Try removing @Inject and only keep @PersistenceContext for the
> EntityManager field ? :)

Sure :)

public class Customers {

   @PersistenceContext(unitName = "de.aeits_TapestryWeb_war_1.0-SNAPSHOTPU")
   private EntityManager entityManager;

   @Log
   public List<Customers> getCustomers() {
     return
entityManager.createNamedQuery("Customer.findAll").getResultList();
   }
}

java.lang.IllegalStateException: Failed to create EntityManagerFactory
for persistence unit 'de.aeits_TapestryWeb_war_1.0-SNAPSHOTPU'
        at
org.apache.tapestry5.internal.jpa.EntityManagerSourceImpl.createEntityManagerFactory(EntityManagerSourceImpl.java:212)
        at
org.apache.tapestry5.internal.jpa.EntityManagerSourceImpl.getEntityManagerFactory(EntityManagerSourceImpl.java:185)
        at
org.apache.tapestry5.internal.jpa.EntityManagerSourceImpl.create(EntityManagerSourceImpl.java:276)
        at $EntityManagerSource_132c0b3869f9a87d.create(Unknown Source)


 From my understanding of the docu, i only have to add the persistence
class to the entities package, right?

Add the dependency to the pom:

               <dependency>
                         <groupId>org.apache.tapestry</groupId>
                         <artifactId>tapestry-jpa</artifactId>
                         <version>5.3.7</version>
                 </dependency>

And just create a tml and the class like above.

--
ae | Andreas Ernst | IT Spektrum
Postfach 5, 65612 Beselich
Schupbacher Str. 32, 65614 Beselich, Germany
Tel: +49-6484-91002 Fax: +49-6484-91003
[hidden email] | www.ae-online.de
www.tachyon-online.de

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: JPA

Dmitry Gusev
> java.lang.**IllegalStateException: Failed to create EntityManagerFactory
for persistence unit 'de.aeits_TapestryWeb_war_1.0-**SNAPSHOTPU'

there should be "Caused by:" part of this stacktrace -- can you share that
too?

> From my understanding of the docu, i only have to add the persistence
class to the entities package, right?

Right, but you don't even have to put your entities to the "entities"
package provided that you specify your persisted classes in your
persistence.xml. Which you actually did, but you also have this line in
there:

<exclude-unlisted-classes>**false</exclude-unlisted-**classes>

which is not necessary if you specified full list of persisted classes
there. I'd say more, that having this exclude-unlisted-**classes=false may
increase start-up time for your application significantly.


On Fri, Oct 11, 2013 at 3:41 PM, Andreas Ernst <[hidden email]> wrote:

> Am 11.10.13 13:20, schrieb Dmitry Gusev:
>
>  Try removing @Inject and only keep @PersistenceContext for the
>> EntityManager field ? :)
>>
>
> Sure :)
>
> public class Customers {
>
>
>   @PersistenceContext(unitName = "de.aeits_TapestryWeb_war_1.0-**
> SNAPSHOTPU")
>   private EntityManager entityManager;
>
>   @Log
>   public List<Customers> getCustomers() {
>     return entityManager.**createNamedQuery("Customer.**
> findAll").getResultList();
>   }
> }
>
> java.lang.**IllegalStateException: Failed to create EntityManagerFactory
> for persistence unit 'de.aeits_TapestryWeb_war_1.0-**SNAPSHOTPU'
>         at org.apache.tapestry5.internal.**jpa.EntityManagerSourceImpl.**
> createEntityManagerFactory(**EntityManagerSourceImpl.java:**212)
>         at org.apache.tapestry5.internal.**jpa.EntityManagerSourceImpl.**
> getEntityManagerFactory(**EntityManagerSourceImpl.java:**185)
>         at org.apache.tapestry5.internal.**jpa.EntityManagerSourceImpl.**
> create(**EntityManagerSourceImpl.java:**276)
>         at $EntityManagerSource_**132c0b3869f9a87d.create(**Unknown
> Source)
>
>
> From my understanding of the docu, i only have to add the persistence
> class to the entities package, right?
>
> Add the dependency to the pom:
>
>               <dependency>
>                         <groupId>org.apache.tapestry</**groupId>
>                         <artifactId>tapestry-jpa</**artifactId>
>                         <version>5.3.7</version>
>                 </dependency>
>
> And just create a tml and the class like above.
>
>
> --
> ae | Andreas Ernst | IT Spektrum
> Postfach 5, 65612 Beselich
> Schupbacher Str. 32, 65614 Beselich, Germany
> Tel: +49-6484-91002 Fax: +49-6484-91003
> [hidden email] | www.ae-online.de
> www.tachyon-online.de
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.**apache.org<[hidden email]>
> For additional commands, e-mail: [hidden email]
>
>


--
Dmitry Gusev

AnjLab Team
http://anjlab.com
Reply | Threaded
Open this post in threaded view
|

Re: JPA

Andreas Ernst
Am 11.10.13 13:52, schrieb Dmitry Gusev:

>> java.lang.**IllegalStateException: Failed to create EntityManagerFactory
> for persistence unit 'de.aeits_TapestryWeb_war_1.0-**SNAPSHOTPU'
>
> there should be "Caused by:" part of this stacktrace -- can you share that
> too?
>
>>  From my understanding of the docu, i only have to add the persistence
> class to the entities package, right?
>
> Right, but you don't even have to put your entities to the "entities"
> package provided that you specify your persisted classes in your
> persistence.xml. Which you actually did, but you also have this line in
> there:
>
> <exclude-unlisted-classes>**false</exclude-unlisted-**classes>
>
> which is not necessary if you specified full list of persisted classes
> there. I'd say more, that having this exclude-unlisted-**classes=false may
> increase start-up time for your application significantly.

Thanks for that.

Here is the full stacktrace:

java.lang.IllegalStateException: Failed to create EntityManagerFactory
for persistence unit 'de.aeits_TapestryWeb_war_1.0-SNAPSHOTPU'
        at
org.apache.tapestry5.internal.jpa.EntityManagerSourceImpl.createEntityManagerFactory(EntityManagerSourceImpl.java:212)
        at
org.apache.tapestry5.internal.jpa.EntityManagerSourceImpl.getEntityManagerFactory(EntityManagerSourceImpl.java:185)
        at
org.apache.tapestry5.internal.jpa.EntityManagerSourceImpl.create(EntityManagerSourceImpl.java:276)
        at $EntityManagerSource_132c0c615bb9bda5.create(Unknown Source)
        at
org.apache.tapestry5.internal.jpa.EntityManagerManagerImpl.getOrCreateEntityManager(EntityManagerManagerImpl.java:78)
        at
org.apache.tapestry5.internal.jpa.EntityManagerManagerImpl.getEntityManager(EntityManagerManagerImpl.java:51)
        at $EntityManagerManager_132c0c615bb9bda4.getEntityManager(Unknown Source)
        at $EntityManagerManager_132c0c615bb9bda3.getEntityManager(Unknown Source)
        at
org.apache.tapestry5.internal.jpa.JpaInternalUtils.getEntityManager(JpaInternalUtils.java:85)
        at
org.apache.tapestry5.internal.jpa.PersistenceContextWorker$1.get(PersistenceContextWorker.java:50)
        at
de.aeits.tapestryweb.pages.Customers.conduit_get_entityManager(Customers.java)
        at
de.aeits.tapestryweb.pages.Customers.advised$getCustomers_132c0c615bb9bde5(Customers.java:34)
        at
de.aeits.tapestryweb.pages.Customers$Invocation_getCustomers_132c0c615bb9bde4.proceedToAdvisedMethod(Unknown
Source)
        at
org.apache.tapestry5.internal.plastic.AbstractMethodInvocation.proceed(AbstractMethodInvocation.java:84)
        at
org.apache.tapestry5.ioc.internal.services.LoggingAdvice.advise(LoggingAdvice.java:45)
        at
org.apache.tapestry5.internal.plastic.AbstractMethodInvocation.proceed(AbstractMethodInvocation.java:86)
        at de.aeits.tapestryweb.pages.Customers.getCustomers(Customers.java)
        at $InternalPropertyConduit_132c0c615bb9be59.get(Unknown Source)
        at
org.apache.tapestry5.internal.bindings.PropBinding.get(PropBinding.java:59)
        at
org.apache.tapestry5.internal.transform.ParameterWorker$3$1.readFromBinding(ParameterWorker.java:254)
        at
org.apache.tapestry5.internal.transform.ParameterWorker$3$1.get(ParameterWorker.java:372)
        at
org.apache.tapestry5.corelib.components.Grid.conduit_get_source(Grid.java)
        at
org.apache.tapestry5.corelib.components.Grid.setupDataSource(Grid.java:461)
        at org.apache.tapestry5.corelib.components.Grid.setupRender(Grid.java:447)
        at org.apache.tapestry5.corelib.components.Grid.setupRender(Grid.java)
        at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl$SetupRenderPhase.invokeComponent(ComponentPageElementImpl.java:174)
        at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl$AbstractPhase.invoke(ComponentPageElementImpl.java:133)
        at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl$SetupRenderPhase.render(ComponentPageElementImpl.java:181)
        at
org.apache.tapestry5.internal.services.RenderQueueImpl.run(RenderQueueImpl.java:72)
        at
org.apache.tapestry5.internal.services.PageRenderQueueImpl.render(PageRenderQueueImpl.java:124)
        at $PageRenderQueue_132c0c615bb9be64.render(Unknown Source)
        at $PageRenderQueue_132c0c615bb9be63.render(Unknown Source)
        at
org.apache.tapestry5.internal.services.MarkupRendererTerminator.renderMarkup(MarkupRendererTerminator.java:37)
        at
org.apache.tapestry5.services.TapestryModule$30.renderMarkup(TapestryModule.java:1979)
        at $MarkupRenderer_132c0c615bb9be67.renderMarkup(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$29.renderMarkup(TapestryModule.java:1963)
        at $MarkupRenderer_132c0c615bb9be67.renderMarkup(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$28.renderMarkup(TapestryModule.java:1945)
        at $MarkupRenderer_132c0c615bb9be67.renderMarkup(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$27.renderMarkup(TapestryModule.java:1930)
        at $MarkupRenderer_132c0c615bb9be67.renderMarkup(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$26.renderMarkup(TapestryModule.java:1916)
        at $MarkupRenderer_132c0c615bb9be67.renderMarkup(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$25.renderMarkup(TapestryModule.java:1898)
        at $MarkupRenderer_132c0c615bb9be67.renderMarkup(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$24.renderMarkup(TapestryModule.java:1879)
        at $MarkupRenderer_132c0c615bb9be67.renderMarkup(Unknown Source)
        at $MarkupRenderer_132c0c615bb9be62.renderMarkup(Unknown Source)
        at
org.apache.tapestry5.internal.services.PageMarkupRendererImpl.renderPageMarkup(PageMarkupRendererImpl.java:47)
        at $PageMarkupRenderer_132c0c615bb9be60.renderPageMarkup(Unknown Source)
        at
org.apache.tapestry5.internal.services.PageResponseRendererImpl.renderPageResponse(PageResponseRendererImpl.java:67)
        at $PageResponseRenderer_132c0c615bb9bded.renderPageResponse(Unknown
Source)
        at
org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:64)
        at
org.apache.tapestry5.services.TapestryModule$37.handle(TapestryModule.java:2207)
        at $PageRenderRequestHandler_132c0c615bb9bdef.handle(Unknown Source)
        at $PageRenderRequestHandler_132c0c615bb9bde9.handle(Unknown Source)
        at
org.apache.tapestry5.internal.services.ComponentRequestHandlerTerminator.handlePageRender(ComponentRequestHandlerTerminator.java:48)
        at
org.apache.tapestry5.services.InitializeActivePageName.handlePageRender(InitializeActivePageName.java:47)
        at $ComponentRequestHandler_132c0c615bb9bdea.handlePageRender(Unknown
Source)
        at $ComponentRequestHandler_132c0c615bb9bdbe.handlePageRender(Unknown
Source)
        at
org.apache.tapestry5.internal.services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:45)
        at $Dispatcher_132c0c615bb9bdc1.dispatch(Unknown Source)
        at $Dispatcher_132c0c615bb9bdbb.dispatch(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$RequestHandlerTerminator.service(TapestryModule.java:302)
        at de.aeits.tapestryweb.services.AppModule$1.service(AppModule.java:84)
        at $RequestFilter_132c0c615bb9bdba.service(Unknown Source)
        at $RequestHandler_132c0c615bb9bdbc.service(Unknown Source)
        at
org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:26)
        at $RequestHandler_132c0c615bb9bdbc.service(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.java:902)
        at $RequestHandler_132c0c615bb9bdbc.service(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:892)
        at $RequestHandler_132c0c615bb9bdbc.service(Unknown Source)
        at
org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:90)
        at $RequestHandler_132c0c615bb9bdbc.service(Unknown Source)
        at $RequestHandler_132c0c615bb9bdb0.service(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$HttpServletRequestHandlerTerminator.service(TapestryModule.java:253)
        at
org.apache.tapestry5.internal.gzip.GZipFilter.service(GZipFilter.java:53)
        at $HttpServletRequestHandler_132c0c615bb9bdb2.service(Unknown Source)
        at
org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62)
        at $HttpServletRequestFilter_132c0c615bb9bdae.service(Unknown Source)
        at $HttpServletRequestHandler_132c0c615bb9bdb2.service(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$1.service(TapestryModule.java:852)
        at $HttpServletRequestHandler_132c0c615bb9bdb2.service(Unknown Source)
        at $HttpServletRequestHandler_132c0c615bb9bdad.service(Unknown Source)
        at org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:171)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:316)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
        at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:67]]

[2013-10-11T14:35:17.239+0200] [glassfish 4.0] [INFO] [] [] [tid:
_ThreadID=76 _ThreadName=Thread-3] [timeMillis: 1381494917239]
[levelValue: 800] [[
   3)
        at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
        at
org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:357)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:260)
        at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:188)
        at
org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
        at
org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
        at
org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
        at
org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
        at
org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
        at
org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
        at
org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
        at
org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
        at
org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
        at
org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
        at
org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
        at
org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
        at
org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
        at
org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
        at
org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
        at
org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
        at java.lang.Thread.run(Thread.java:724)]]

[2013-10-11T14:35:17.262+0200] [glassfish 4.0] [INFO] [] [] [tid:
_ThreadID=76 _ThreadName=Thread-3] [timeMillis: 1381494917262]
[levelValue: 800] [[
   [ERROR] pages.Customers Render queue error in
SetupRender[Customers:grid]: Failure reading parameter 'source' of
component Customers:grid: Failed to create EntityManagerFactory for
persistence unit 'de.aeits_TapestryWeb_war_1.0-SNAPSHOTPU'
org.apache.tapestry5.ioc.internal.util.TapestryException: Failure
reading parameter 'source' of component Customers:grid: Failed to create
EntityManagerFactory for persistence unit
'de.aeits_TapestryWeb_war_1.0-SNAPSHOTPU' [at
classpath:de/aeits/tapestryweb/pages/Customers.tml, line 12]
        at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl$AbstractPhase.invoke(ComponentPageElementImpl.java:153)
        at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl$SetupRenderPhase.render(ComponentPageElementImpl.java:181)
        at
org.apache.tapestry5.internal.services.RenderQueueImpl.run(RenderQueueImpl.java:72)
        at
org.apache.tapestry5.internal.services.PageRenderQueueImpl.render(PageRenderQueueImpl.java:124)
        at $PageRenderQueue_132c0c615bb9be64.render(Unknown Source)
        at $PageRenderQueue_132c0c615bb9be63.render(Unknown Source)
        at
org.apache.tapestry5.internal.services.MarkupRendererTerminator.renderMarkup(MarkupRendererTerminator.java:37)
        at
org.apache.tapestry5.services.TapestryModule$30.renderMarkup(TapestryModule.java:1979)
        at $MarkupRenderer_132c0c615bb9be67.renderMarkup(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$29.renderMarkup(TapestryModule.java:1963)
        at $MarkupRenderer_132c0c615bb9be67.renderMarkup(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$28.renderMarkup(TapestryModule.java:1945)
        at $MarkupRenderer_132c0c615bb9be67.renderMarkup(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$27.renderMarkup(TapestryModule.java:1930)
        at $MarkupRenderer_132c0c615bb9be67.renderMarkup(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$26.renderMarkup(TapestryModule.java:1916)
        at $MarkupRenderer_132c0c615bb9be67.renderMarkup(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$25.renderMarkup(TapestryModule.java:1898)
        at $MarkupRenderer_132c0c615bb9be67.renderMarkup(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$24.renderMarkup(TapestryModule.java:1879)
        at $MarkupRenderer_132c0c615bb9be67.renderMarkup(Unknown Source)
        at $MarkupRenderer_132c0c615bb9be62.renderMarkup(Unknown Source)
        at
org.apache.tapestry5.internal.services.PageMarkupRendererImpl.renderPageMarkup(PageMarkupRendererImpl.java:47)
        at $PageMarkupRenderer_132c0c615bb9be60.renderPageMarkup(Unknown Source)
        at
org.apache.tapestry5.internal.services.PageResponseRendererImpl.renderPageResponse(PageResponseRendererImpl.java:67)
        at $PageResponseRenderer_132c0c615bb9bded.renderPageResponse(Unknown
Source)
        at
org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:64)
        at
org.apache.tapestry5.services.TapestryModule$37.handle(TapestryModule.java:2207)
        at $PageRenderRequestHandler_132c0c615bb9bdef.handle(Unknown Source)
        at $PageRenderRequestHandler_132c0c615bb9bde9.handle(Unknown Source)
        at
org.apache.tapestry5.internal.services.ComponentRequestHandlerTerminator.handlePageRender(ComponentRequestHandlerTerminator.java:48)
        at
org.apache.tapestry5.services.InitializeActivePageName.handlePageRender(InitializeActivePageName.java:47)
        at $ComponentRequestHandler_132c0c615bb9bdea.handlePageRender(Unknown
Source)
        at $ComponentRequestHandler_132c0c615bb9bdbe.handlePageRender(Unknown
Source)
        at
org.apache.tapestry5.internal.services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:45)
        at $Dispatcher_132c0c615bb9bdc1.dispatch(Unknown Source)
        at $Dispatcher_132c0c615bb9bdbb.dispatch(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$RequestHandlerTerminator.service(TapestryModule.java:302)
        at de.aeits.tapestryweb.services.AppModule$1.service(AppModule.java:84)
        at $RequestFilter_132c0c615bb9bdba.service(Unknown Source)
        at $RequestHandler_132c0c615bb9bdbc.service(Unknown Source)
        at
org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:26)
        at $RequestHandler_132c0c615bb9bdbc.service(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.java:902)
        at $RequestHandler_132c0c615bb9bdbc.service(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:892)
        at $RequestHandler_132c0c615bb9bdbc.service(Unknown Source)
        at
org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:90)
        at $RequestHandler_132c0c615bb9bdbc.service(Unknown Source)
        at $RequestHandler_132c0c615bb9bdb0.service(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$HttpServletRequestHandlerTerminator.service(TapestryModule.java:253)
        at
org.apache.tapestry5.internal.gzip.GZipFilter.service(GZipFilter.java:53)
        at $HttpServletRequestHandler_132c0c615bb9bdb2.service(Unknown Source)
        at
org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62)
        at $HttpServletRequestFilter_132c0c615bb9bdae.service(Unknown Source)
        at $HttpServletRequestHandler_132c0c615bb9bdb2.service(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$1.service(TapestryModule.java:852)
        at $HttpServletRequestHandler_132c0c615bb9bdb2.service(Unknown Source)
        at $HttpServletRequestHandler_132c0c615bb9bdad.service(Unknown Source)
        at org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:171)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:316)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
        at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
        at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
        at
org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:357)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:260)
        at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:188)
        at
org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
        at
org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
        at
org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
        at
org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
        at
org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
        at
org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
        at
org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
        at
org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
        at
org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
        at
org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
        at
org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
        at
org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
        at
org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
        at
org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
        at
org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
        at
org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
        at java.lang.Thread.run(Thread.java:724)
Caused by: org.apache.tapestry5.ioc.internal.util.TapestryException:
Failure reading parameter 'source' of component Customers:grid: Failed
to create EntityManagerFactory for persistence]]

[2013-10-11T14:35:17.262+0200] [glassfish 4.0] [INFO] [] [] [tid:
_ThreadID=76 _ThreadName=Thread-3] [timeMillis: 1381494917262]
[levelValue: 800] [[
   unit 'de.aeits_TapestryWeb_war_1.0-SNAPSHOTPU' [at
classpath:de/aeits/tapestryweb/pages/Customers.tml, line 12]
        at
org.apache.tapestry5.internal.transform.ParameterWorker$3$1.readFromBinding(ParameterWorker.java:259)
        at
org.apache.tapestry5.internal.transform.ParameterWorker$3$1.get(ParameterWorker.java:372)
        at
org.apache.tapestry5.corelib.components.Grid.conduit_get_source(Grid.java)
        at
org.apache.tapestry5.corelib.components.Grid.setupDataSource(Grid.java:461)
        at org.apache.tapestry5.corelib.components.Grid.setupRender(Grid.java:447)
        at org.apache.tapestry5.corelib.components.Grid.setupRender(Grid.java)
        at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl$SetupRenderPhase.invokeComponent(ComponentPageElementImpl.java:174)
        at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl$AbstractPhase.invoke(ComponentPageElementImpl.java:133)
        ... 87 more
Caused by: org.apache.tapestry5.ioc.internal.util.TapestryException:
Failed to create EntityManagerFactory for persistence unit
'de.aeits_TapestryWeb_war_1.0-SNAPSHOTPU' [at
classpath:de/aeits/tapestryweb/pages/Customers.tml, line 12]
        at
org.apache.tapestry5.internal.bindings.PropBinding.get(PropBinding.java:63)
        at
org.apache.tapestry5.internal.transform.ParameterWorker$3$1.readFromBinding(ParameterWorker.java:254)
        ... 94 more
Caused by: java.lang.IllegalStateException: Failed to create
EntityManagerFactory for persistence unit
'de.aeits_TapestryWeb_war_1.0-SNAPSHOTPU'
        at
org.apache.tapestry5.internal.jpa.EntityManagerSourceImpl.createEntityManagerFactory(EntityManagerSourceImpl.java:212)
        at
org.apache.tapestry5.internal.jpa.EntityManagerSourceImpl.getEntityManagerFactory(EntityManagerSourceImpl.java:185)
        at
org.apache.tapestry5.internal.jpa.EntityManagerSourceImpl.create(EntityManagerSourceImpl.java:276)
        at $EntityManagerSource_132c0c615bb9bda5.create(Unknown Source)
        at
org.apache.tapestry5.internal.jpa.EntityManagerManagerImpl.getOrCreateEntityManager(EntityManagerManagerImpl.java:78)
        at
org.apache.tapestry5.internal.jpa.EntityManagerManagerImpl.getEntityManager(EntityManagerManagerImpl.java:51)
        at $EntityManagerManager_132c0c615bb9bda4.getEntityManager(Unknown Source)
        at $EntityManagerManager_132c0c615bb9bda3.getEntityManager(Unknown Source)
        at
org.apache.tapestry5.internal.jpa.JpaInternalUtils.getEntityManager(JpaInternalUtils.java:85)
        at
org.apache.tapestry5.internal.jpa.PersistenceContextWorker$1.get(PersistenceContextWorker.java:50)
        at
de.aeits.tapestryweb.pages.Customers.conduit_get_entityManager(Customers.java)
        at
de.aeits.tapestryweb.pages.Customers.advised$getCustomers_132c0c615bb9bde5(Customers.java:34)
        at
de.aeits.tapestryweb.pages.Customers$Invocation_getCustomers_132c0c615bb9bde4.proceedToAdvisedMethod(Unknown
Source)
        at
org.apache.tapestry5.internal.plastic.AbstractMethodInvocation.proceed(AbstractMethodInvocation.java:84)
        at
org.apache.tapestry5.ioc.internal.services.LoggingAdvice.advise(LoggingAdvice.java:45)
        at
org.apache.tapestry5.internal.plastic.AbstractMethodInvocation.proceed(AbstractMethodInvocation.java:86)
        at de.aeits.tapestryweb.pages.Customers.getCustomers(Customers.java)
        at $InternalPropertyConduit_132c0c615bb9be59.get(Unknown Source)
        at
org.apache.tapestry5.internal.bindings.PropBinding.get(PropBinding.java:59)
        ... 95 more]]

[2013-10-11T14:35:17.263+0200] [glassfish 4.0] [INFO] [] [] [tid:
_ThreadID=76 _ThreadName=Thread-3] [timeMillis: 1381494917263]
[levelValue: 800] [[
   [INFO] AppModule.TimingFilter Request time: 2173 ms]]

[2013-10-11T14:35:17.269+0200] [glassfish 4.0] [INFO] [] [] [tid:
_ThreadID=76 _ThreadName=Thread-3] [timeMillis: 1381494917269]
[levelValue: 800] [[
   [ERROR] TapestryModule.RequestExceptionHandler Processing of request
failed with uncaught exception: Render queue error in
SetupRender[Customers:grid]: Failure reading parameter 'source' of
component Customers:grid: Failed to create EntityManagerFactory for
persistence unit 'de.aeits_TapestryWeb_war_1.0-SNAPSHOTPU'
org.apache.tapestry5.internal.services.RenderQueueException: Render
queue error in SetupRender[Customers:grid]: Failure reading parameter
'source' of component Customers:grid: Failed to create
EntityManagerFactory for persistence unit
'de.aeits_TapestryWeb_war_1.0-SNAPSHOTPU' [at
classpath:de/aeits/tapestryweb/pages/Customers.tml, line 12]
        at
org.apache.tapestry5.internal.services.RenderQueueImpl.run(RenderQueueImpl.java:81)
        at
org.apache.tapestry5.internal.services.PageRenderQueueImpl.render(PageRenderQueueImpl.java:124)
        at $PageRenderQueue_132c0c615bb9be64.render(Unknown Source)
        at $PageRenderQueue_132c0c615bb9be63.render(Unknown Source)
        at
org.apache.tapestry5.internal.services.MarkupRendererTerminator.renderMarkup(MarkupRendererTerminator.java:37)
        at
org.apache.tapestry5.services.TapestryModule$30.renderMarkup(TapestryModule.java:1979)
        at $MarkupRenderer_132c0c615bb9be67.renderMarkup(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$29.renderMarkup(TapestryModule.java:1963)
        at $MarkupRenderer_132c0c615bb9be67.renderMarkup(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$28.renderMarkup(TapestryModule.java:1945)
        at $MarkupRenderer_132c0c615bb9be67.renderMarkup(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$27.renderMarkup(TapestryModule.java:1930)
        at $MarkupRenderer_132c0c615bb9be67.renderMarkup(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$26.renderMarkup(TapestryModule.java:1916)
        at $MarkupRenderer_132c0c615bb9be67.renderMarkup(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$25.renderMarkup(TapestryModule.java:1898)
        at $MarkupRenderer_132c0c615bb9be67.renderMarkup(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$24.renderMarkup(TapestryModule.java:1879)
        at $MarkupRenderer_132c0c615bb9be67.renderMarkup(Unknown Source)
        at $MarkupRenderer_132c0c615bb9be62.renderMarkup(Unknown Source)
        at
org.apache.tapestry5.internal.services.PageMarkupRendererImpl.renderPageMarkup(PageMarkupRendererImpl.java:47)
        at $PageMarkupRenderer_132c0c615bb9be60.renderPageMarkup(Unknown Source)
        at
org.apache.tapestry5.internal.services.PageResponseRendererImpl.renderPageResponse(PageResponseRendererImpl.java:67)
        at $PageResponseRenderer_132c0c615bb9bded.renderPageResponse(Unknown
Source)
        at
org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:64)
        at
org.apache.tapestry5.services.TapestryModule$37.handle(TapestryModule.java:2207)
        at $PageRenderRequestHandler_132c0c615bb9bdef.handle(Unknown Source)
        at $PageRenderRequestHandler_132c0c615bb9bde9.handle(Unknown Source)
        at
org.apache.tapestry5.internal.services.ComponentRequestHandlerTerminator.handlePageRender(ComponentRequestHandlerTerminator.java:48)
        at
org.apache.tapestry5.services.InitializeActivePageName.handlePageRender(InitializeActivePageName.java:47)
        at $ComponentRequestHandler_132c0c615bb9bdea.handlePageRender(Unknown
Source)
        at $ComponentRequestHandler_132c0c615bb9bdbe.handlePageRender(Unknown
Source)
        at
org.apache.tapestry5.internal.services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:45)
        at $Dispatcher_132c0c615bb9bdc1.dispatch(Unknown Source)
        at $Dispatcher_132c0c615bb9bdbb.dispatch(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$RequestHandlerTerminator.service(TapestryModule.java:302)
        at de.aeits.tapestryweb.services.AppModule$1.service(AppModule.java:84)
        at $RequestFilter_132c0c615bb9bdba.service(Unknown Source)
        at $RequestHandler_132c0c615bb9bdbc.service(Unknown Source)
        at
org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:26)
        at $RequestHandler_132c0c615bb9bdbc.service(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.java:902)
        at $RequestHandler_132c0c615bb9bdbc.service(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:892)
        at $RequestHandler_132c0c615bb9bdbc.service(Unknown Source)
        at
org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:90)
        at $RequestHandler_132c0c615bb9bdbc.service(Unknown Source)
        at $RequestHandler_132c0c615bb9bdb0.service(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$HttpServletRequestHandlerTerminator.service(TapestryModule.java:253)
        at
org.apache.tapestry5.internal.gzip.GZipFilter.service(GZipFilter.java:53)
        at $HttpServletRequestHandler_132c0c615bb9bdb2.service(Unknown Source)
        at
org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62)
        at $HttpServletRequestFilter_132c0c615bb9bdae.service(Unknown Source)
        at $HttpServletRequestHandler_132c0c615bb9bdb2.service(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$1.service(TapestryModule.java:852)
        at $HttpServletRequestHandler_132c0c615bb9bdb2.service(Unknown Source)
        at $HttpServletRequestHandler_132c0c615bb9bdad.service(Unknown Source)
        at org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:171)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:316)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
        at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
        at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
        at
org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:357)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:260)
        at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:188)
        at
org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
        at
org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
        at
org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
        at
org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
        at
org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
        at
org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
        at
org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
        at
org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
        at
org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
        at
org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
        at
org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
        at
org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
        at
org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
        at
org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
        at
org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
        at
org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
        at java.lang.Thread.run(Thread.java:724)
Caused by: org.apache.tapestry5.ioc.internal.util.TapestryException:
Failure reading parameter 'source' of component Customers:grid: Failed
to create EntityManagerFactory for persistence unit
'de.aeits_TapestryWeb_war_1.0-SNAPSHOTPU' [at
classpath:de/aeits/tapestryweb/pages/Customers.tml, line 12]
        at org.ap]]

[2013-10-11T14:35:17.269+0200] [glassfish 4.0] [INFO] [] [] [tid:
_ThreadID=76 _ThreadName=Thread-3] [timeMillis: 1381494917269]
[levelValue: 800] [[
 
ache.tapestry5.internal.structure.ComponentPageElementImpl$AbstractPhase.invoke(ComponentPageElementImpl.java:153)
        at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl$SetupRenderPhase.render(ComponentPageElementImpl.java:181)
        at
org.apache.tapestry5.internal.services.RenderQueueImpl.run(RenderQueueImpl.java:72)
        ... 85 more
Caused by: org.apache.tapestry5.ioc.internal.util.TapestryException:
Failure reading parameter 'source' of component Customers:grid: Failed
to create EntityManagerFactory for persistence unit
'de.aeits_TapestryWeb_war_1.0-SNAPSHOTPU' [at
classpath:de/aeits/tapestryweb/pages/Customers.tml, line 12]
        at
org.apache.tapestry5.internal.transform.ParameterWorker$3$1.readFromBinding(ParameterWorker.java:259)
        at
org.apache.tapestry5.internal.transform.ParameterWorker$3$1.get(ParameterWorker.java:372)
        at
org.apache.tapestry5.corelib.components.Grid.conduit_get_source(Grid.java)
        at
org.apache.tapestry5.corelib.components.Grid.setupDataSource(Grid.java:461)
        at org.apache.tapestry5.corelib.components.Grid.setupRender(Grid.java:447)
        at org.apache.tapestry5.corelib.components.Grid.setupRender(Grid.java)
        at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl$SetupRenderPhase.invokeComponent(ComponentPageElementImpl.java:174)
        at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl$AbstractPhase.invoke(ComponentPageElementImpl.java:133)
        ... 87 more
Caused by: org.apache.tapestry5.ioc.internal.util.TapestryException:
Failed to create EntityManagerFactory for persistence unit
'de.aeits_TapestryWeb_war_1.0-SNAPSHOTPU' [at
classpath:de/aeits/tapestryweb/pages/Customers.tml, line 12]
        at
org.apache.tapestry5.internal.bindings.PropBinding.get(PropBinding.java:63)
        at
org.apache.tapestry5.internal.transform.ParameterWorker$3$1.readFromBinding(ParameterWorker.java:254)
        ... 94 more
Caused by: java.lang.IllegalStateException: Failed to create
EntityManagerFactory for persistence unit
'de.aeits_TapestryWeb_war_1.0-SNAPSHOTPU'
        at
org.apache.tapestry5.internal.jpa.EntityManagerSourceImpl.createEntityManagerFactory(EntityManagerSourceImpl.java:212)
        at
org.apache.tapestry5.internal.jpa.EntityManagerSourceImpl.getEntityManagerFactory(EntityManagerSourceImpl.java:185)
        at
org.apache.tapestry5.internal.jpa.EntityManagerSourceImpl.create(EntityManagerSourceImpl.java:276)
        at $EntityManagerSource_132c0c615bb9bda5.create(Unknown Source)
        at
org.apache.tapestry5.internal.jpa.EntityManagerManagerImpl.getOrCreateEntityManager(EntityManagerManagerImpl.java:78)
        at
org.apache.tapestry5.internal.jpa.EntityManagerManagerImpl.getEntityManager(EntityManagerManagerImpl.java:51)
        at $EntityManagerManager_132c0c615bb9bda4.getEntityManager(Unknown Source)
        at $EntityManagerManager_132c0c615bb9bda3.getEntityManager(Unknown Source)
        at
org.apache.tapestry5.internal.jpa.JpaInternalUtils.getEntityManager(JpaInternalUtils.java:85)
        at
org.apache.tapestry5.internal.jpa.PersistenceContextWorker$1.get(PersistenceContextWorker.java:50)
        at
de.aeits.tapestryweb.pages.Customers.conduit_get_entityManager(Customers.java)
        at
de.aeits.tapestryweb.pages.Customers.advised$getCustomers_132c0c615bb9bde5(Customers.java:34)
        at
de.aeits.tapestryweb.pages.Customers$Invocation_getCustomers_132c0c615bb9bde4.proceedToAdvisedMethod(Unknown
Source)
        at
org.apache.tapestry5.internal.plastic.AbstractMethodInvocation.proceed(AbstractMethodInvocation.java:84)
        at
org.apache.tapestry5.ioc.internal.services.LoggingAdvice.advise(LoggingAdvice.java:45)
        at
org.apache.tapestry5.internal.plastic.AbstractMethodInvocation.proceed(AbstractMethodInvocation.java:86)
        at de.aeits.tapestryweb.pages.Customers.getCustomers(Customers.java)
        at $InternalPropertyConduit_132c0c615bb9be59.get(Unknown Source)
        at
org.apache.tapestry5.internal.bindings.PropBinding.get(PropBinding.java:59)
        ... 95 more]]

--
ae | Andreas Ernst | IT Spektrum
Postfach 5, 65612 Beselich
Schupbacher Str. 32, 65614 Beselich, Germany
Tel: +49-6484-91002 Fax: +49-6484-91003
[hidden email] | www.ae-online.de
www.tachyon-online.de

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: JPA

Dmitry Gusev
What is the name and location of your persistence.xml file?

Is it src/main/resources/META-INF/persistence.xml ?

It looks like it can't find any PUs with the given name in your
configuration:

https://github.com/apache/tapestry-5/blob/master/tapestry-jpa/src/main/java/org/apache/tapestry5/internal/jpa/EntityManagerSourceImpl.java#L212-L214


On Fri, Oct 11, 2013 at 4:38 PM, Andreas Ernst <[hidden email]> wrote:

> Am 11.10.13 13:52, schrieb Dmitry Gusev:
>
>> java.lang.****IllegalStateException: Failed to create
>>> EntityManagerFactory
>>>
>> for persistence unit 'de.aeits_TapestryWeb_war_1.0-****SNAPSHOTPU'
>>
>>
>> there should be "Caused by:" part of this stacktrace -- can you share that
>> too?
>>
>>   From my understanding of the docu, i only have to add the persistence
>>>
>> class to the entities package, right?
>>
>> Right, but you don't even have to put your entities to the "entities"
>> package provided that you specify your persisted classes in your
>> persistence.xml. Which you actually did, but you also have this line in
>> there:
>>
>> <exclude-unlisted-classes>****false</exclude-unlisted-****classes>
>>
>>
>> which is not necessary if you specified full list of persisted classes
>> there. I'd say more, that having this exclude-unlisted-**classes=**false
>> may
>>
>> increase start-up time for your application significantly.
>>
>
> Thanks for that.
>
> Here is the full stacktrace:
>
>
> java.lang.**IllegalStateException: Failed to create EntityManagerFactory
> for persistence unit 'de.aeits_TapestryWeb_war_1.0-**SNAPSHOTPU'
>         at org.apache.tapestry5.internal.**jpa.EntityManagerSourceImpl.**
> createEntityManagerFactory(**EntityManagerSourceImpl.java:**212)
>         at org.apache.tapestry5.internal.**jpa.EntityManagerSourceImpl.**
> getEntityManagerFactory(**EntityManagerSourceImpl.java:**185)
>         at org.apache.tapestry5.internal.**jpa.EntityManagerSourceImpl.**
> create(**EntityManagerSourceImpl.java:**276)
>         at $EntityManagerSource_**132c0c615bb9bda5.create(**Unknown
> Source)
>         at org.apache.tapestry5.internal.**jpa.EntityManagerManagerImpl.**
> getOrCreateEntityManager(**EntityManagerManagerImpl.java:**78)
>         at org.apache.tapestry5.internal.**jpa.EntityManagerManagerImpl.**
> getEntityManager(**EntityManagerManagerImpl.java:**51)
>         at $EntityManagerManager_**132c0c615bb9bda4.**getEntityManager(Unknown
> Source)
>         at $EntityManagerManager_**132c0c615bb9bda3.**getEntityManager(Unknown
> Source)
>         at org.apache.tapestry5.internal.**jpa.JpaInternalUtils.**
> getEntityManager(**JpaInternalUtils.java:85)
>         at org.apache.tapestry5.internal.**jpa.PersistenceContextWorker$**
> 1.get(**PersistenceContextWorker.java:**50)
>         at de.aeits.tapestryweb.pages.**Customers.conduit_get_**
> entityManager(Customers.java)
>         at de.aeits.tapestryweb.pages.**Customers.advised$**
> getCustomers_132c0c615bb9bde5(**Customers.java:34)
>         at de.aeits.tapestryweb.pages.**Customers$Invocation_**
> getCustomers_132c0c615bb9bde4.**proceedToAdvisedMethod(Unknown Source)
>         at org.apache.tapestry5.internal.**plastic.**
> AbstractMethodInvocation.**proceed(**AbstractMethodInvocation.java:**84)
>         at org.apache.tapestry5.ioc.**internal.services.**
> LoggingAdvice.advise(**LoggingAdvice.java:45)
>         at org.apache.tapestry5.internal.**plastic.**
> AbstractMethodInvocation.**proceed(**AbstractMethodInvocation.java:**86)
>         at de.aeits.tapestryweb.pages.**Customers.getCustomers(**
> Customers.java)
>         at $InternalPropertyConduit_**132c0c615bb9be59.get(Unknown Source)
>         at org.apache.tapestry5.internal.**bindings.PropBinding.get(**
> PropBinding.java:59)
>         at org.apache.tapestry5.internal.**transform.ParameterWorker$3$1.*
> *readFromBinding(**ParameterWorker.java:254)
>         at org.apache.tapestry5.internal.**transform.ParameterWorker$3$1.*
> *get(ParameterWorker.java:372)
>         at org.apache.tapestry5.corelib.**components.Grid.conduit_get_**
> source(Grid.java)
>         at org.apache.tapestry5.corelib.**components.Grid.**
> setupDataSource(Grid.java:461)
>         at org.apache.tapestry5.corelib.**components.Grid.setupRender(**
> Grid.java:447)
>         at org.apache.tapestry5.corelib.**components.Grid.setupRender(**
> Grid.java)
>         at org.apache.tapestry5.internal.**structure.**
> ComponentPageElementImpl$**SetupRenderPhase.**invokeComponent(**
> ComponentPageElementImpl.java:**174)
>         at org.apache.tapestry5.internal.**structure.**
> ComponentPageElementImpl$**AbstractPhase.invoke(**
> ComponentPageElementImpl.java:**133)
>         at org.apache.tapestry5.internal.**structure.**
> ComponentPageElementImpl$**SetupRenderPhase.render(**
> ComponentPageElementImpl.java:**181)
>         at org.apache.tapestry5.internal.**services.RenderQueueImpl.run(**
> RenderQueueImpl.java:72)
>         at org.apache.tapestry5.internal.**services.PageRenderQueueImpl.**
> render(PageRenderQueueImpl.**java:124)
>         at $PageRenderQueue_**132c0c615bb9be64.render(**Unknown Source)
>         at $PageRenderQueue_**132c0c615bb9be63.render(**Unknown Source)
>         at org.apache.tapestry5.internal.**services.**
> MarkupRendererTerminator.**renderMarkup(**MarkupRendererTerminator.java:**
> 37)
>         at org.apache.tapestry5.services.**TapestryModule$30.**
> renderMarkup(TapestryModule.**java:1979)
>         at $MarkupRenderer_**132c0c615bb9be67.renderMarkup(**Unknown
> Source)
>         at org.apache.tapestry5.services.**TapestryModule$29.**
> renderMarkup(TapestryModule.**java:1963)
>         at $MarkupRenderer_**132c0c615bb9be67.renderMarkup(**Unknown
> Source)
>         at org.apache.tapestry5.services.**TapestryModule$28.**
> renderMarkup(TapestryModule.**java:1945)
>         at $MarkupRenderer_**132c0c615bb9be67.renderMarkup(**Unknown
> Source)
>         at org.apache.tapestry5.services.**TapestryModule$27.**
> renderMarkup(TapestryModule.**java:1930)
>         at $MarkupRenderer_**132c0c615bb9be67.renderMarkup(**Unknown
> Source)
>         at org.apache.tapestry5.services.**TapestryModule$26.**
> renderMarkup(TapestryModule.**java:1916)
>         at $MarkupRenderer_**132c0c615bb9be67.renderMarkup(**Unknown
> Source)
>         at org.apache.tapestry5.services.**TapestryModule$25.**
> renderMarkup(TapestryModule.**java:1898)
>         at $MarkupRenderer_**132c0c615bb9be67.renderMarkup(**Unknown
> Source)
>         at org.apache.tapestry5.services.**TapestryModule$24.**
> renderMarkup(TapestryModule.**java:1879)
>         at $MarkupRenderer_**132c0c615bb9be67.renderMarkup(**Unknown
> Source)
>         at $MarkupRenderer_**132c0c615bb9be62.renderMarkup(**Unknown
> Source)
>         at org.apache.tapestry5.internal.**services.**
> PageMarkupRendererImpl.**renderPageMarkup(**PageMarkupRendererImpl.java:**
> 47)
>         at $PageMarkupRenderer_**132c0c615bb9be60.**renderPageMarkup(Unknown
> Source)
>         at org.apache.tapestry5.internal.**services.**
> PageResponseRendererImpl.**renderPageResponse(**
> PageResponseRendererImpl.java:**67)
>         at $PageResponseRenderer_**132c0c615bb9bded.**renderPageResponse(Unknown
> Source)
>         at org.apache.tapestry5.internal.**services.**
> PageRenderRequestHandlerImpl.**handle(**PageRenderRequestHandlerImpl.**
> java:64)
>         at org.apache.tapestry5.services.**TapestryModule$37.handle(**
> TapestryModule.java:2207)
>         at $PageRenderRequestHandler_**132c0c615bb9bdef.handle(**Unknown
> Source)
>         at $PageRenderRequestHandler_**132c0c615bb9bde9.handle(**Unknown
> Source)
>         at org.apache.tapestry5.internal.**services.**
> ComponentRequestHandlerTermina**tor.handlePageRender(**
> ComponentRequestHandlerTermina**tor.java:48)
>         at org.apache.tapestry5.services.**InitializeActivePageName.**
> handlePageRender(**InitializeActivePageName.java:**47)
>         at $ComponentRequestHandler_**132c0c615bb9bdea.**handlePageRender(Unknown
> Source)
>         at $ComponentRequestHandler_**132c0c615bb9bdbe.**handlePageRender(Unknown
> Source)
>         at org.apache.tapestry5.internal.**services.PageRenderDispatcher.*
> *dispatch(PageRenderDispatcher.**java:45)
>         at $Dispatcher_132c0c615bb9bdc1.**dispatch(Unknown Source)
>         at $Dispatcher_132c0c615bb9bdbb.**dispatch(Unknown Source)
>         at org.apache.tapestry5.services.**TapestryModule$**
> RequestHandlerTerminator.**service(TapestryModule.java:**302)
>         at de.aeits.tapestryweb.services.**AppModule$1.service(AppModule.*
> *java:84)
>         at $RequestFilter_**132c0c615bb9bdba.service(**Unknown Source)
>         at $RequestHandler_**132c0c615bb9bdbc.service(**Unknown Source)
>         at org.apache.tapestry5.internal.**services.RequestErrorFilter.**
> service(RequestErrorFilter.**java:26)
>         at $RequestHandler_**132c0c615bb9bdbc.service(**Unknown Source)
>         at org.apache.tapestry5.services.**TapestryModule$3.service(**
> TapestryModule.java:902)
>         at $RequestHandler_**132c0c615bb9bdbc.service(**Unknown Source)
>         at org.apache.tapestry5.services.**TapestryModule$2.service(**
> TapestryModule.java:892)
>         at $RequestHandler_**132c0c615bb9bdbc.service(**Unknown Source)
>         at org.apache.tapestry5.internal.**services.StaticFilesFilter.**
> service(StaticFilesFilter.**java:90)
>         at $RequestHandler_**132c0c615bb9bdbc.service(**Unknown Source)
>         at $RequestHandler_**132c0c615bb9bdb0.service(**Unknown Source)
>         at org.apache.tapestry5.services.**TapestryModule$**
> HttpServletRequestHandlerTermi**nator.service(TapestryModule.**java:253)
>         at org.apache.tapestry5.internal.**gzip.GZipFilter.service(**
> GZipFilter.java:53)
>         at $HttpServletRequestHandler_**132c0c615bb9bdb2.service(**Unknown
> Source)
>         at org.apache.tapestry5.internal.**services.IgnoredPathsFilter.**
> service(IgnoredPathsFilter.**java:62)
>         at $HttpServletRequestFilter_**132c0c615bb9bdae.service(**Unknown
> Source)
>         at $HttpServletRequestHandler_**132c0c615bb9bdb2.service(**Unknown
> Source)
>         at org.apache.tapestry5.services.**TapestryModule$1.service(**
> TapestryModule.java:852)
>         at $HttpServletRequestHandler_**132c0c615bb9bdb2.service(**Unknown
> Source)
>         at $HttpServletRequestHandler_**132c0c615bb9bdad.service(**Unknown
> Source)
>         at org.apache.tapestry5.**TapestryFilter.doFilter(**
> TapestryFilter.java:171)
>         at org.apache.catalina.core.**ApplicationFilterChain.**
> internalDoFilter(**ApplicationFilterChain.java:**256)
>         at org.apache.catalina.core.**ApplicationFilterChain.**doFilter(**
> ApplicationFilterChain.java:**214)
>         at org.apache.catalina.core.**StandardWrapperValve.invoke(**
> StandardWrapperValve.java:316)
>         at org.apache.catalina.core.**StandardContextValve.invoke(**
> StandardContextValve.java:160)
>         at org.apache.catalina.core.**StandardPipeline.doInvoke(**
> StandardPipeline.java:734)
>         at org.apache.catalina.core.**StandardPipeline.invoke(**
> StandardPipeline.java:67]]
>
> [2013-10-11T14:35:17.239+0200] [glassfish 4.0] [INFO] [] [] [tid:
> _ThreadID=76 _ThreadName=Thread-3] [timeMillis: 1381494917239] [levelValue:
> 800] [[
>   3)
>         at com.sun.enterprise.web.**WebPipeline.invoke(**
> WebPipeline.java:99)
>         at org.apache.catalina.core.**StandardHostValve.invoke(**
> StandardHostValve.java:174)
>         at org.apache.catalina.connector.**CoyoteAdapter.doService(**
> CoyoteAdapter.java:357)
>         at org.apache.catalina.connector.**CoyoteAdapter.service(**
> CoyoteAdapter.java:260)
>         at com.sun.enterprise.v3.**services.impl.ContainerMapper.**
> service(ContainerMapper.java:**188)
>         at org.glassfish.grizzly.http.**server.HttpHandler.runService(**
> HttpHandler.java:191)
>         at org.glassfish.grizzly.http.**server.HttpHandler.doHandle(**
> HttpHandler.java:168)
>         at org.glassfish.grizzly.http.**server.HttpServerFilter.**
> handleRead(HttpServerFilter.**java:189)
>         at org.glassfish.grizzly.**filterchain.ExecutorResolver$**
> 9.execute(ExecutorResolver.**java:119)
>         at org.glassfish.grizzly.**filterchain.**DefaultFilterChain.**
> executeFilter(**DefaultFilterChain.java:288)
>         at org.glassfish.grizzly.**filterchain.**DefaultFilterChain.**
> executeChainPart(**DefaultFilterChain.java:206)
>         at org.glassfish.grizzly.**filterchain.**
> DefaultFilterChain.execute(**DefaultFilterChain.java:136)
>         at org.glassfish.grizzly.**filterchain.**
> DefaultFilterChain.process(**DefaultFilterChain.java:114)
>         at org.glassfish.grizzly.**ProcessorExecutor.execute(**
> ProcessorExecutor.java:77)
>         at org.glassfish.grizzly.nio.**transport.TCPNIOTransport.**
> fireIOEvent(TCPNIOTransport.**java:838)
>         at org.glassfish.grizzly.**strategies.AbstractIOStrategy.**
> fireIOEvent(**AbstractIOStrategy.java:113)
>         at org.glassfish.grizzly.**strategies.**
> WorkerThreadIOStrategy.run0(**WorkerThreadIOStrategy.java:**115)
>         at org.glassfish.grizzly.**strategies.**
> WorkerThreadIOStrategy.access$**100(WorkerThreadIOStrategy.**java:55)
>         at org.glassfish.grizzly.**strategies.**WorkerThreadIOStrategy$**
> WorkerThreadRunnable.run(**WorkerThreadIOStrategy.java:**135)
>         at org.glassfish.grizzly.**threadpool.AbstractThreadPool$**
> Worker.doWork(**AbstractThreadPool.java:564)
>         at org.glassfish.grizzly.**threadpool.AbstractThreadPool$**
> Worker.run(AbstractThreadPool.**java:544)
>         at java.lang.Thread.run(Thread.**java:724)]]
>
> [2013-10-11T14:35:17.262+0200] [glassfish 4.0] [INFO] [] [] [tid:
> _ThreadID=76 _ThreadName=Thread-3] [timeMillis: 1381494917262] [levelValue:
> 800] [[
>   [ERROR] pages.Customers Render queue error in
> SetupRender[Customers:grid]: Failure reading parameter 'source' of
> component Customers:grid: Failed to create EntityManagerFactory for
> persistence unit 'de.aeits_TapestryWeb_war_1.0-**SNAPSHOTPU'
> org.apache.tapestry5.ioc.**internal.util.**TapestryException: Failure
> reading parameter 'source' of component Customers:grid: Failed to create
> EntityManagerFactory for persistence unit 'de.aeits_TapestryWeb_war_1.0-**SNAPSHOTPU'
> [at classpath:de/aeits/**tapestryweb/pages/Customers.**tml, line 12]
>         at org.apache.tapestry5.internal.**structure.**
> ComponentPageElementImpl$**AbstractPhase.invoke(**
> ComponentPageElementImpl.java:**153)
>         at org.apache.tapestry5.internal.**structure.**
> ComponentPageElementImpl$**SetupRenderPhase.render(**
> ComponentPageElementImpl.java:**181)
>         at org.apache.tapestry5.internal.**services.RenderQueueImpl.run(**
> RenderQueueImpl.java:72)
>         at org.apache.tapestry5.internal.**services.PageRenderQueueImpl.**
> render(PageRenderQueueImpl.**java:124)
>         at $PageRenderQueue_**132c0c615bb9be64.render(**Unknown Source)
>         at $PageRenderQueue_**132c0c615bb9be63.render(**Unknown Source)
>         at org.apache.tapestry5.internal.**services.**
> MarkupRendererTerminator.**renderMarkup(**MarkupRendererTerminator.java:**
> 37)
>         at org.apache.tapestry5.services.**TapestryModule$30.**
> renderMarkup(TapestryModule.**java:1979)
>         at $MarkupRenderer_**132c0c615bb9be67.renderMarkup(**Unknown
> Source)
>         at org.apache.tapestry5.services.**TapestryModule$29.**
> renderMarkup(TapestryModule.**java:1963)
>         at $MarkupRenderer_**132c0c615bb9be67.renderMarkup(**Unknown
> Source)
>         at org.apache.tapestry5.services.**TapestryModule$28.**
> renderMarkup(TapestryModule.**java:1945)
>         at $MarkupRenderer_**132c0c615bb9be67.renderMarkup(**Unknown
> Source)
>         at org.apache.tapestry5.services.**TapestryModule$27.**
> renderMarkup(TapestryModule.**java:1930)
>         at $MarkupRenderer_**132c0c615bb9be67.renderMarkup(**Unknown
> Source)
>         at org.apache.tapestry5.services.**TapestryModule$26.**
> renderMarkup(TapestryModule.**java:1916)
>         at $MarkupRenderer_**132c0c615bb9be67.renderMarkup(**Unknown
> Source)
>         at org.apache.tapestry5.services.**TapestryModule$25.**
> renderMarkup(TapestryModule.**java:1898)
>         at $MarkupRenderer_**132c0c615bb9be67.renderMarkup(**Unknown
> Source)
>         at org.apache.tapestry5.services.**TapestryModule$24.**
> renderMarkup(TapestryModule.**java:1879)
>         at $MarkupRenderer_**132c0c615bb9be67.renderMarkup(**Unknown
> Source)
>         at $MarkupRenderer_**132c0c615bb9be62.renderMarkup(**Unknown
> Source)
>         at org.apache.tapestry5.internal.**services.**
> PageMarkupRendererImpl.**renderPageMarkup(**PageMarkupRendererImpl.java:**
> 47)
>         at $PageMarkupRenderer_**132c0c615bb9be60.**renderPageMarkup(Unknown
> Source)
>         at org.apache.tapestry5.internal.**services.**
> PageResponseRendererImpl.**renderPageResponse(**
> PageResponseRendererImpl.java:**67)
>         at $PageResponseRenderer_**132c0c615bb9bded.**renderPageResponse(Unknown
> Source)
>         at org.apache.tapestry5.internal.**services.**
> PageRenderRequestHandlerImpl.**handle(**PageRenderRequestHandlerImpl.**
> java:64)
>         at org.apache.tapestry5.services.**TapestryModule$37.handle(**
> TapestryModule.java:2207)
>         at $PageRenderRequestHandler_**132c0c615bb9bdef.handle(**Unknown
> Source)
>         at $PageRenderRequestHandler_**132c0c615bb9bde9.handle(**Unknown
> Source)
>         at org.apache.tapestry5.internal.**services.**
> ComponentRequestHandlerTermina**tor.handlePageRender(**
> ComponentRequestHandlerTermina**tor.java:48)
>         at org.apache.tapestry5.services.**InitializeActivePageName.**
> handlePageRender(**InitializeActivePageName.java:**47)
>         at $ComponentRequestHandler_**132c0c615bb9bdea.**handlePageRender(Unknown
> Source)
>         at $ComponentRequestHandler_**132c0c615bb9bdbe.**handlePageRender(Unknown
> Source)
>         at org.apache.tapestry5.internal.**services.PageRenderDispatcher.*
> *dispatch(PageRenderDispatcher.**java:45)
>         at $Dispatcher_132c0c615bb9bdc1.**dispatch(Unknown Source)
>         at $Dispatcher_132c0c615bb9bdbb.**dispatch(Unknown Source)
>         at org.apache.tapestry5.services.**TapestryModule$**
> RequestHandlerTerminator.**service(TapestryModule.java:**302)
>         at de.aeits.tapestryweb.services.**AppModule$1.service(AppModule.*
> *java:84)
>         at $RequestFilter_**132c0c615bb9bdba.service(**Unknown Source)
>         at $RequestHandler_**132c0c615bb9bdbc.service(**Unknown Source)
>         at org.apache.tapestry5.internal.**services.RequestErrorFilter.**
> service(RequestErrorFilter.**java:26)
>         at $RequestHandler_**132c0c615bb9bdbc.service(**Unknown Source)
>         at org.apache.tapestry5.services.**TapestryModule$3.service(**
> TapestryModule.java:902)
>         at $RequestHandler_**132c0c615bb9bdbc.service(**Unknown Source)
>         at org.apache.tapestry5.services.**TapestryModule$2.service(**
> TapestryModule.java:892)
>         at $RequestHandler_**132c0c615bb9bdbc.service(**Unknown Source)
>         at org.apache.tapestry5.internal.**services.StaticFilesFilter.**
> service(StaticFilesFilter.**java:90)
>         at $RequestHandler_**132c0c615bb9bdbc.service(**Unknown Source)
>         at $RequestHandler_**132c0c615bb9bdb0.service(**Unknown Source)
>         at org.apache.tapestry5.services.**TapestryModule$**
> HttpServletRequestHandlerTermi**nator.service(TapestryModule.**java:253)
>         at org.apache.tapestry5.internal.**gzip.GZipFilter.service(**
> GZipFilter.java:53)
>         at $HttpServletRequestHandler_**132c0c615bb9bdb2.service(**Unknown
> Source)
>         at org.apache.tapestry5.internal.**services.IgnoredPathsFilter.**
> service(IgnoredPathsFilter.**java:62)
>         at $HttpServletRequestFilter_**132c0c615bb9bdae.service(**Unknown
> Source)
>         at $HttpServletRequestHandler_**132c0c615bb9bdb2.service(**Unknown
> Source)
>         at org.apache.tapestry5.services.**TapestryModule$1.service(**
> TapestryModule.java:852)
>         at $HttpServletRequestHandler_**132c0c615bb9bdb2.service(**Unknown
> Source)
>         at $HttpServletRequestHandler_**132c0c615bb9bdad.service(**Unknown
> Source)
>         at org.apache.tapestry5.**TapestryFilter.doFilter(**
> TapestryFilter.java:171)
>         at org.apache.catalina.core.**ApplicationFilterChain.**
> internalDoFilter(**ApplicationFilterChain.java:**256)
>         at org.apache.catalina.core.**ApplicationFilterChain.**doFilter(**
> ApplicationFilterChain.java:**214)
>         at org.apache.catalina.core.**StandardWrapperValve.invoke(**
> StandardWrapperValve.java:316)
>         at org.apache.catalina.core.**StandardContextValve.invoke(**
> StandardContextValve.java:160)
>         at org.apache.catalina.core.**StandardPipeline.doInvoke(**
> StandardPipeline.java:734)
>         at org.apache.catalina.core.**StandardPipeline.invoke(**
> StandardPipeline.java:673)
>         at com.sun.enterprise.web.**WebPipeline.invoke(**
> WebPipeline.java:99)
>         at org.apache.catalina.core.**StandardHostValve.invoke(**
> StandardHostValve.java:174)
>         at org.apache.catalina.connector.**CoyoteAdapter.doService(**
> CoyoteAdapter.java:357)
>         at org.apache.catalina.connector.**CoyoteAdapter.service(**
> CoyoteAdapter.java:260)
>         at com.sun.enterprise.v3.**services.impl.ContainerMapper.**
> service(ContainerMapper.java:**188)
>         at org.glassfish.grizzly.http.**server.HttpHandler.runService(**
> HttpHandler.java:191)
>         at org.glassfish.grizzly.http.**server.HttpHandler.doHandle(**
> HttpHandler.java:168)
>         at org.glassfish.grizzly.http.**server.HttpServerFilter.**
> handleRead(HttpServerFilter.**java:189)
>         at org.glassfish.grizzly.**filterchain.ExecutorResolver$**
> 9.execute(ExecutorResolver.**java:119)
>         at org.glassfish.grizzly.**filterchain.**DefaultFilterChain.**
> executeFilter(**DefaultFilterChain.java:288)
>         at org.glassfish.grizzly.**filterchain.**DefaultFilterChain.**
> executeChainPart(**DefaultFilterChain.java:206)
>         at org.glassfish.grizzly.**filterchain.**
> DefaultFilterChain.execute(**DefaultFilterChain.java:136)
>         at org.glassfish.grizzly.**filterchain.**
> DefaultFilterChain.process(**DefaultFilterChain.java:114)
>         at org.glassfish.grizzly.**ProcessorExecutor.execute(**
> ProcessorExecutor.java:77)
>         at org.glassfish.grizzly.nio.**transport.TCPNIOTransport.**
> fireIOEvent(TCPNIOTransport.**java:838)
>         at org.glassfish.grizzly.**strategies.AbstractIOStrategy.**
> fireIOEvent(**AbstractIOStrategy.java:113)
>         at org.glassfish.grizzly.**strategies.**
> WorkerThreadIOStrategy.run0(**WorkerThreadIOStrategy.java:**115)
>         at org.glassfish.grizzly.**strategies.**
> WorkerThreadIOStrategy.access$**100(WorkerThreadIOStrategy.**java:55)
>         at org.glassfish.grizzly.**strategies.**WorkerThreadIOStrategy$**
> WorkerThreadRunnable.run(**WorkerThreadIOStrategy.java:**135)
>         at org.glassfish.grizzly.**threadpool.AbstractThreadPool$**
> Worker.doWork(**AbstractThreadPool.java:564)
>         at org.glassfish.grizzly.**threadpool.AbstractThreadPool$**
> Worker.run(AbstractThreadPool.**java:544)
>         at java.lang.Thread.run(Thread.**java:724)
> Caused by: org.apache.tapestry5.ioc.**internal.util.**TapestryException:
> Failure reading parameter 'source' of component Customers:grid: Failed to
> create EntityManagerFactory for persistence]]
>
> [2013-10-11T14:35:17.262+0200] [glassfish 4.0] [INFO] [] [] [tid:
> _ThreadID=76 _ThreadName=Thread-3] [timeMillis: 1381494917262] [levelValue:
> 800] [[
>   unit 'de.aeits_TapestryWeb_war_1.0-**SNAPSHOTPU' [at classpath:de/aeits/
> **tapestryweb/pages/Customers.**tml, line 12]
>         at org.apache.tapestry5.internal.**transform.ParameterWorker$3$1.*
> *readFromBinding(**ParameterWorker.java:259)
>         at org.apache.tapestry5.internal.**transform.ParameterWorker$3$1.*
> *get(ParameterWorker.java:372)
>         at org.apache.tapestry5.corelib.**components.Grid.conduit_get_**
> source(Grid.java)
>         at org.apache.tapestry5.corelib.**components.Grid.**
> setupDataSource(Grid.java:461)
>         at org.apache.tapestry5.corelib.**components.Grid.setupRender(**
> Grid.java:447)
>         at org.apache.tapestry5.corelib.**components.Grid.setupRender(**
> Grid.java)
>         at org.apache.tapestry5.internal.**structure.**
> ComponentPageElementImpl$**SetupRenderPhase.**invokeComponent(**
> ComponentPageElementImpl.java:**174)
>         at org.apache.tapestry5.internal.**structure.**
> ComponentPageElementImpl$**AbstractPhase.invoke(**
> ComponentPageElementImpl.java:**133)
>         ... 87 more
> Caused by: org.apache.tapestry5.ioc.**internal.util.**TapestryException:
> Failed to create EntityManagerFactory for persistence unit
> 'de.aeits_TapestryWeb_war_1.0-**SNAPSHOTPU' [at classpath:de/aeits/**
> tapestryweb/pages/Customers.**tml, line 12]
>         at org.apache.tapestry5.internal.**bindings.PropBinding.get(**
> PropBinding.java:63)
>         at org.apache.tapestry5.internal.**transform.ParameterWorker$3$1.*
> *readFromBinding(**ParameterWorker.java:254)
>         ... 94 more
> Caused by: java.lang.**IllegalStateException: Failed to create
> EntityManagerFactory for persistence unit 'de.aeits_TapestryWeb_war_1.0-**
> SNAPSHOTPU'
>
>         at org.apache.tapestry5.internal.**jpa.EntityManagerSourceImpl.**
> createEntityManagerFactory(**EntityManagerSourceImpl.java:**212)
>         at org.apache.tapestry5.internal.**jpa.EntityManagerSourceImpl.**
> getEntityManagerFactory(**EntityManagerSourceImpl.java:**185)
>         at org.apache.tapestry5.internal.**jpa.EntityManagerSourceImpl.**
> create(**EntityManagerSourceImpl.java:**276)
>         at $EntityManagerSource_**132c0c615bb9bda5.create(**Unknown
> Source)
>         at org.apache.tapestry5.internal.**jpa.EntityManagerManagerImpl.**
> getOrCreateEntityManager(**EntityManagerManagerImpl.java:**78)
>         at org.apache.tapestry5.internal.**jpa.EntityManagerManagerImpl.**
> getEntityManager(**EntityManagerManagerImpl.java:**51)
>         at $EntityManagerManager_**132c0c615bb9bda4.**getEntityManager(Unknown
> Source)
>         at $EntityManagerManager_**132c0c615bb9bda3.**getEntityManager(Unknown
> Source)
>         at org.apache.tapestry5.internal.**jpa.JpaInternalUtils.**
> getEntityManager(**JpaInternalUtils.java:85)
>         at org.apache.tapestry5.internal.**jpa.PersistenceContextWorker$**
> 1.get(**PersistenceContextWorker.java:**50)
>         at de.aeits.tapestryweb.pages.**Customers.conduit_get_**
> entityManager(Customers.java)
>         at de.aeits.tapestryweb.pages.**Customers.advised$**
> getCustomers_132c0c615bb9bde5(**Customers.java:34)
>         at de.aeits.tapestryweb.pages.**Customers$Invocation_**
> getCustomers_132c0c615bb9bde4.**proceedToAdvisedMethod(Unknown Source)
>         at org.apache.tapestry5.internal.**plastic.**
> AbstractMethodInvocation.**proceed(**AbstractMethodInvocation.java:**84)
>         at org.apache.tapestry5.ioc.**internal.services.**
> LoggingAdvice.advise(**LoggingAdvice.java:45)
>         at org.apache.tapestry5.internal.**plastic.**
> AbstractMethodInvocation.**proceed(**AbstractMethodInvocation.java:**86)
>         at de.aeits.tapestryweb.pages.**Customers.getCustomers(**
> Customers.java)
>         at $InternalPropertyConduit_**132c0c615bb9be59.get(Unknown Source)
>         at org.apache.tapestry5.internal.**bindings.PropBinding.get(**
> PropBinding.java:59)
>         ... 95 more]]
>
> [2013-10-11T14:35:17.263+0200] [glassfish 4.0] [INFO] [] [] [tid:
> _ThreadID=76 _ThreadName=Thread-3] [timeMillis: 1381494917263] [levelValue:
> 800] [[
>   [INFO] AppModule.TimingFilter Request time: 2173 ms]]
>
> [2013-10-11T14:35:17.269+0200] [glassfish 4.0] [INFO] [] [] [tid:
> _ThreadID=76 _ThreadName=Thread-3] [timeMillis: 1381494917269] [levelValue:
> 800] [[
>   [ERROR] TapestryModule.**RequestExceptionHandler Processing of request
> failed with uncaught exception: Render queue error in
> SetupRender[Customers:grid]: Failure reading parameter 'source' of
> component Customers:grid: Failed to create EntityManagerFactory for
> persistence unit 'de.aeits_TapestryWeb_war_1.0-**SNAPSHOTPU'
> org.apache.tapestry5.internal.**services.RenderQueueException: Render
> queue error in SetupRender[Customers:grid]: Failure reading parameter
> 'source' of component Customers:grid: Failed to create EntityManagerFactory
> for persistence unit 'de.aeits_TapestryWeb_war_1.0-**SNAPSHOTPU' [at
> classpath:de/aeits/**tapestryweb/pages/Customers.**tml, line 12]
>         at org.apache.tapestry5.internal.**services.RenderQueueImpl.run(**
> RenderQueueImpl.java:81)
>         at org.apache.tapestry5.internal.**services.PageRenderQueueImpl.**
> render(PageRenderQueueImpl.**java:124)
>         at $PageRenderQueue_**132c0c615bb9be64.render(**Unknown Source)
>         at $PageRenderQueue_**132c0c615bb9be63.render(**Unknown Source)
>         at org.apache.tapestry5.internal.**services.**
> MarkupRendererTerminator.**renderMarkup(**MarkupRendererTerminator.java:**
> 37)
>         at org.apache.tapestry5.services.**TapestryModule$30.**
> renderMarkup(TapestryModule.**java:1979)
>         at $MarkupRenderer_**132c0c615bb9be67.renderMarkup(**Unknown
> Source)
>         at org.apache.tapestry5.services.**TapestryModule$29.**
> renderMarkup(TapestryModule.**java:1963)
>         at $MarkupRenderer_**132c0c615bb9be67.renderMarkup(**Unknown
> Source)
>         at org.apache.tapestry5.services.**TapestryModule$28.**
> renderMarkup(TapestryModule.**java:1945)
>         at $MarkupRenderer_**132c0c615bb9be67.renderMarkup(**Unknown
> Source)
>         at org.apache.tapestry5.services.**TapestryModule$27.**
> renderMarkup(TapestryModule.**java:1930)
>         at $MarkupRenderer_**132c0c615bb9be67.renderMarkup(**Unknown
> Source)
>         at org.apache.tapestry5.services.**TapestryModule$26.**
> renderMarkup(TapestryModule.**java:1916)
>         at $MarkupRenderer_**132c0c615bb9be67.renderMarkup(**Unknown
> Source)
>         at org.apache.tapestry5.services.**TapestryModule$25.**
> renderMarkup(TapestryModule.**java:1898)
>         at $MarkupRenderer_**132c0c615bb9be67.renderMarkup(**Unknown
> Source)
>         at org.apache.tapestry5.services.**TapestryModule$24.**
> renderMarkup(TapestryModule.**java:1879)
>         at $MarkupRenderer_**132c0c615bb9be67.renderMarkup(**Unknown
> Source)
>         at $MarkupRenderer_**132c0c615bb9be62.renderMarkup(**Unknown
> Source)
>         at org.apache.tapestry5.internal.**services.**
> PageMarkupRendererImpl.**renderPageMarkup(**PageMarkupRendererImpl.java:**
> 47)
>         at $PageMarkupRenderer_**132c0c615bb9be60.**renderPageMarkup(Unknown
> Source)
>         at org.apache.tapestry5.internal.**services.**
> PageResponseRendererImpl.**renderPageResponse(**
> PageResponseRendererImpl.java:**67)
>         at $PageResponseRenderer_**132c0c615bb9bded.**renderPageResponse(Unknown
> Source)
>         at org.apache.tapestry5.internal.**services.**
> PageRenderRequestHandlerImpl.**handle(**PageRenderRequestHandlerImpl.**
> java:64)
>         at org.apache.tapestry5.services.**TapestryModule$37.handle(**
> TapestryModule.java:2207)
>         at $PageRenderRequestHandler_**132c0c615bb9bdef.handle(**Unknown
> Source)
>         at $PageRenderRequestHandler_**132c0c615bb9bde9.handle(**Unknown
> Source)
>         at org.apache.tapestry5.internal.**services.**
> ComponentRequestHandlerTermina**tor.handlePageRender(**
> ComponentRequestHandlerTermina**tor.java:48)
>         at org.apache.tapestry5.services.**InitializeActivePageName.**
> handlePageRender(**InitializeActivePageName.java:**47)
>         at $ComponentRequestHandler_**132c0c615bb9bdea.**handlePageRender(Unknown
> Source)
>         at $ComponentRequestHandler_**132c0c615bb9bdbe.**handlePageRender(Unknown
> Source)
>         at org.apache.tapestry5.internal.**services.PageRenderDispatcher.*
> *dispatch(PageRenderDispatcher.**java:45)
>         at $Dispatcher_132c0c615bb9bdc1.**dispatch(Unknown Source)
>         at $Dispatcher_132c0c615bb9bdbb.**dispatch(Unknown Source)
>         at org.apache.tapestry5.services.**TapestryModule$**
> RequestHandlerTerminator.**service(TapestryModule.java:**302)
>         at de.aeits.tapestryweb.services.**AppModule$1.service(AppModule.*
> *java:84)
>         at $RequestFilter_**132c0c615bb9bdba.service(**Unknown Source)
>         at $RequestHandler_**132c0c615bb9bdbc.service(**Unknown Source)
>         at org.apache.tapestry5.internal.**services.RequestErrorFilter.**
> service(RequestErrorFilter.**java:26)
>         at $RequestHandler_**132c0c615bb9bdbc.service(**Unknown Source)
>         at org.apache.tapestry5.services.**TapestryModule$3.service(**
> TapestryModule.java:902)
>         at $RequestHandler_**132c0c615bb9bdbc.service(**Unknown Source)
>         at org.apache.tapestry5.services.**TapestryModule$2.service(**
> TapestryModule.java:892)
>         at $RequestHandler_**132c0c615bb9bdbc.service(**Unknown Source)
>         at org.apache.tapestry5.internal.**services.StaticFilesFilter.**
> service(StaticFilesFilter.**java:90)
>         at $RequestHandler_**132c0c615bb9bdbc.service(**Unknown Source)
>         at $RequestHandler_**132c0c615bb9bdb0.service(**Unknown Source)
>         at org.apache.tapestry5.services.**TapestryModule$**
> HttpServletRequestHandlerTermi**nator.service(TapestryModule.**java:253)
>         at org.apache.tapestry5.internal.**gzip.GZipFilter.service(**
> GZipFilter.java:53)
>         at $HttpServletRequestHandler_**132c0c615bb9bdb2.service(**Unknown
> Source)
>         at org.apache.tapestry5.internal.**services.IgnoredPathsFilter.**
> service(IgnoredPathsFilter.**java:62)
>         at $HttpServletRequestFilter_**132c0c615bb9bdae.service(**Unknown
> Source)
>         at $HttpServletRequestHandler_**132c0c615bb9bdb2.service(**Unknown
> Source)
>         at org.apache.tapestry5.services.**TapestryModule$1.service(**
> TapestryModule.java:852)
>         at $HttpServletRequestHandler_**132c0c615bb9bdb2.service(**Unknown
> Source)
>         at $HttpServletRequestHandler_**132c0c615bb9bdad.service(**Unknown
> Source)
>         at org.apache.tapestry5.**TapestryFilter.doFilter(**
> TapestryFilter.java:171)
>         at org.apache.catalina.core.**ApplicationFilterChain.**
> internalDoFilter(**ApplicationFilterChain.java:**256)
>         at org.apache.catalina.core.**ApplicationFilterChain.**doFilter(**
> ApplicationFilterChain.java:**214)
>         at org.apache.catalina.core.**StandardWrapperValve.invoke(**
> StandardWrapperValve.java:316)
>         at org.apache.catalina.core.**StandardContextValve.invoke(**
> StandardContextValve.java:160)
>         at org.apache.catalina.core.**StandardPipeline.doInvoke(**
> StandardPipeline.java:734)
>         at org.apache.catalina.core.**StandardPipeline.invoke(**
> StandardPipeline.java:673)
>         at com.sun.enterprise.web.**WebPipeline.invoke(**
> WebPipeline.java:99)
>         at org.apache.catalina.core.**StandardHostValve.invoke(**
> StandardHostValve.java:174)
>         at org.apache.catalina.connector.**CoyoteAdapter.doService(**
> CoyoteAdapter.java:357)
>         at org.apache.catalina.connector.**CoyoteAdapter.service(**
> CoyoteAdapter.java:260)
>         at com.sun.enterprise.v3.**services.impl.ContainerMapper.**
> service(ContainerMapper.java:**188)
>         at org.glassfish.grizzly.http.**server.HttpHandler.runService(**
> HttpHandler.java:191)
>         at org.glassfish.grizzly.http.**server.HttpHandler.doHandle(**
> HttpHandler.java:168)
>         at org.glassfish.grizzly.http.**server.HttpServerFilter.**
> handleRead(HttpServerFilter.**java:189)
>         at org.glassfish.grizzly.**filterchain.ExecutorResolver$**
> 9.execute(ExecutorResolver.**java:119)
>         at org.glassfish.grizzly.**filterchain.**DefaultFilterChain.**
> executeFilter(**DefaultFilterChain.java:288)
>         at org.glassfish.grizzly.**filterchain.**DefaultFilterChain.**
> executeChainPart(**DefaultFilterChain.java:206)
>         at org.glassfish.grizzly.**filterchain.**
> DefaultFilterChain.execute(**DefaultFilterChain.java:136)
>         at org.glassfish.grizzly.**filterchain.**
> DefaultFilterChain.process(**DefaultFilterChain.java:114)
>         at org.glassfish.grizzly.**ProcessorExecutor.execute(**
> ProcessorExecutor.java:77)
>         at org.glassfish.grizzly.nio.**transport.TCPNIOTransport.**
> fireIOEvent(TCPNIOTransport.**java:838)
>         at org.glassfish.grizzly.**strategies.AbstractIOStrategy.**
> fireIOEvent(**AbstractIOStrategy.java:113)
>         at org.glassfish.grizzly.**strategies.**
> WorkerThreadIOStrategy.run0(**WorkerThreadIOStrategy.java:**115)
>         at org.glassfish.grizzly.**strategies.**
> WorkerThreadIOStrategy.access$**100(WorkerThreadIOStrategy.**java:55)
>         at org.glassfish.grizzly.**strategies.**WorkerThreadIOStrategy$**
> WorkerThreadRunnable.run(**WorkerThreadIOStrategy.java:**135)
>         at org.glassfish.grizzly.**threadpool.AbstractThreadPool$**
> Worker.doWork(**AbstractThreadPool.java:564)
>         at org.glassfish.grizzly.**threadpool.AbstractThreadPool$**
> Worker.run(AbstractThreadPool.**java:544)
>         at java.lang.Thread.run(Thread.**java:724)
> Caused by: org.apache.tapestry5.ioc.**internal.util.**TapestryException:
> Failure reading parameter 'source' of component Customers:grid: Failed to
> create EntityManagerFactory for persistence unit
> 'de.aeits_TapestryWeb_war_1.0-**SNAPSHOTPU' [at classpath:de/aeits/**
> tapestryweb/pages/Customers.**tml, line 12]
>         at org.ap]]
>
> [2013-10-11T14:35:17.269+0200] [glassfish 4.0] [INFO] [] [] [tid:
> _ThreadID=76 _ThreadName=Thread-3] [timeMillis: 1381494917269] [levelValue:
> 800] [[
>
> ache.tapestry5.internal.**structure.**ComponentPageElementImpl$**
> AbstractPhase.invoke(**ComponentPageElementImpl.java:**153)
>         at org.apache.tapestry5.internal.**structure.**
> ComponentPageElementImpl$**SetupRenderPhase.render(**
> ComponentPageElementImpl.java:**181)
>         at org.apache.tapestry5.internal.**services.RenderQueueImpl.run(**
> RenderQueueImpl.java:72)
>         ... 85 more
> Caused by: org.apache.tapestry5.ioc.**internal.util.**TapestryException:
> Failure reading parameter 'source' of component Customers:grid: Failed to
> create EntityManagerFactory for persistence unit
> 'de.aeits_TapestryWeb_war_1.0-**SNAPSHOTPU' [at classpath:de/aeits/**
> tapestryweb/pages/Customers.**tml, line 12]
>         at org.apache.tapestry5.internal.**transform.ParameterWorker$3$1.*
> *readFromBinding(**ParameterWorker.java:259)
>         at org.apache.tapestry5.internal.**transform.ParameterWorker$3$1.*
> *get(ParameterWorker.java:372)
>         at org.apache.tapestry5.corelib.**components.Grid.conduit_get_**
> source(Grid.java)
>         at org.apache.tapestry5.corelib.**components.Grid.**
> setupDataSource(Grid.java:461)
>         at org.apache.tapestry5.corelib.**components.Grid.setupRender(**
> Grid.java:447)
>         at org.apache.tapestry5.corelib.**components.Grid.setupRender(**
> Grid.java)
>         at org.apache.tapestry5.internal.**structure.**
> ComponentPageElementImpl$**SetupRenderPhase.**invokeComponent(**
> ComponentPageElementImpl.java:**174)
>         at org.apache.tapestry5.internal.**structure.**
> ComponentPageElementImpl$**AbstractPhase.invoke(**
> ComponentPageElementImpl.java:**133)
>         ... 87 more
> Caused by: org.apache.tapestry5.ioc.**internal.util.**TapestryException:
> Failed to create EntityManagerFactory for persistence unit
> 'de.aeits_TapestryWeb_war_1.0-**SNAPSHOTPU' [at classpath:de/aeits/**
> tapestryweb/pages/Customers.**tml, line 12]
>         at org.apache.tapestry5.internal.**bindings.PropBinding.get(**
> PropBinding.java:63)
>         at org.apache.tapestry5.internal.**transform.ParameterWorker$3$1.*
> *readFromBinding(**ParameterWorker.java:254)
>         ... 94 more
> Caused by: java.lang.**IllegalStateException: Failed to create
> EntityManagerFactory for persistence unit 'de.aeits_TapestryWeb_war_1.0-**
> SNAPSHOTPU'
>
>         at org.apache.tapestry5.internal.**jpa.EntityManagerSourceImpl.**
> createEntityManagerFactory(**EntityManagerSourceImpl.java:**212)
>         at org.apache.tapestry5.internal.**jpa.EntityManagerSourceImpl.**
> getEntityManagerFactory(**EntityManagerSourceImpl.java:**185)
>         at org.apache.tapestry5.internal.**jpa.EntityManagerSourceImpl.**
> create(**EntityManagerSourceImpl.java:**276)
>         at $EntityManagerSource_**132c0c615bb9bda5.create(**Unknown
> Source)
>         at org.apache.tapestry5.internal.**jpa.EntityManagerManagerImpl.**
> getOrCreateEntityManager(**EntityManagerManagerImpl.java:**78)
>         at org.apache.tapestry5.internal.**jpa.EntityManagerManagerImpl.**
> getEntityManager(**EntityManagerManagerImpl.java:**51)
>         at $EntityManagerManager_**132c0c615bb9bda4.**getEntityManager(Unknown
> Source)
>         at $EntityManagerManager_**132c0c615bb9bda3.**getEntityManager(Unknown
> Source)
>         at org.apache.tapestry5.internal.**jpa.JpaInternalUtils.**
> getEntityManager(**JpaInternalUtils.java:85)
>         at org.apache.tapestry5.internal.**jpa.PersistenceContextWorker$**
> 1.get(**PersistenceContextWorker.java:**50)
>         at de.aeits.tapestryweb.pages.**Customers.conduit_get_**
> entityManager(Customers.java)
>         at de.aeits.tapestryweb.pages.**Customers.advised$**
> getCustomers_132c0c615bb9bde5(**Customers.java:34)
>         at de.aeits.tapestryweb.pages.**Customers$Invocation_**
> getCustomers_132c0c615bb9bde4.**proceedToAdvisedMethod(Unknown Source)
>         at org.apache.tapestry5.internal.**plastic.**
> AbstractMethodInvocation.**proceed(**AbstractMethodInvocation.java:**84)
>         at org.apache.tapestry5.ioc.**internal.services.**
> LoggingAdvice.advise(**LoggingAdvice.java:45)
>         at org.apache.tapestry5.internal.**plastic.**
> AbstractMethodInvocation.**proceed(**AbstractMethodInvocation.java:**86)
>         at de.aeits.tapestryweb.pages.**Customers.getCustomers(**
> Customers.java)
>         at $InternalPropertyConduit_**132c0c615bb9be59.get(Unknown Source)
>         at org.apache.tapestry5.internal.**bindings.PropBinding.get(**
> PropBinding.java:59)
>         ... 95 more]]
>
>
> --
> ae | Andreas Ernst | IT Spektrum
> Postfach 5, 65612 Beselich
> Schupbacher Str. 32, 65614 Beselich, Germany
> Tel: +49-6484-91002 Fax: +49-6484-91003
> [hidden email] | www.ae-online.de
> www.tachyon-online.de
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.**apache.org<[hidden email]>
> For additional commands, e-mail: [hidden email]
>
>


--
Dmitry Gusev

AnjLab Team
http://anjlab.com
Reply | Threaded
Open this post in threaded view
|

Re: JPA

Andreas Ernst
Am 11.10.13 14:52, schrieb Dmitry Gusev:
> What is the name and location of your persistence.xml file?
>
> Is it src/main/resources/META-INF/persistence.xml ?

Yes, it is:

/Users/andreas/Documents/NetBeansProjects/TapestryWeb/src/main/resources/META-INF/persistence.xml

And deployed under:
/Users/andreas/Documents/NetBeansProjects/TapestryWeb/target/TapestryWeb/WEB-INF/classes/META-INF/persistence.xml


> It looks like it can't find any PUs with the given name in your
> configuration:
>
> https://github.com/apache/tapestry-5/blob/master/tapestry-jpa/src/main/java/org/apache/tapestry5/internal/jpa/EntityManagerSourceImpl.java#L212-L214

Hhmm, but why is this working?

   public List<Customers> getCustomers() {
     factory =
Persistence.createEntityManagerFactory("de.aeits_TapestryWeb_war_1.0-SNAPSHOTPU");
     entityManager = factory.createEntityManager();
     return
entityManager.createNamedQuery("Customer.findAll").getResultList();
   }

Here the PU is found. I checked it just with Tomcat 7, the same error.

--
ae | Andreas Ernst | IT Spektrum
Postfach 5, 65612 Beselich
Schupbacher Str. 32, 65614 Beselich, Germany
Tel: +49-6484-91002 Fax: +49-6484-91003
[hidden email] | www.ae-online.de
www.tachyon-online.de

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: JPA

Dmitry Gusev
It's hard to say, sorry, should be something simple. You may attach with
debugger and see.
We can continue this discussion on the #tapestry IRC channel on
irc.freenode.net if you want... just to stop spamming this ML.


On Fri, Oct 11, 2013 at 5:22 PM, Andreas Ernst <[hidden email]> wrote:

> Am 11.10.13 14:52, schrieb Dmitry Gusev:
>
>  What is the name and location of your persistence.xml file?
>>
>> Is it src/main/resources/META-INF/**persistence.xml ?
>>
>
> Yes, it is:
>
> /Users/andreas/Documents/**NetBeansProjects/TapestryWeb/**
> src/main/resources/META-INF/**persistence.xml
>
> And deployed under: /Users/andreas/Documents/**
> NetBeansProjects/TapestryWeb/**target/TapestryWeb/WEB-INF/**
> classes/META-INF/persistence.**xml
>
>
>
>  It looks like it can't find any PUs with the given name in your
>> configuration:
>>
>> https://github.com/apache/**tapestry-5/blob/master/**
>> tapestry-jpa/src/main/java/**org/apache/tapestry5/internal/**
>> jpa/EntityManagerSourceImpl.**java#L212-L214<https://github.com/apache/tapestry-5/blob/master/tapestry-jpa/src/main/java/org/apache/tapestry5/internal/jpa/EntityManagerSourceImpl.java#L212-L214>
>>
>
> Hhmm, but why is this working?
>
>   public List<Customers> getCustomers() {
>     factory = Persistence.**createEntityManagerFactory("**
> de.aeits_TapestryWeb_war_1.0-**SNAPSHOTPU");
>     entityManager = factory.createEntityManager();
>     return entityManager.**createNamedQuery("Customer.**
> findAll").getResultList();
>   }
>
> Here the PU is found. I checked it just with Tomcat 7, the same error.
>
>
> --
> ae | Andreas Ernst | IT Spektrum
> Postfach 5, 65612 Beselich
> Schupbacher Str. 32, 65614 Beselich, Germany
> Tel: +49-6484-91002 Fax: +49-6484-91003
> [hidden email] | www.ae-online.de
> www.tachyon-online.de
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.**apache.org<[hidden email]>
> For additional commands, e-mail: [hidden email]
>
>


--
Dmitry Gusev

AnjLab Team
http://anjlab.com
Reply | Threaded
Open this post in threaded view
|

Re: JPA

lprimak
In reply to this post by Andreas Ernst
The issue you are facing boils down to this:

EntityManager(s) (EM) in JPA can be created multiple ways.

Tapestry-JPA manages / creates it's own EntityManagerFactory (EMF)  and EMs
It also reads persistence.xml on its own, and follows its own rules as far as having to have entities in a specific package (i.e. xxx.xxx.entities)
When you use @PersistenceContext in Tapestry context, you are actually using the infrastructure (EMF and EMs) managed by Tapestry-JPA.

Glassfish and the EJB container manage EMFs and EMs on their own, in a different, completely disconnected way.

If you are using both, you will have two JPA caches and two instances of JPA infrastructure.
When you do this: factory = Persistence.createEntityManagerFactory("de.aeits_TapestryWeb_war_1.0-SNAPSHOTPU");
>    entityManager = factory.createEntityManager();
you are creating EMF by yourself and that will read persistence.xml yet again, completely disconnected from Tapestry or the EJB container.

Tapestry-JPA is a tricky beast to use when you have more than one PU defined in your persistence.xml.
It works fine if you define all your classes manually in persistence.xml, but in case of auto-scanning for entities,
it's hard to get that working correctly (manual configuration / scanning is required)

In my own projects, I wound up not using tapestry-JPA at all.  I just call EJBs using FlowLogix library
and let EJBs do all my database handling.  
I did create a bit of infrastructure (1500 lines of code or so)
that includes GenericDAO, and GridDataSource that call EJBs to get their data generically.
It's not public now, but if need be I can make it so.

On Oct 11, 2013, at 9:22 AM, Andreas Ernst wrote:

> Am 11.10.13 14:52, schrieb Dmitry Gusev:
>> What is the name and location of your persistence.xml file?
>>
>> Is it src/main/resources/META-INF/persistence.xml ?
>
> Yes, it is:
>
> /Users/andreas/Documents/NetBeansProjects/TapestryWeb/src/main/resources/META-INF/persistence.xml
>
> And deployed under: /Users/andreas/Documents/NetBeansProjects/TapestryWeb/target/TapestryWeb/WEB-INF/classes/META-INF/persistence.xml
>
>
>> It looks like it can't find any PUs with the given name in your
>> configuration:
>>
>> https://github.com/apache/tapestry-5/blob/master/tapestry-jpa/src/main/java/org/apache/tapestry5/internal/jpa/EntityManagerSourceImpl.java#L212-L214
>
> Hhmm, but why is this working?
>
>  public List<Customers> getCustomers() {
>    factory = Persistence.createEntityManagerFactory("de.aeits_TapestryWeb_war_1.0-SNAPSHOTPU");
>    entityManager = factory.createEntityManager();
>    return entityManager.createNamedQuery("Customer.findAll").getResultList();
>  }
>
> Here the PU is found. I checked it just with Tomcat 7, the same error.
>
> --
> ae | Andreas Ernst | IT Spektrum
> Postfach 5, 65612 Beselich
> Schupbacher Str. 32, 65614 Beselich, Germany
> Tel: +49-6484-91002 Fax: +49-6484-91003
> [hidden email] | www.ae-online.de
> www.tachyon-online.de
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

12