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 at org .springframework .beans .factory .support .BeanDefinitionValueResolver .resolveInnerBean(BeanDefinitionValueResolver.java: 230) at org .springframework .beans .factory .support .BeanDefinitionValueResolver .resolveValueIfNecessary(BeanDefinitionValueResolver.java: 117) at org .springframework .beans .factory .support .AbstractAutowireCapableBeanFactory .applyPropertyValues(AbstractAutowireCapableBeanFactory.java: 1244) at org .springframework .beans .factory .support .AbstractAutowireCapableBeanFactory .populateBean(AbstractAutowireCapableBeanFactory.java: 1008) at org .springframework .beans .factory .support .AbstractAutowireCapableBeanFactory .doCreateBean(AbstractAutowireCapableBeanFactory.java: 470) at org .springframework .beans.factory.support.AbstractAutowireCapableBeanFactory $1.run(AbstractAutowireCapableBeanFactory.java:409)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by dizinha, 10 months ago
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
via Google Groups by Пеђа, 10 months ago
Error creating bean with name 'mailSender' defined in ServletContext resource [/WEB-INF/config/applicationContext-mail.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/activation/FileTypeMap at org
via grokbase.com by Unknown author, 2 years ago
Error creating bean with name 'cxfse:proxy#d37507': FactoryBean threw exception on object creation; nested exception is javax.naming.NotContextException: java:comp/env/jbi/ClientFactory at org .springframework .beans .factory .support
via Stack Overflow by MikeHoss
, 2 years ago
Error creating bean with name 'cacheManager' defined in class path resource [cache-context.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException at
via Oracle Community by 435184, 1 year ago
Error creati ng bean with name 'ClusterInterface' defined in ServletContext resource [/WEB-IN F/fabric-config-core.xml]: Instantiation of bean failed; nested exception is org .springframework.beans.BeanInstantiationException: Could not instantiate
via coderanch.com by Unknown author, 1 year ago
Error creating bean wit h name 'transactionManager' defined in ServletContext resource [/WEB-INF/classes /beans.xml]: Invocation of init method failed; nested exception is java.lang.Ill egalStateException: No JTA UserTransaction available
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 at org .springframework .beans .factory .support .BeanDefinitionValueResolver .resolveInnerBean(BeanDefinitionValueResolver.java: 230) at org .springframework .beans .factory .support .BeanDefinitionValueResolver .resolveValueIfNecessary(BeanDefinitionValueResolver.java: 117) at org .springframework .beans .factory .support .AbstractAutowireCapableBeanFactory .applyPropertyValues(AbstractAutowireCapableBeanFactory.java: 1244) at org .springframework .beans .factory .support .AbstractAutowireCapableBeanFactory .populateBean(AbstractAutowireCapableBeanFactory.java: 1008) at org .springframework .beans .factory .support .AbstractAutowireCapableBeanFactory .doCreateBean(AbstractAutowireCapableBeanFactory.java: 470) at org .springframework .beans.factory.support.AbstractAutowireCapableBeanFactory $1.run(AbstractAutowireCapableBeanFactory.java:409)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.