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 <[email protected]> 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
> [email protected] | www.ae-online.de
> www.tachyon-online.de
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: 
> users-unsubscribe@tapestry.**apache.org<[email protected]>
> For additional commands, e-mail: [email protected]
>
>


-- 
Dmitry Gusev

AnjLab Team
http://anjlab.com

Reply via email to