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
[email protected] | www.ae-online.de
www.tachyon-online.de

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

Reply via email to