users@glassfish.java.net

Problem accessing data from EJB 3.0 session bean: EntityManagerSetupExcepti

From: <glassfish_at_javadesktop.org>
Date: Thu, 08 Feb 2007 18:15:43 PST

[i]Hello,
I cannot access data in db table from a ejb 3.0 session bean- this is the method where execution fails: [/i]

public List findall() {
         return em.createQuery("select object(o) from Line as o").getResultList();
    }

[i]This is the error that is displayed:[/i]

Caused by: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060830)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
Exception Description: Attempted to deploy PersistenceUnit [OrderPU] for which predeploy method either had not called or had failed
        at oracle.toplink.essentials.exceptions.EntityManagerSetupException.cannotDeployWithoutPredeploy(EntityManagerSetupException.java:167)
        ... 33 more
[i]
This is my first Java EE project, any help is welcome .
Thanks a lot ![/i]
[Message sent by forum member 'cyvan' (cyvan)]

http://forums.java.net/jive/thread.jspa?messageID=202785