Moved the hibernate properties to the applicationContext and localApplicationContext files, and removed the cache entries from the local version. This way, it won't try to load the jboss cache when doing junit tests. This was causing most of our junit tests to fail.