Menu

prolems using Hibernate4GWT + JPA

Help
steeed
2008-12-19
2013-04-19
  • steeed

    steeed - 2008-12-19

    Hi. I`m trying to embed Hibernate4GWT(1.1.2) into my GWT application. Here is some main point of  it

    gwt.xml:

    ....
    <inherits name='net.sf.hibernate4gwt.Hibernate4Gwt15'/>
    <inherits name='net.sf.hibernate4gwt.emul.java5.ejb3.Ejb3'/>
    .... 

    Service Implementation:

    public class AdminServiceImpl extends HibernateRemoteService implements AdminService {
        private MyDAO myDAO = DAOFactory.getMyDAO();
    ....

    Bean code:

    @Entity
    @Table(name = "PUBLIC.PAGE")
    public class Page extends LazyPojo implements Serializable {....}

    But when I run(in hosted mode) on a client side creation of AdminService  :

        this.adminService = (AdminServiceAsync) GWT.create(AdminService.class);

    it produces java.lang.NoClassDefFoundError: javax/persistence/CascadeType like there is no ejb3-persistence.jar in server classpath(actually it is). I`ve also tried javaee.jar instead but with no result. So haw can this be solved?
       

     
    • Bruno Marchesson

      Hi,

      First, please accept apologies for the very long delay : I do not know why, but my SF account was not monitoring this forum anymore, so I did not receive mail notification of your post :-(

      EJB3 annotations emulation is for JS support only. In hosted mode, code is needing Java equivalent, which are contained in the JAR you mentioned...

      Did you solve this issue since december ?

      Regards
      Bruno

       
    • steeed

      steeed - 2009-01-25

      Hi! Thanks for your reply. No, I haven`t solved that issue, so I`m curious, what can be better solution for it?

       
    • Bruno Marchesson

      Hi,

      Which IDE are you using ? Eclipse ? NetBeans ?

      Regards
      Bruno

       
    • steeed

      steeed - 2009-01-26

      Hi, My IDE is Idea 8.0.1

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.