0 Replies Latest reply on Apr 2, 2007 10:00 AM by nicolemans72

    JbossWs and hibernate

    nicolemans72

      I have another problem.

      My webservice is a methode that takes an object of type "Dmex" in the mysql data base (with Hibernate).

      public class DmexWs implements IDmexWs {
      
       SessionFactory sessionFactory = new Configuration().configure ().buildSessionFactory();
      
       public String getDmex(int id) throws RemoteException {
       CommonManager cm = HibernateEnviron.getCommonManager();
      
       Dmex dmex = (Dmex)cm.findOneId(Dmex.class, 792);
      
       return dmex.getDescription();
      
       }
      
      }
      


      And when I run the client, I have this error:

      java.rmi.RemoteException: Call invocation failed with code [Client] because of: JDBC Driver class not found: com.mysql.jdbc.Driver; nested exception is:
      


      Must I put the mysqlConnector jar with my class DmexWs in the .war deployed on the server?