org.hibernate.InvalidMappingException: Unable to read XML

openxava | fjalier | 5 years ago
  1. 0

    Hibernate no obedece atributos de property?

    openxava | 5 years ago | fjalier
    org.hibernate.InvalidMappingException: Unable to read XML
  2. 0

    Hibernate InvalidMappingException when running jar-packed application

    Stack Overflow | 6 years ago | Richard
    org.hibernate.InvalidMappingException: Unable to read XML
  3. 0

    HIbernate throws MappingException

    Stack Overflow | 4 years ago | josser
    org.hibernate.InvalidMappingException: Unable to read XML
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    org.springframework.beans.factory.BeanCreationException - 开源中国社区

    oschina.net | 1 year ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'boncDaoSupport': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.hibernate.SessionFactory com.bonc.common.dao.impl.BoncDaoSupport.sessionFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext-orm-hibernate.xml]: Invocation of init method failed; nested exception is org.hibernate.InvalidMappingException: Unable to read XML
  6. 0

    What is wrong with hibernate mapping and spring 'sessionFactory'?

    Stack Overflow | 7 months ago | Ann W.
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/spring-security.xml]: Invocation of init method failed; nested exception is org.hibernate.InvalidMappingException: Unable to read XML

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.hibernate.InvalidMappingException

      Unable to read XML

      at org.hibernate.util.xml.MappingReader.readMappingDocument()
    2. Hibernate
      MappingReader.readMappingDocument
      1. org.hibernate.util.xml.MappingReader.readMappingDocument(MappingReader.java:101)
      1 frame
    3. Hibernate
      AnnotationConfiguration.addResource
      1. org.hibernate.cfg.Configuration.add(Configuration.java:510)
      2. org.hibernate.cfg.Configuration.add(Configuration.java:506)
      3. org.hibernate.cfg.Configuration.add(Configuration.java:686)
      4. org.hibernate.cfg.Configuration.addResource(Configuration.java:771)
      5. org.hibernate.cfg.AnnotationConfiguration.addResource(AnnotationConfiguration.java:151)
      6. org.hibernate.cfg.AnnotationConfiguration.addResource(AnnotationConfiguration.java:70)
      6 frames
    4. org.openxava.hibernate
      XHibernate.createSession
      1. org.openxava.hibernate.XHibernate.createSessionFactory(XHibernate.java:191)
      2. org.openxava.hibernate.XHibernate.getSessionFactory(XHibernate.java:268)
      3. org.openxava.hibernate.XHibernate.createSession(XHibernate.java:110)
      3 frames
    5. org.openxava.tracking
      AccessTrackingListener.trackReadAccess
      1. org.openxava.tracking.AccessTrackingCalculator.calculate(AccessTrackingCalculator.java:43)
      2. org.openxava.tracking.AccessTrackingListener.trackAccess(AccessTrackingListener.java:43)
      3. org.openxava.tracking.AccessTrackingListener.trackReadAccess(AccessTrackingListener.java:25)
      3 frames
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:616)
      4 frames
    7. Hibernate EJB
      EJB3PostLoadEventListener.onPostLoad
      1. org.hibernate.ejb.event.ListenerCallback.invoke(ListenerCallback.java:45)
      2. org.hibernate.ejb.event.EntityCallbackHandler.callback(EntityCallbackHandler.java:94)
      3. org.hibernate.ejb.event.EntityCallbackHandler.postLoad(EntityCallbackHandler.java:87)
      4. org.hibernate.ejb.event.EJB3PostLoadEventListener.onPostLoad(EJB3PostLoadEventListener.java:47)
      4 frames
    8. Hibernate
      AbstractEntityPersister.load
      1. org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:250)
      2. org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:982)
      3. org.hibernate.loader.Loader.doQuery(Loader.java:857)
      4. org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:274)
      5. org.hibernate.loader.Loader.loadEntity(Loader.java:2037)
      6. org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:86)
      7. org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:76)
      8. org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:3293)
      8 frames
    9. Hibernate
      SessionImpl.get
      1. org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:496)
      2. org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:477)
      3. org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:227)
      4. org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:285)
      5. org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:152)
      6. org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:1090)
      7. org.hibernate.impl.SessionImpl.get(SessionImpl.java:1005)
      8. org.hibernate.impl.SessionImpl.get(SessionImpl.java:998)
      8 frames
    10. Hibernate EJB
      AbstractEntityManagerImpl.find
      1. org.hibernate.ejb.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:614)
      2. org.hibernate.ejb.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:589)
      2 frames
    11. org.openxava.jpa
      EntityManagerDecorator.find
      1. org.openxava.jpa.impl.EntityManagerDecorator.find(EntityManagerDecorator.java:147)
      1 frame
    12. org.openxava.model
      MapFacade.getValues
      1. org.openxava.model.impl.JPAPersistenceProvider.find(JPAPersistenceProvider.java:26)
      2. org.openxava.model.impl.POJOPersistenceProviderBase.find(POJOPersistenceProviderBase.java:89)
      3. org.openxava.model.impl.POJOPersistenceProviderBase.find(POJOPersistenceProviderBase.java:60)
      4. org.openxava.model.impl.MapFacadeBean.findEntity(MapFacadeBean.java:1475)
      5. org.openxava.model.impl.MapFacadeBean.findEntity(MapFacadeBean.java:1608)
      6. org.openxava.model.impl.MapFacadeBean.getValuesImpl(MapFacadeBean.java:625)
      7. org.openxava.model.impl.MapFacadeBean.getValues(MapFacadeBean.java:100)
      8. org.openxava.model.MapFacade.getValues(MapFacade.java:396)
      8 frames
    13. org.openxava.actions
      SearchByViewKeyAction.execute
      1. org.openxava.actions.SearchByViewKeyAction.execute(SearchByViewKeyAction.java:51)
      1 frame
    14. org.openxava.controller
      ModuleManager.execute
      1. org.openxava.controller.ModuleManager.executeAction(ModuleManager.java:403)
      2. org.openxava.controller.ModuleManager.executeAction(ModuleManager.java:320)
      3. org.openxava.controller.ModuleManager.executeAction(ModuleManager.java:514)
      4. org.openxava.controller.ModuleManager.executeAction(ModuleManager.java:320)
      5. org.openxava.controller.ModuleManager.executeAction(ModuleManager.java:514)
      6. org.openxava.controller.ModuleManager.executeAction(ModuleManager.java:320)
      7. org.openxava.controller.ModuleManager.execute(ModuleManager.java:280)
      7 frames
    15. org.apache.jsp
      execute_jsp._jspService
      1. org.apache.jsp.xava.execute_jsp._jspService(execute_jsp.java:177)
      1 frame
    16. GWT dev
      HttpJspBase.service
      1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      1 frame
    17. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      1 frame
    18. GWT dev
      JspServlet.service
      1. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
      2. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
      3. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
      3 frames
    19. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      1 frame
    20. Glassfish Core
      ApplicationDispatcher.include
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
      4. org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
      5. org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
      5 frames
    21. org.openxava.web
      Module.request
      1. org.openxava.web.servlets.Servlets.getURIAsStream(Servlets.java:66)
      2. org.openxava.web.dwr.Module.getURIAsStream(Module.java:198)
      3. org.openxava.web.dwr.Module.request(Module.java:62)
      3 frames
    22. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:616)
      4 frames
    23. Direct Web Remoting
      DwrServlet.doPost
      1. org.directwebremoting.impl.ExecuteAjaxFilter.doFilter(ExecuteAjaxFilter.java:34)
      2. org.directwebremoting.impl.DefaultRemoter$1.doFilter(DefaultRemoter.java:428)
      3. org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:431)
      4. org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:283)
      5. org.directwebremoting.servlet.PlainCallHandler.handle(PlainCallHandler.java:52)
      6. org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:101)
      7. org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:146)
      7 frames
    24. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      2 frames
    25. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      5. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      6. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      7. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      8. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
      8 frames
    26. Grizzly HTTP
      JIoEndpoint$Worker.run
      1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
      2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      3. org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
      3 frames
    27. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:636)
      1 frame