Hibernate Gurus,
I create HibernateService as a Java (Util type) project and my Web project reference my HibernateService project which works great on my WSAD5.x. But when I deploy my ear to the WAS server.
None of my hbm.xml files could be found any more? The exception is something like:
The following exception was logged net.sf.hibernate.MappingException: Resource:
com\amfam\pgs\model\PurserRole.hbm.xml not found
at net.sf.hibernate.cfg.Configuration.addResource(Configuration.java:331)
at net.sf.hibernate.cfg.Configuration.doConfigure(Configuration.java:990)
at net.sf.hibernate.cfg.Configuration.doConfigure(Configuration.java:946)
at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:874)
And my hbm.xml defined in cfg.xml as:
.....
<mapping resource="com\amfam\pgs\model\PurserRole.hbm.xml"/>
<mapping resource="com\amfam\pgs\model\ReservedContractNumber.hbm.xml"/>
<mapping resource="com\amfam\pgs\model\RevisionReason.hbm.xml"/>
<mapping resource="com\amfam\pgs\model\Structure.hbm.xml"/>
</session-factory>
</hibernate-configuration>
Why it is working on WSAD but not on WAS, any ideas?
Thanks in advance!
JohnZ
|