On 8/25/06, Scot McSweeney-Roberts <[EMAIL PROTECTED]> wrote:

Hello all

I'm trying to get Shale (1.0.3) to work with Java's Persistence API, but
I'm running into a problem. I've created a very simple test app (a
single entity class, and then I had the controller, convertor and JSF
pages generated by NetBeans), which works fine on it's own, but once I
add in the Shale related jars and add Shale as a filter in web.xml it no
longer works. What appears to be happening is that the EntityManager is
no longer being injected. Is there anything special that needs to be
done to get Shale and JPA working? I've had a quick look at the
mailapp-jpa demo, but that justs seems to be the entity beans.


I have not had the problems you're describing, so there must be something
interesting going on.

As you observe, the "mailreader-jpa" library is just the entity classes (and
the corresponding JPA persistence unit).  However, "shale-mailreader-jpa" is
a full blown webapp that uses Shale and the entity classes from
mailreader-jpa, and it works fine for me, at least on Glassfish.  What app
server are you trying to use?


cheers

Scot



Craig

Reply via email to