org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.samplestrutsliferay.struts.service.ItemALocalService' defined in ServletContext resource [/WEB-INF/classes/META-INF/portlet-spring.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.samplestrutsliferay.struts.service.persistence.ItemAPersistence' defined in ServletContext resource [/WEB-INF/classes/META-INF/portlet-spring.xml]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError

liferay.com | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    org.hibernate.cache.CacheException: java.lang.IllegalStateException - Forums | Liferay

    liferay.com | 1 year ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.samplestrutsliferay.struts.service.ItemALocalService' defined in ServletContext resource [/WEB-INF/classes/META-INF/portlet-spring.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.samplestrutsliferay.struts.service.persistence.ItemAPersistence' defined in ServletContext resource [/WEB-INF/classes/META-INF/portlet-spring.xml]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError
  2. 0

    org.hibernate.cache.CacheException: java.lang.IllegalStateException - Forums | Liferay

    liferay.com | 1 year ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.samplestrutsliferay.struts.service.ItemALocalService' defined in ServletContext resource [/WEB-INF/classes/META-INF/portlet-spring.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.samplestrutsliferay.struts.service.persistence.ItemAPersistence' defined in ServletContext resource [/WEB-INF/classes/META-INF/portlet-spring.xml]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError
  3. 0

    org.hibernate.cache.CacheException: java.lang.IllegalStateException - Forums | Liferay

    liferay.com | 11 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.samplestrutsliferay.struts.service.ItemALocalService' defined in ServletContext resource [/WEB-INF/classes/META-INF/portlet-spring.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.samplestrutsliferay.struts.service.persistence.ItemAPersistence' defined in ServletContext resource [/WEB-INF/classes/META-INF/portlet-spring.xml]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    org.hibernate.cache.CacheException: java.lang.IllegalStateException - Community Forums | Liferay

    liferay.com | 6 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.samplestrutsliferay.struts.service.ItemALocalService' defined in ServletContext resource [/WEB-INF/classes/META-INF/portlet-spring.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.samplestrutsliferay.struts.service.persistence.ItemAPersistence' defined in ServletContext resource [/WEB-INF/classes/META-INF/portlet-spring.xml]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError
  6. 0

    Context initialization failed. Error creating bean - Forums | Liferay

    liferay.com | 1 year ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.example.customer.service.CustomerDtlsLocalService' defined in ServletContext resource [/WEB-INF/classes/META-INF/portlet-spring.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.example.customer.service.CustomerDtlsService' defined in ServletContext resource [/WEB-INF/classes/META-INF/portlet-spring.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.example.customer.service.persistence.CustomerDtlsPersistence' defined in ServletContext resource [/WEB-INF/classes/META-INF/portlet-spring.xml]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError

    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.NullPointerException

      No message provided

      at com.liferay.portal.configuration.ConfigurationImpl.getFileName()
    2. Liferay Portal Impl
      ConfigurationFactoryImpl.getConfiguration
      1. com.liferay.portal.configuration.ConfigurationImpl.getFileName(ConfigurationImpl.java:336)
      2. com.liferay.portal.configuration.ConfigurationImpl.<init>(ConfigurationImpl.java:120)
      3. com.liferay.portal.configuration.ConfigurationImpl.<init>(ConfigurationImpl.java:61)
      4. com.liferay.portal.configuration.ConfigurationFactoryImpl.getConfiguration(ConfigurationFactoryImpl.java:28)
      4 frames
    3. Liferay Portal Service
      ConfigurationFactoryUtil.getConfiguration
      1. com.liferay.portal.kernel.configuration.ConfigurationFactoryUtil.getConfiguration(ConfigurationFactoryUtil.java:25)
      1 frame
    4. Liferay Util Java
      ServiceProps.<clinit>
      1. com.liferay.util.service.ServiceProps.<init>(ServiceProps.java:65)
      2. com.liferay.util.service.ServiceProps.<clinit>(ServiceProps.java:69)
      2 frames
    5. com.liferay.samplestrutsliferay
      ItemAPersistenceImpl.<clinit>
      1. com.liferay.samplestrutsliferay.struts.model.impl.ItemAModelImpl.<clinit>(ItemAModelImpl.java:66)
      2. com.liferay.samplestrutsliferay.struts.service.persistence.ItemAPersistenceImpl.<clinit>(ItemAPersistenceImpl.java:72)
      2 frames
    6. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      4 frames
    7. Spring Beans
      AbstractBeanFactory.getBean
      1. org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
      2. org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:74)
      3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:958)
      4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911)
      5. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
      6. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
      7. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
      8. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
      9. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
      10. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
      10 frames
    8. Liferay Portal Impl
      BeanReferenceAnnotationBeanPostProcessor.postProcessBeforeInitialization
      1. com.liferay.portal.spring.annotation.BeanReferenceAnnotationBeanPostProcessor._autoInject(BeanReferenceAnnotationBeanPostProcessor.java:106)
      2. com.liferay.portal.spring.annotation.BeanReferenceAnnotationBeanPostProcessor._autoInject(BeanReferenceAnnotationBeanPostProcessor.java:148)
      3. com.liferay.portal.spring.annotation.BeanReferenceAnnotationBeanPostProcessor.postProcessBeforeInitialization(BeanReferenceAnnotationBeanPostProcessor.java:57)
      3 frames
    9. Spring Beans
      DefaultListableBeanFactory.preInstantiateSingletons
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
      2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413)
      3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
      4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
      5. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
      6. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
      7. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
      8. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
      9. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
      9 frames
    10. 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
    11. 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
    12. Liferay Portal Impl
      PortletContextLoaderListener.contextInitialized
      1. com.liferay.portal.spring.context.PortletContextLoaderListener.contextInitialized(PortletContextLoaderListener.java:71)
      1 frame
    13. Liferay Portal Service
      PortalClassLoaderServletContextListener.contextInitialized
      1. com.liferay.portal.kernel.servlet.PortalClassLoaderServletContextListener.doPortalInit(PortalClassLoaderServletContextListener.java:91)
      2. com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:42)
      3. com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:52)
      4. com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:50)
      5. com.liferay.portal.kernel.servlet.PortalClassLoaderServletContextListener.contextInitialized(PortalClassLoaderServletContextListener.java:52)
      5 frames
    14. Glassfish Core
      ContainerBase$ContainerBackgroundProcessor.run
      1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4135)
      2. org.apache.catalina.core.StandardContext.start(StandardContext.java:4630)
      3. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
      4. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
      5. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
      6. org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)
      7. org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)
      8. org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
      9. org.apache.catalina.startup.HostConfig.check(HostConfig.java:1345)
      10. org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:303)
      11. org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
      12. org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
      13. org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
      14. org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
      15. org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
      15 frames
    15. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:619)
      1 frame