it should look a bit like this :-
Code:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd">
<hibernate-configuration>
<!-- a SessionFactory instance listed as /jndi/name -->
<session-factory name="SessionFactory">
<!-- START WEBSERVER_CONFIG -->
<property name="hibernate.connection.datasource">jdbc/Datasource</property>
<property name="hibernate.connection.pool_size">10</property>
<!-- END WEBSERVER_CONFIG -->
<!-- START TEST_CONFIG -->
<property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="hibernate.connection.url">%DB%</property>
<property name="hibernate.connection.username">%USER%</property>
<property name="hibernate.connection.password">%PASSWORD%</property>
<!-- END TEST_CONFIG -->
<property name="hibernate.dialect">net.sf.hibernate.dialect.OracleDialect</property>
<property name="hibernate.show_sql">true</property>
<property name="hibernate.session_factory_name"></property>
<!-- mapping files -->
<!-- Queries -->
<mapping resource="/path/of/package/Test1.hbm.xml"/>
</session-factory>
</hibernate-configuration>
This needs to be in the root of your classpath, and list all the maping files. If this isn't the problem, then can you post your hibernate.cfg.xml please, and I'll have another look.
Chris