Hi All
Suddenly i am facing MappingException , can some one help me in this regard
2014-11-06 06:38:07,840, INFO , [ACTIVE] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)', org.hibernate.cfg.Configuration,Configuration resource: conf/filter.hibernate.cfg.xml 2014-11-06 06:38:07,840, INFO , [ACTIVE] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)', org.hibernate.cfg.Configuration,Reading mappings from resource: com/steelwedge/hibernate/filter/QueryHaving.hbm.xml 2014-11-06 06:38:07,840, INFO , [ACTIVE] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)', org.hibernate.cfg.Mappings,duplicate import: com.steelwedge.hibernate.filter.QueryHaving->com.steelwedge.hibernate.filter.QueryHaving 2014-11-06 06:38:07,840, INFO , [ACTIVE] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)', org.hibernate.cfg.Mappings,duplicate import: com.steelwedge.hibernate.filter.QueryHaving->QueryHaving 2014-11-06 06:38:07,840, INFO , [ACTIVE] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)', org.hibernate.cfg.HbmBinder,Mapping class: com.steelwedge.hibernate.filter.QueryHaving -> QUERY_HAVING 2014-11-06 06:38:07,840, ERROR, [ACTIVE] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)', com.steelwedge.hibernate.filter.FilterHibernateSessionFactory,Could not read mappings from resource: com/steelwedge/hibernate/filter/QueryHaving.hbm.xml org.hibernate.MappingException: Could not read mappings from resource: com/steelwedge/hibernate/filter/QueryHaving.hbm.xml at org.hibernate.cfg.Configuration.addResource(Configuration.java:485) at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1465) at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1433) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1414) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1390) at org.hibernate.cfg.Configuration.configure(Configuration.java:1310) at com.steelwedge.hibernate.filter.FilterHibernateSessionFactory.rebuildSessionFactory(FilterHibernateSessionFactory.java:76) at com.steelwedge.hibernate.filter.FilterHibernateSessionFactory.getSession(FilterHibernateSessionFactory.java:60) at com.steelwedge.hibernate.filter.FilterBaseDAO.getSession(FilterBaseDAO.java:17) at com.steelwedge.ejb.filtermanager.FilterBean.get(FilterBean.java:921) at com.steelwedge.ejb.filtermanager.filter_wyop40_EOImpl.__WL_invoke(Unknown Source) at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40) at com.steelwedge.ejb.filtermanager.filter_wyop40_EOImpl.get(Unknown Source) at com.steelwedge.filtermanager.FilterUtils.getFilterVORemote(FilterUtils.java:743) at com.steelwedge.forecast.ForecastUtils.getIsAllPlane(ForecastUtils.java:276) at com.steelwedge.finder.FinderFactory.getWorksheetHelper(FinderFactory.java:136) at com.steelwedge.finder.FinderFactory.getFinder(FinderFactory.java:89) at com.steelwedge.finder.FinderProxy.getFinder(FinderProxy.java:348) at com.steelwedge.finder.FinderProxy.find(FinderProxy.java:183) at com.steelwedge.ejb.finder.FinderBean.find(FinderBean.java:126) at com.steelwedge.ejb.finder.worksheethelper_ge8yts_EOImpl.__WL_invoke(Unknown Source) at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40) at com.steelwedge.ejb.finder.worksheethelper_ge8yts_EOImpl.find(Unknown Source) at com.steelwedge.ambassador.finder.WorksheetItems.getCatalogDetailIdListFromForecastFinder(WorksheetItems.java:589) at com.steelwedge.ambassador.finder.WorksheetItems.getCatalogDetailIdList(WorksheetItems.java:138) at com.steelwedge.ambassador.finder.WorksheetItems.getCatalogDetailIdsOnly(WorksheetItems.java:122) at com.steelwedge.template.queue.PostProcessTemplateHandler.createMap(PostProcessTemplateHandler.java:1325) at com.steelwedge.template.queue.PostProcessTemplateHandler.initiate(PostProcessTemplateHandler.java:396) at com.steelwedge.ambassador.interact.excelrequestmdb.ExcelRequestMessageBean.processIt(ExcelRequestMessageBean.java:112) at com.steelwedge.ambassador.interact.excelrequestmdb.ExcelRequestMessageBean.onMessage(ExcelRequestMessageBean.java:52) at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:574) at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:477) at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:380) at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4659) at weblogic.jms.client.JMSSession.execute(JMSSession.java:4345) at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3822) at weblogic.jms.client.JMSSession.access$000(JMSSession.java:115) at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5170) at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209) at weblogic.work.ExecuteThread.run(ExecuteThread.java:178) Caused by: org.hibernate.DuplicateMappingException: Duplicate class/entity mapping com.steelwedge.hibernate.filter.QueryHaving at org.hibernate.cfg.Mappings.addClass(Mappings.java:118) at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:154) at org.hibernate.cfg.Configuration.add(Configuration.java:386) at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:427) at org.hibernate.cfg.Configuration.addResource(Configuration.java:482) at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1465) at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1433) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1414) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1390) at org.hibernate.cfg.Configuration.configure(Configuration.java:1310) at com.steelwedge.hibernate.filter.FilterHibernateSessionFactory.rebuildSessionFactory(FilterHibernateSessionFactory.java:77)
|