Version 3

    this is my hibernate xml file

    <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">

      <property name="dataSource" ref="dataSource"/>

      <property name="lobHandler">

          <bean class="org.springframework.jdbc.support.lob.DefaultLobHandler"></bean>

        </property> 

      <property name="mappingDirectoryLocations">

       <list>

        <value>classpath:/sasp/orm/all/</value>

    </list>

      </property>

    </bean>

     

    when I deploy my project to JBOSS as ,have meet this problem ,

     

    Caused by: java.io.FileNotFoundException: class path resource [sasp/orm/all/] cannot be resolved to absolute file path because it does not reside in the file system: vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/sasp.war/WEB-INF/classes/sasp/orm/all/

    I search some data,some pepople say ,chanage that

     

    <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">

      <property name="dataSource" ref="dataSource"/>

      <property name="lobHandler">

          <bean class="org.springframework.jdbc.support.lob.DefaultLobHandler"></bean>

        </property> 

      <property name="mappingDirectoryLocations">

       <list>

        <value>classpath:/sasp/orm/all/a.hbm.xml</value>

        value>classpath:/sasp/orm/all/b.hbm.xml</value>

        value>classpath:/sasp/orm/all/c.hbm.xml</value>

       </list>

      </property>

    </bean>

    but ,my porject have use too many entity,about two hunder ,if change to that ,may cost too time ,dose have any solutions???????

     

     

    the problem is not occur in the Apache tomcat

     

    please help me sooner

    thanks you (my english is too bad,please Forgive me)