Oh now I remember. An EJB JPA solution requires JTA. RESOURCE_LOCAL won't work with it. Hmmm, I need JTA for my EJB solution in the portlet, and I need RESOURCE_LOCAL for my Java SE solution in my test app. I'm going to have to come up with a better test app.