persistence@glassfish.java.net

Re: please, Could you help me with JPA?

From: Grover Blue <grover.blue_at_gmail.com>
Date: Wed, 29 Apr 2009 12:26:12 -0400

First, it might be better to just post the error and a description of your
environment/code. Most ppl can't/won't download an attachment.

ok, on to the problem. Make sure your application is using the correct JDBC
resource. As it stands now, your application is attempting to connect to a
Derby database, and not the expected MySQL database.

1. Verify you have a valid MySQL Connection Pool configured on the server,
and that you've created a JDBC Resource that points to that Connection Pool.
2. Inspect your persistence.xml file and confirm it is using the correct
JDBC Resource.

That should be it.


On Wed, Apr 29, 2009 at 8:11 AM, farag saad <farag_cs2005_at_yahoo.com> wrote:

> I'm new to JPA
>
> the attached code give me alot of exceptions
>
> please, Could you help me to solve these problems
>
> *Farag Zakaria *
> *Computer Science Department*
> *Faculty of Computers & Information*
> *Cairo University*
>
>


-- 
“If the American people ever allow private banks to control the issue of
their currency, first by inflation, then by deflation, the banks...will
deprive the people of all property until their children wake-up homeless on
the continent their fathers conquered... The issuing power should be taken
from the banks and restored to the people, to whom it properly belongs."
-- Thomas Jefferson
"Government big enough to supply everything...is big enough to take
everything you have. The course of history shows that as a government grows,
liberty decreases" --- Thomas Jefferson
www.CampaignForLiberty.org