org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: component class not found: com.GestionEtudiant.model.EtudiantId

  1. 0

    org.springframework.beans.factory.BeanCreationException Error creating bean with name 'sessionFactory' defined in ServletContext

    dolinked.com | 1 year ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: component class not found: com.GestionEtudiant.model.EtudiantId
  2. 0

    org.springframework.beans.factory.BeanCreationException Error creating bean with name 'sessionFactory' defined in ServletContext

    Stack Overflow | 3 years ago | Zouhair Kasmi
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: component class not found: com.GestionEtudiant.model.EtudiantId
  3. 0

    Spring framework hibernate beans

    Stack Overflow | 3 years ago | Mateusz Sulima
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/our-servlet.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Unable to load class [ app.our.entity.Company] declared in Hibernate configuration <mapping/> entry
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    HTTP Status 500 - Servlet.init() for servlet spring threw exception

    Stack Overflow | 4 years ago | user1834781
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/spring-servlet.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Unable to load class declared as <mapping class="com.don.library.form.Movie"/> in the configuration:
  6. 0

    HTTP status 500 error when deploying new spring 4 application | java - android - spring - spring-mvc

    solutionscore.com | 1 year ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/spring-servlet.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Unable to load class declared as <mapping class="com.don.library.form.Movie"/> in the configuration:

  1. Piz 2027 times, last 4 months ago
  2. Justin 1 times, last 5 months ago
  3. Kawada 3 times, last 7 months ago
  4. Tahir 2 times, last 2 months ago
  5. jedcua 1 times, last 4 months ago
4 more registered users
88 unregistered visitors
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. java.lang.ClassNotFoundException

    com.GestionEtudiant.model.EtudiantId

    at org.apache.catalina.loader.WebappClassLoader.loadClass()
  2. Glassfish Core
    WebappClassLoader.loadClass
    1. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1676)
    2. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1521)
    2 frames
  3. Java RT
    Class.forName
    1. java.lang.Class.forName0(Native Method)
    2. java.lang.Class.forName(Unknown Source)
    2 frames
  4. Hibernate
    ReflectHelper.classForName
    1. org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:100)
    1 frame
  5. Hibernate
    Configuration.buildSessionFactory
    1. org.hibernate.mapping.Component.getComponentClass(Component.java:101)
    2. org.hibernate.tuple.component.PojoComponentTuplizer.buildGetter(PojoComponentTuplizer.java:133)
    3. org.hibernate.tuple.component.AbstractComponentTuplizer.<init>(AbstractComponentTuplizer.java:43)
    4. org.hibernate.tuple.component.PojoComponentTuplizer.<init>(PojoComponentTuplizer.java:38)
    5. org.hibernate.tuple.component.ComponentEntityModeToTuplizerMapping.<init>(ComponentEntityModeToTuplizerMapping.java:52)
    6. org.hibernate.tuple.component.ComponentMetamodel.<init>(ComponentMetamodel.java:50)
    7. org.hibernate.mapping.Component.buildType(Component.java:152)
    8. org.hibernate.mapping.Component.getType(Component.java:145)
    9. org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:253)
    10. org.hibernate.mapping.RootClass.validate(RootClass.java:193)
    11. org.hibernate.cfg.Configuration.validate(Configuration.java:1102)
    12. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1287)
    12 frames
  6. Hibernate
    AbstractSessionFactoryBean.afterPropertiesSet
    1. org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:805)
    2. org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:745)
    3. org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:134)
    3 frames
  7. Spring Beans
    DefaultListableBeanFactory.preInstantiateSingletons
    1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1612)
    2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1549)
    3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
    4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
    5. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304)
    6. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
    7. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300)
    8. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195)
    9. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:684)
    9 frames
  8. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760)
    2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
    2 frames
  9. Spring
    ContextLoaderListener.contextInitialized
    1. org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403)
    2. org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
    3. org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)
    3 frames
  10. Glassfish Core
    StandardContext$1.call
    1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4701)
    2. org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5204)
    3. org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5199)
    3 frames
  11. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask.run(Unknown Source)
    2. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    3. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    4. java.lang.Thread.run(Unknown Source)
    4 frames