数据源 "java:comp/env/jdbc/quickstart"
在应用中,或这应用服务器中进行配置了吗.?应该指定数据源的位置,用户名,密码,驱动等..

解决方案 »

  1.   

    TOMCAT数据源已经配了,测试没有问题。可是就是不行
      

  2.   

    好象是找不到你的配注文件呢,
     sessionFactory = new Configuration().configure().buildSessionFactory();
    我是直接这样建的,把配注文件放到class目录下!!
      

  3.   

    hibernate.cft.xml ==>hibernate.cfg.xml
    hibernate.cft.xml ==>hibernate.cfg.xml
    hibernate.cft.xml ==>hibernate.cfg.xml
    hibernate.cft.xml ==>hibernate.cfg.xml
      

  4.   

    你的cat类位置对吗,所在的包对吗?
      

  5.   

    问题解决,又犯了低级错误!
    感谢大家,感谢liuyxit(我不是你的上帝...)