hibernate的问题

我在写User.hbm.xml时这样配置(包是com.hyctl.hibernate.beans,类名未User,对应的表名是user的属性都没错)。

<class name="User" table="user">
    <id name="id" column="ID" type="integer">
        <generator class="increment"/>
    </id>

    <property name="username" column="username" type="string" />
    <property name="password" column="password" type="string" />
    <property name="email" column="email" type="string" />
</class>


但是在跑起来是却出现了以下的异常,什么原因啊?我在另一台机器上是可以跑的,但代码放到另一台机器就不行了。
2012-2-19 11:42:59 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: entity class not found: com.hyctl.hibernate.beans.User
Caused by: org.hibernate.MappingException: entity class not found: com.hyctl.hibernate.beans.User

是不是没有把编译文件放过去
提示找不到entiy实体类的对象

把spring的配置文件贴出来看看

org.hibernate.MappingException: entity class not found: com.hyctl.hibernate.beans.User

类找不到么.查看一下你的hbm文件.指定的类路径是否正确.另外查看entity对象是否编译到你的classes路径下了.