facebook

how to integrate ejb with hibernate

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #269014 Reply

    seenu
    Member

    Hai,

    i am using stateless session bean(2.0) and hibernate 3.0 with dao and vo
    i am calling dao in my sesion bean and i got error like this
    ****************
    <Apr 18, 2007 10:44:55 AM GMT+05:30> <Error> <Deployer> <BEA-149201> <Failed to complete the deployment task with ID 0 for the application _appsdir_newejb3_jar.
    java.lang.NoClassDefFoundError: org/hibernate/Session
    at java.lang.Class.getDeclaredMethods0(Native Method)
    ****************************************************************************
    //i am calling hibernate method as business logic method in stateless session bean with remote( i declated save() in remote) and we are using weblogic8.0//
    public void save(Joblist jvo)throws javax.ejb.EJBException{
    SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory();
    Session session =sessionFactory.openSession();
    Transaction tx = session.beginTransaction();
    try{
    session.save(jvo);
    tx.commit();
    session.close();
    }catch(Exception e){e.printStackTrace();}
    }
    ***this session was not calling , i need some help to do this( pls any demo related to this)

    with Regards
    seenu a

    #269053 Reply

    Riyad Kalla
    Member

    java.lang.NoClassDefFoundError: org/hibernate/Session

    That’s a dead give away that either you are not deploying Hibernate libraries with your app OR they are already in the JBoss/server/lib dir and they are conflicting with the ones you are deploying with your app.

    NOTE: Some app servers will refuse to load a class if they find a duplicate.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: how to integrate ejb with hibernate

You must be logged in to post in the forum log in