1 Reply Latest reply on Nov 9, 2006 7:12 PM by Thomas Diesler

    hibernate and web services

    Ypatios Asmanidis Newbie

      I'm trying to use web services and it's working but when I try to use hibernate in server side i get no entity found exception..here is my server side bean

      @Local( {
      @Remote( {
      //@RolesAllowed ({"admin", "guest"})
       * JBossWS Annotations
      @WebService(name = "LoginService",
       serviceName = "LoginService",
       endpointInterface = "some.webservices.LoginServiceSEI"
      public class LoginServiceBean implements LoginService
       private static final Logger log = Logger.getLogger(LoginServiceBean.class);
       EntityManager em;
       public boolean checkUser(String userid,String passid)
       log.info("checking person('"+userid+"','"+passid+"')");
       User users=(User)em.createQuery("from User where username=:username and password=:password")
       log.info("hi there");
       }catch(Exception e) { log.info(e.toString()); return false; }
       return true;
       //else return true;

      and here is the exception

      20:36:15,788 INFO [LoginServiceBean] javax.persistence.NoResultException: No entity found for query

      any help ?