org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'opportunityPreferencesService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private be.aca.literay.faces.util.FacesUtil be.aca.literay.faces.preferences.PreferencesServiceFacesImpl.facesUtil; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'facesUtil': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.liferay.portal.util.Portal be.aca.literay.faces.util.FacesUtil.portal; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.liferay.portal.util.Portal] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@javax.inject.Inject()}

liferay.com | 4 months ago
  1. 0

    RE: Unable to deploy application.war in liferay 6.1. using jboss7.1 - Forums | Liferay

    liferay.com | 8 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'opportunityPreferencesService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private be.aca.literay.faces.util.FacesUtil be.aca.literay.faces.preferences.PreferencesServiceFacesImpl.facesUtil; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'facesUtil': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.liferay.portal.util.Portal be.aca.literay.faces.util.FacesUtil.portal; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.liferay.portal.util.Portal] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@javax.inject.Inject()}
  2. 0

    RE: Unable to deploy application.war in liferay 6.1. using jboss7.1 - Forums | Liferay

    liferay.com | 9 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'opportunityPreferencesService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private be.aca.literay.faces.util.FacesUtil be.aca.literay.faces.preferences.PreferencesServiceFacesImpl.facesUtil; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'facesUtil': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.liferay.portal.util.Portal be.aca.literay.faces.util.FacesUtil.portal; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.liferay.portal.util.Portal] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@javax.inject.Inject()}
  3. 0

    RE: Unable to deploy application.war in liferay 6.1. using jboss7.1 - Forums

    liferay.com | 4 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'opportunityPreferencesService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private be.aca.literay.faces.util.FacesUtil be.aca.literay.faces.preferences.PreferencesServiceFacesImpl.facesUtil; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'facesUtil': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.liferay.portal.util.Portal be.aca.literay.faces.util.FacesUtil.portal; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.liferay.portal.util.Portal] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@javax.inject.Inject()}
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Problems getting facebook client to work

    GitHub | 2 years ago | pashtika
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userApprovalHandler' defined in ServletContext resource [/WEB-INF/spring-security.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'tokenServices' of bean class [org.springframework.security.oauth2.provider.approval.TokenStoreUserApprovalHandler]: Bean property 'tokenServices' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
  6. 0

    @XmlElementRef issue: Invalid XmlElementRef on property {property}, Referenced element not declared

    Stack Overflow | 2 years ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'marshaller': Invocation of init method failed; nested exception is org.springframework.oxm.UncategorizedMappingException: Unknown JAXB exception; nested exception is javax.xml.bind.JAXBException: Exception Description: Invalid XmlElementRef on property expression on class org.opengeoportal.ogc.wmc.jaxb.UpperBoundaryType. Referenced Element not declared. - with linked exception: [Exception [EclipseLink-50006] (Eclipse Persistence Services - 2.5.2.v20131113-a7346c6): org.eclipse.persistence.exceptions.JAXBException Exception Description: Invalid XmlElementRef on property expression on class org.opengeoportal.ogc.wmc.jaxb.UpperBoundaryType. Referenced Element not declared.]

  1. Andreas Häber 2 times, last 1 month 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 qualifying bean of type [com.liferay.portal.util.Portal] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@javax.inject.Inject()}

    at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException()
  2. Spring Beans
    DefaultListableBeanFactory.preInstantiateSingletons
    1. org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:986)[spring-beans-3.2.2.RELEASE.jar:3.2.2.RELEASE]
    2. org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:856)[spring-beans-3.2.2.RELEASE.jar:3.2.2.RELEASE]
    3. org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:768)[spring-beans-3.2.2.RELEASE.jar:3.2.2.RELEASE]
    4. org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:486)[spring-beans-3.2.2.RELEASE.jar:3.2.2.RELEASE]
    5. org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)[spring-beans-3.2.2.RELEASE.jar:3.2.2.RELEASE]
    6. org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:285)[spring-beans-3.2.2.RELEASE.jar:3.2.2.RELEASE]
    7. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1122)[spring-beans-3.2.2.RELEASE.jar:3.2.2.RELEASE]
    8. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:522)[spring-beans-3.2.2.RELEASE.jar:3.2.2.RELEASE]
    9. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)[spring-beans-3.2.2.RELEASE.jar:3.2.2.RELEASE]
    10. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)[spring-beans-3.2.2.RELEASE.jar:3.2.2.RELEASE]
    11. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)[spring-beans-3.2.2.RELEASE.jar:3.2.2.RELEASE]
    12. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)[spring-beans-3.2.2.RELEASE.jar:3.2.2.RELEASE]
    13. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)[spring-beans-3.2.2.RELEASE.jar:3.2.2.RELEASE]
    14. org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:910)[spring-beans-3.2.2.RELEASE.jar:3.2.2.RELEASE]
    15. org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:853)[spring-beans-3.2.2.RELEASE.jar:3.2.2.RELEASE]
    16. org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:768)[spring-beans-3.2.2.RELEASE.jar:3.2.2.RELEASE]
    17. org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:486)[spring-beans-3.2.2.RELEASE.jar:3.2.2.RELEASE]
    18. org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)[spring-beans-3.2.2.RELEASE.jar:3.2.2.RELEASE]
    19. org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:285)[spring-beans-3.2.2.RELEASE.jar:3.2.2.RELEASE]
    20. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1122)[spring-beans-3.2.2.RELEASE.jar:3.2.2.RELEASE]
    21. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:522)[spring-beans-3.2.2.RELEASE.jar:3.2.2.RELEASE]
    22. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)[spring-beans-3.2.2.RELEASE.jar:3.2.2.RELEASE]
    23. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)[spring-beans-3.2.2.RELEASE.jar:3.2.2.RELEASE]
    24. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)[spring-beans-3.2.2.RELEASE.jar:3.2.2.RELEASE]
    25. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)[spring-beans-3.2.2.RELEASE.jar:3.2.2.RELEASE]
    26. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)[spring-beans-3.2.2.RELEASE.jar:3.2.2.RELEASE]
    27. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:626)[spring-beans-3.2.2.RELEASE.jar:3.2.2.RELEASE]
    27 frames
  3. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)[spring-context-3.2.2.RELEASE.jar:3.2.2.RELEASE]
    2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)[spring-context-3.2.2.RELEASE.jar:3.2.2.RELEASE]
    2 frames
  4. Spring
    ContextLoaderListener.contextInitialized
    1. org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)[spring-web-3.2.2.RELEASE.jar:3.2.2.RELEASE]
    2. org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)[spring-web-3.2.2.RELEASE.jar:3.2.2.RELEASE]
    3. org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)[spring-web-3.2.2.RELEASE.jar:3.2.2.RELEASE]
    3 frames
  5. Liferay Portal Service
    SecurePluginContextListener.instantiatingListeners
    1. com.liferay.portal.kernel.servlet.SecurePluginContextListener.instantiatingListener(SecurePluginContextListener.java:333)[portal-service.jar:]
    2. com.liferay.portal.kernel.servlet.SecurePluginContextListener.instantiatingListeners(SecurePluginContextListener.java:157)[portal-service.jar:]
    2 frames
  6. Liferay Portal Impl
    HotDeployImpl.fireDeployEvent
    1. com.liferay.portal.deploy.hot.ServletContextListenerHotDeployListener.doInvokeDeploy(ServletContextListenerHotDeployListener.java:66)
    2. com.liferay.portal.deploy.hot.ServletContextListenerHotDeployListener.invokeDeploy(ServletContextListenerHotDeployListener.java:34)
    3. com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:188)
    4. com.liferay.portal.deploy.hot.HotDeployImpl.fireDeployEvent(HotDeployImpl.java:96)
    4 frames
  7. Liferay Portal Service
    SecurePluginContextListener.contextInitialized
    1. com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:27)[portal-service.jar:]
    2. com.liferay.portal.kernel.servlet.PluginContextListener.fireDeployEvent(PluginContextListener.java:151)[portal-service.jar:]
    3. com.liferay.portal.kernel.servlet.PluginContextListener.doPortalInit(PluginContextListener.java:141)[portal-service.jar:]
    4. com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:42)[portal-service.jar:]
    5. com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:64)[portal-service.jar:]
    6. com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:56)[portal-service.jar:]
    7. com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:52)[portal-service.jar:]
    8. com.liferay.portal.kernel.servlet.PluginContextListener.contextInitialized(PluginContextListener.java:103)[portal-service.jar:]
    9. com.liferay.portal.kernel.servlet.SecurePluginContextListener.contextInitialized(SecurePluginContextListener.java:145)[portal-service.jar:]
    9 frames
  8. Glassfish Core
    StandardContext.start
    1. org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392)[jbossweb-7.0.13.Final.jar:]
    2. org.apache.catalina.core.StandardContext.start(StandardContext.java:3850)[jbossweb-7.0.13.Final.jar:]
    2 frames
  9. JBoss Web
    WebDeploymentService.start
    1. org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90)[jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
    1 frame
  10. JBoss Modular Service Container
    ServiceControllerImpl$StartTask.run
    1. org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
    2. org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
    2 frames
  11. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)[classes.jar:1.6.0_65]
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)[classes.jar:1.6.0_65]
    3. java.lang.Thread.run(Thread.java:695)[classes.jar:1.6.0_65]
    3 frames