I am using Hibernate 3.0 and the application is deployed in WebSphere. Application is working perfect on Windows, but as I deploy this EAR file on Linux it throws Exception unable to compile Mapping file and Hibernate changes the package of the class and gives property not found exception.<br>
Code:
7/19/05 11:36:03:760 PKT] 00000040 HbmBinder I Mapping class: lmkr.moit.dto.ic.SaveSearchDTO -> tIC_SavedSearches
[7/19/05 11:36:03:768 PKT] 00000040 Configuration E Could not compile the mapping document
[7/19/05 11:36:03:773 PKT] 00000040 Configuration E TRAS0014I: The following exception was logged org.hibernate.PropertyNotFoundException: field not found: type
at org.hibernate.property.DirectPropertyAccessor.getField(DirectPropertyAccessor.java:96)
at org.hibernate.property.DirectPropertyAccessor.getField(DirectPropertyAccessor.java:103)
at org.hibernate.property.DirectPropertyAccessor.getField(DirectPropertyAccessor.java:103)
at org.hibernate.property.DirectPropertyAccessor.getGetter(DirectPropertyAccessor.java:111)
at org.hibernate.util.ReflectHelper.getter(ReflectHelper.java:90)
at org.hibernate.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:78)
at org.hibernate.mapping.SimpleValue.setTypeUsingReflection(SimpleValue.java:254)
at org.hibernate.cfg.HbmBinder.createProperty(HbmBinder.java:1753)
at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:1742)
at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:317)
at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:235)
at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:151)
at org.hibernate.cfg.Configuration.add(Configuration.java:359)
at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:396)
at org.hibernate.cfg.Configuration.addResource(Configuration.java:445)
at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1312)
at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1284)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1266)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1233)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1161)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1147)
at lmkr.moit.hibernate.HibernateService.configure(HibernateService.java:46)
at lmkr.moit.hibernate.HibernateService.<clinit>(HibernateService.java:35)
at lmkr.moit.blc.ComponentService.<init>(ComponentService.java:17)
at lmkr.moit.blc.service.LoginService.<init>(LoginService.java:25)
at lmkr.moit.blc.service.LoginService.getInstance(LoginService.java:31)
at lmkr.moit.blc.ic.controller.ICSessionControllerBean.login(ICSessionControllerBean.java:109)
at lmkr.moit.blc.ic.controller.EJSRemoteStatelessICSessionController_12f9fe6b.login(Unknown Source)
at lmkr.moit.blc.ic.controller._ICSessionController_Stub.login(_ICSessionController_Stub.java:399)
at lmkr.moit.gui.common.security.page.LoginPage.login(LoginPage.java:36)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))