org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/dataAccessContext-hibernate.xml]: Invocation of init method failed; nested exception is org.hibernate.DuplicateMappingException: Duplicate class/entity mapping cn.net.openid.jos.domain.Attribute

Google Groups | dizinha | 8 years ago
  1. 0

    jos1.1 problem

    Google Groups | 8 years ago | dizinha
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/dataAccessContext-hibernate.xml]: Invocation of init method failed; nested exception is org.hibernate.DuplicateMappingException: Duplicate class/entity mapping cn.net.openid.jos.domain.Attribute
  2. 0

    standalone spring app, exception loading context from xml file - Spring Forum

    spring.io | 1 year ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'josService' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot create inner bean 'mejos.domain.service.JosServiceImpl#1e5bbb0' of type [mejos.domain.service.JosServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mejos.domain.service.JosServiceImpl#1e5bbb0' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'domainDao' while setting bean property 'domainDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'domainDao' defined in ServletContext resource [/WEB-INF/dataAccessContext-hibernate.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/dataAccessContext-hibernate.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.hibernate3.LocalSessionFactoryBean]: Constructor threw exception; nested exception is java.lang.NoSuchFieldError: name
  3. 0

    WebSphere:WebSphere Application Server:Exception caught while initializing context - WebSphere Application Server Forum

    ibm.com | 8 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'LogViewManager' defined in ServletContext resource [/WEB-INF/zingcontext-service.xml]: Cannot resolve reference to bean 'LogDAO' while setting bean property 'logDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'LogDAO' defined in ServletContext resource [/WEB-INF/zingcontext-hibernate.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/zingcontext-hibernate.xml]: Invocation of init method failed; nested exception is java.lang.ArrayStoreException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    WebSphere:WebSphere Application Server:Exception caught while initializing context - WebSphere Application Server Forum

    ibm.com | 8 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'LogViewManager' defined in ServletContext resource [/WEB-INF/zingcontext-service.xml]: Cannot resolve reference to bean 'LogDAO' while setting bean property 'logDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'LogDAO' defined in ServletContext resource [/WEB-INF/zingcontext-hibernate.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/zingcontext-hibernate.xml]: Invocation of init method failed; nested exception is java.lang.ArrayStoreException
  6. 0

    org.hibernate.MappingException: entity class not found: dto.CityDTO

    Stack Overflow | 3 years ago | p27
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myTransactionManager' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Cannot resolve reference to bean 'mySessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mySessionFactory' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: entity class not found: dto.CityDTO

    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.springframework.beans.factory.BeanCreationException

      Error creating bean with name 'cn.net.openid.jos.service.JosServiceImpl#dfbb43' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'domainDao' while setting bean property 'domainDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'domainDao' defined in ServletContext resource [/WEB-INF/dataAccessContext-hibernate.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/dataAccessContext-hibernate.xml]: Invocation of init method failed; nested exception is org.hibernate.DuplicateMappingException: Duplicate class/entity mapping cn.net.openid.jos.domain.Attribute [............] (This isn't my entire log file. The other errors are similar.) ---------catalina.log 12/Set/2008 10:17:57 org.apache.catalina.startup.HostConfig checkResources INFO: Undeploying context [/jos-webapp-1.1.0] 12/Set/2008 10:17:57 org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive jos-webapp-1.1.0.war 12/Set/2008 10:17:58 org.apache.catalina.startup.TldConfig tldScanJar SEVERE: Exception processing TLD META-INF/sitemesh-decorator.tld in JAR at resource path /home/dizinha/Desktop/apache-tomcat-6.0.18/ webapps/jos-webapp-1.1.0/WEB-INF/lib/sitemesh-2.3.jar in context /jos- webapp-1.1.0 java.lang.NullPointerException

      at org.apache.xerces.impl.dtd.models.DFAContentModel.buildDFA()
    2. Xerces2-j
      AbstractSAXParser.parse
      1. org.apache.xerces.impl.dtd.models.DFAContentModel.buildDFA(DFAContentModel.java:538)
      2. org.apache.xerces.impl.dtd.models.DFAContentModel.<init>(DFAContentModel.java:253)
      3. org.apache.xerces.impl.dtd.DTDGrammar.createChildModel(DTDGrammar.java:2279)
      4. org.apache.xerces.impl.dtd.DTDGrammar.getElementContentModelValidator(DTDGrammar.java:1735)
      5. org.apache.xerces.impl.dtd.DTDGrammar.getElementDecl(DTDGrammar.java:1279)
      6. org.apache.xerces.impl.dtd.XMLDTDValidator.getContentSpecType(XMLDTDValidator.java:1672)
      7. org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDValidator.java:1866)
      8. org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:752)
      9. org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:752)
      10. org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(XMLDocumentScannerImpl.java:942)
      11. org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1520)
      12. org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
      13. org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:524)
      14. org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:580)
      15. org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
      16. org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1169)
      16 frames
    3. Glassfish Core
      ContainerBase$ContainerBackgroundProcessor.run
      1. org.apache.tomcat.util.digester.Digester.parse(Digester.java:1644)
      2. org.apache.catalina.startup.TldConfig.tldScanStream(TldConfig.java:518)
      3. org.apache.catalina.startup.TldConfig.tldScanJar(TldConfig.java:476)
      4. org.apache.catalina.startup.TldConfig.execute(TldConfig.java:301)
      5. org.apache.catalina.core.StandardContext.processTlds(StandardContext.java:4448)
      6. org.apache.catalina.core.StandardContext.start(StandardContext.java:4248)
      7. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
      8. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
      9. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
      10. org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830)
      11. org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:719)
      12. org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
      13. org.apache.catalina.startup.HostConfig.check(HostConfig.java:1217)
      14. org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
      15. org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
      16. org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
      17. org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
      18. org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
      19. org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
      19 frames
    4. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:595)
      1 frame