Your Internet Explorer version is not compatible with our shopping cart system. Please use version 9 or higher to avoid problems with your order(s). Close
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)
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.