Hi,
I am trying to Run my first Hibernate Program using Eclipse and Hibernate 3.2...I have following directory structure:
C:\hibernate-3.1\Projects\Source\com\Examples
In Examples I have all my Files (.java, .class and .xml)
My Hibernate.cfg.xml look like this
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">com.microsoft.jdbc.sqlserver.SQLServerDriver</property>
<property name="hibernate.connection.url">jdbc:microsoft:sqlserver://cnp290:1433;databaseName=P3EWM_Indus;SelectMethod=Cursor</property>
<property name="hibernate.connection.username">IFW_User</property>
<property name="hibernate.connection.password">FW$user1</property>
<property name="dialect">org.hibernate.dialect.SQLServerDialect</property>
<property name="show_sql">false</property>
<mapping resource="Source/com/Examples/Event.hbm.xml"/>
</session-factory>
</hibernate-configuration>
I am getting an error that Hibernate.cfg.xml can not be found.
I am using Eclipse to compile and run my code.
Build is Successful but Run time its failing.
Advise. Thanks
|