Hi all,
I am using Hibernate2.1.jar in my project, and running it both in Websphere and Jboss.
I used ehcache by putting <cache usage="read-only"/> inside my .hbm.xml files. When I deploy .ear file on Websphere, it works fine, but if I deploy the same .ear file on Jboss, it will throw out the error messages:
[net.sf.hibernate.cfg.Configuration] Mapping resource: com/dao/XXX.hbm.xml
[net.sf.hibernate.util.XMLHelper] Error parsing XML: XML InputStream(8) Element type "cache" must be declared.
So anyone had the same problem before?
Thanks so much for the help!
|