users@glassfish.java.net

Help NetBeans and JPA

From: <glassfish_at_javadesktop.org>
Date: Fri, 29 Aug 2008 19:05:51 PDT

hello,please i need really for quick help i m developing a web project on net beans by J PA technologie but the problem that the server glass fish 2 don't indicate any error and he cannot do the instruction of creating the persistenceEntityManager line 5 and there is the problem: in the console
i have just the result "1"
i don't know what is the problem

 public int addEtudiant(Etudiant p_etu) {
        int v_result = -1;
        try {
            System.out.println("1");
            emf = Persistence.createEntityManagerFactory("WeebPU");
            System.out.println("2");
            em = emf.createEntityManager();
            em.getTransaction().begin();
            em.persist(p_etu);
            em.getTransaction().commit();
            em.close();
            v_result = 0;
        } catch (Exception ex1) {
            ex1.getStackTrace();
        }
        return v_result;
    }
please help.
[Message sent by forum member 'massoudi' (massoudi)]

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