org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liferaySessionFactory' defined in ServletContext resource [/WEB-INF/classes/META-INF/hibernate-spring.xml]: Cannot resolve reference to bean 'portletClassLoader' while setting bean property 'sessionFactoryClassLoader'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'portletClassLoader' is defined

liferay.com | 2 months ago
  1. 0

    BeanLocator has not been set for servlet context - Forums | Liferay

    liferay.com | 1 year ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liferaySessionFactory' defined in ServletContext resource [/WEB-INF/classes/META-INF/hibernate-spring.xml]: Cannot resolve reference to bean 'portletClassLoader' while setting bean property 'sessionFactoryClassLoader'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'portletClassLoader' is defined
  2. 0

    RE: BeanLocator has not been set for servlet context - Forums | Liferay

    liferay.com | 12 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liferaySessionFactory' defined in ServletContext resource [/WEB-INF/classes/META-INF/hibernate-spring.xml]: Cannot resolve reference to bean 'portletClassLoader' while setting bean property 'sessionFactoryClassLoader'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'portletClassLoader' is defined
  3. 0

    RE: BeanLocator has not been set for servlet context - Forums | Liferay

    liferay.com | 1 year ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liferaySessionFactory' defined in ServletContext resource [/WEB-INF/classes/META-INF/hibernate-spring.xml]: Cannot resolve reference to bean 'portletClassLoader' while setting bean property 'sessionFactoryClassLoader'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'portletClassLoader' is defined
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    BeanLocator has not been set for servlet context - Forums | Liferay

    liferay.com | 8 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liferaySessionFactory' defined in ServletContext resource [/WEB-INF/classes/META-INF/hibernate-spring.xml]: Cannot resolve reference to bean 'portletClassLoader' while setting bean property 'sessionFactoryClassLoader'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'portletClassLoader' is defined
  6. 0

    RE: BeanLocator has not been set for servlet context - Forums | Liferay

    liferay.com | 11 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liferaySessionFactory' defined in ServletContext resource [/WEB-INF/classes/META-INF/hibernate-spring.xml]: Cannot resolve reference to bean 'portletClassLoader' while setting bean property 'sessionFactoryClassLoader'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'portletClassLoader' is defined

  1. Andreas Häber 2 times, last 4 weeks ago
  2. wendellpereira 12 times, last 2 months ago
  3. marcbouvierdav 7 times, last 3 months ago
  4. linxiaolong 7 times, last 4 months ago
  5. ggghjh 1 times, last 5 months ago
1 more registered users
94 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. org.springframework.beans.factory.NoSuchBeanDefinitionException

    No bean named 'portletClassLoader' is defined

    at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition()
  2. Spring Beans
    DefaultListableBeanFactory.preInstantiateSingletons
    1. org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:527)
    2. org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1083)
    3. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:274)
    4. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
    5. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
    6. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
    7. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)
    8. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
    9. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
    10. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    11. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
    12. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    13. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
    14. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
    15. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
    15 frames
  3. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
    2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
    2 frames
  4. Spring
    ContextLoaderListener.contextInitialized
    1. org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
    2. org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
    3. org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
    3 frames
  5. Liferay Portal Impl
    PortletContextLoaderListener.contextInitialized
    1. com.liferay.portal.spring.context.PortletContextLoaderListener.contextInitialized(PortletContextLoaderListener.java:88)
    1 frame
  6. Liferay Portal Service
    PortalClassLoaderServletContextListener.contextInitialized
    1. com.liferay.portal.kernel.servlet.PortalClassLoaderServletContextListener.doPortalInit(PortalClassLoaderServletContextListener.java:93)
    2. com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:42)
    3. com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:61)
    4. com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:53)
    5. com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:50)
    6. com.liferay.portal.kernel.servlet.PortalClassLoaderServletContextListener.contextInitialized(PortalClassLoaderServletContextListener.java:52)
    6 frames
  7. Glassfish Core
    ContainerBase$ContainerBackgroundProcessor.run
    1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
    2. org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
    3. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
    4. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
    5. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
    6. org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)
    7. org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)
    8. org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)
    9. org.apache.catalina.startup.HostConfig.check(HostConfig.java:1385)
    10. org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:306)
    11. org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
    12. org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1389)
    13. org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1653)
    14. org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1662)
    15. org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1642)
    15 frames
  8. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:619)
    1 frame