又见贴:
http://community.csdn.net/Expert/TopicView3.asp?id=4919209

解决方案 »

  1.   

    又见:
    http://community.csdn.net/Expert/TopicView3.asp?id=4958586
      

  2.   

    使用XMLSpy之类的编辑工具格式化并校验一下XML文件,同时检查XML文件本身的编码问题,可能是因为保存的编码问题导致读取XML文件时发生错误的,用UltraEdit打开看看里面二进制的内容是否有问题。
      

  3.   

    hibernate.properties not found
    这么明显的错误提示.......................
      

  4.   

    上面的回复没有粘贴完全,不好意思检查配置文件吧,可能是XML文件里面有不可见字符什么的2006-08-16 09:37:01,046 INFO  (Environment.java:464) - Hibernate 3.0.5
    2006-08-16 09:37:01,062 INFO  (Environment.java:477) - hibernate.properties not found
    2006-08-16 09:37:01,062 INFO  (Environment.java:510) - using CGLIB reflection optimizer
    2006-08-16 09:37:01,062 INFO  (Environment.java:540) - using JDK 1.4 java.sql.Timestamp handling
    2006-08-16 09:37:01,203 INFO  (Configuration.java:1110) - configuring from resource: /com/power/data/hibernate.cfg.xml
    2006-08-16 09:37:01,203 INFO  (Configuration.java:1081) - Configuration resource: /com/power/data/hibernate.cfg.xml
    2006-08-16 09:37:01,203 INFO  (Configuration.java:1110) - configuring from resource: /com/power/data/hibernate.cfg.xml
    2006-08-16 09:37:01,218 INFO  (Configuration.java:1081) - Configuration resource: /com/power/data/hibernate.cfg.xml
    2006-08-16 09:37:01,250 INFO  (Configuration.java:1222) - Configured SessionFactory: null
    2006-08-16 09:37:01,250 INFO  (Configuration.java:1222) - Configured SessionFactory: null
    com/power/hibernate/FChip_codetbl.hbm.xml  xml
    2006-08-16 09:37:01,265 INFO  (Configuration.java:444) - Mapping resource: com/power/hibernate/FChip_codetbl.hbm.xml
    com/power/hibernate/FChip_codetbl.hbm.xml  xml
    2006-08-16 09:37:01,265 INFO  (Configuration.java:444) - Mapping resource: com/power/hibernate/FChip_codetbl.hbm.xml
    2006-08-16 09:37:01,265 ERROR (Configuration.java:407) - Could not configure datastore from input stream
      

  5.   

    hibernate.properties not found
      

  6.   

    你是怎么得到session的?把你的代码贴出来...
    用xml的配置文件,应该这样写:
    try {
    Configuration config = new Configuration().configure();
    SessionFactory sessionFactory = config.buildSessionFactory();
    session = sessionFactory.openSession();
    } catch (HibernateException e) {
    e.printStackTrace();
    }
    用properties文件,应该这样写:
    Configuration config = new Configuration().addFile("TUser.hbm.xml").addClass(TUser.class);
      

  7.   

    解决方法是TOMCAT不启动HIBERNAT,,通过SERVLET调用一下就可以了