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 | 9 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    jos1.1 problem

    Google Groups | 9 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

    Deployment error Could not create a new instance of class [SearchableGrailsPlugin]!

    Stack Overflow | 4 years ago | Lee Rooy
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pluginManager' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is org.codehaus.groovy.grails.exceptions.NewInstanceCreationException: Could not create a new instance of class [SearchableGrailsPlugin]!
  3. 0

    Connect to a Database with Plugins SDK - Wiki | Liferay

    liferay.com | 2 years ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.spring.aop.ServiceBeanAutoProxyCreator#0' defined in ServletContext resource [/WEB-INF/classes/META-INF/base-spring.xml]: Cannot resolve reference to bean 'serviceAdvice' while setting bean property 'methodInterceptor'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'serviceAdvice' is defined at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveRef ­erence(BeanDefinitionValueResolver.java:328) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveVal ­ueIfNecessary(BeanDefinitionValueResolver.java:106) ...................... ....... ­.................
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    org.hibernate.MappingException: Unknown entity: library.model.Person

    programwith.com | 1 year ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/library-servlet.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/persistence/NamedStoredProcedureQuery at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:292) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1185) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:700) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4681) at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5184) at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5179) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
  6. 0

    DWR - Users - DWR 2/3 not comptabile with Spring 4

    nabble.com | 2 years ago
    org.springframework.beans.factory.BeanCreationException: Error creating > bean with name 'urlMapping' defined in ServletContext resource > [/WEB-INF/admin-servlet.xml]: Initialization of bean failed; nested > exception is org.springframework.beans.factory.BeanCreationException: > Error creating bean with name 'dwrController': Invocation of init > method failed; nested exception is java.lang.NullPointerException > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFa > ctory.doCreateBean(AbstractAutowireCapableBeanFactory.java:547) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFa > ctory.createBean(AbstractAutowireCapableBeanFactory.java:475) > at > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObje > ct(AbstractBeanFactory.java:304) > at > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry. > getSingleton(DefaultSingletonBeanRegistry.java:228) > at > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean > (AbstractBeanFactory.java:300) > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(A > bstractBeanFactory.java:195) > at > org.springframework.beans.factory.support.DefaultListableBeanFactory.pr > eInstantiateSingletons(DefaultListableBeanFactory.java:700) > at > org.springframework.context.support.AbstractApplicationContext.finishBe > anFactoryInitialization(AbstractApplicationContext.java:760) > at > org.springframework.context.support.AbstractApplicationContext.refresh( > AbstractApplicationContext.java:482) > at > org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWeb > ApplicationContext(FrameworkServlet.java:643) > at > org.springframework.web.servlet.FrameworkServlet.createWebApplicationCo > ntext(FrameworkServlet.java:606) > at > org.springframework.web.servlet.FrameworkServlet.createWebApplicationCo > ntext(FrameworkServlet.java:657) > at > org.springframework.web.servlet.FrameworkServlet.initWebApplicationCont > ext(FrameworkServlet.java:525) > at > org.springframework.web.servlet.FrameworkServlet.initServletBean(Framew > orkServlet.java:466) > at > org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.ja > va:136) > at javax.servlet.GenericServlet.init(GenericServlet.java:158) > at > org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.ja > va:1284) > at > org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.ja > va:1197) > at > org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087 > ) > at > org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext. > java:5210) > at > org.apache.catalina.core.StandardContext.startInternal(StandardContext. > java:5493) > at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) > at > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.ja > va:1559) > at > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.ja > va:1549) > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) > at java.util.concurrent.FutureTask.run(FutureTask.java:166)

    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