用tomcat5.5有28个错误
用tomcat5.0有38个错误

解决方案 »

  1.   

    Duplicate class/entity mapping com.ld.hibernate.News
    重复映射News类是不是配置文件中已经有映射到news的类
      

  2.   

    Web程序光看异常只能看个大概。建议Lz用调试,自己调试一下就会知道错误在哪了。
      

  3.   

    2006-2-9 15:45:12 org.hibernate.cfg.Configuration configure
    信息: configuring from resource: /hibernate.cfg.xml
    2006-2-9 15:45:12 org.hibernate.cfg.Configuration getConfigurationInputStream
    信息: Configuration resource: /hibernate.cfg.xml上面信息明显存在两个hibernate.cfg.xml文件
    所以下面出现双重映射如果用eclipse的话,可在左边的树里按F5刷新一下,看是否存在两个hibernate的配置.
      

  4.   

    %%%% Error Creating SessionFactory %%%%
    org.hibernate.MappingException: Could not read mappings from resource: com/ld/hibernate/News.hbm.xml好像是没有找到News.hbm.xml这个映射,检查一下有没有