I've been having some issues depoying in oracle oc4j. I am using maven, and I have seperated my project into project-core and project-web modules. The core module has the hibernate mapping files under src/main/resources/hibernate/hbm folder. The web module depends on the core module and includes the core's jar file. It works fine under jetty and tomcat, but under oc4j, it doesn't see the hibernate mapping files within the jar file and it throws and exception. I physically copied the hibernate/hbm folder under classes and it works. My session factory bean looks like this.
<property name="dataSource" ref="dataSource" />
I am getting a hibernate mapping exception
org.springframework.orm.hibernate3.HibernateSystem Exception: Unknown entity: com.project.Dummy; nested exception is org.hibernate.MappingException: Unknown entity: com.project.Dummy
Caused by: org.hibernate.MappingException: Unknown entity:
Does anyone have any idea why?