org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'portletModeHandlerMapping' defined in PortletContext resource [/WEB-INF/ING-COP-Payment-List-portlet.xml]: Could not resolve parent bean definition 'abstractPortletHandlerMapping'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'abstractPortletHandlerMapping' is defined

Spring JIRA | Dominik | 6 years ago
  1. 0

    Hi, I have following problem. It is look like jboss is first calling portlet.xml and then web.xml (I checked on websphere and this problem doeas not occure). The error look like this: 2011-05-31 10:42:13,240 ERROR [org.springframework.web.portlet.DispatcherPortlet] (main) Context initialization failed org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'portletModeHandlerMapping' defined in PortletContext resource [/WEB-INF/ING-COP-Payment-List-portlet.xml]: Could not resolve parent bean definition 'abstractPortletHandlerMapping'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'abstractPortletHandlerMapping' is defined at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:1055) in web.xml i have: <context-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/classes/spring/appContext*.xml</param-value> <!-- i tried also list files instead of using star. Effect is the same --> </context-param> In appContext-portlet.xml <bean id="abstractPortletHandlerMapping" class="org.springframework.web.portlet.handler.PortletModeHandlerMapping" abstract="true"> <property name="interceptors"> <list> <ref bean="portletSessionContextIntegrationInterceptor" /> <ref bean="portletProcessingInterceptor" /> </list> </property> </bean> In portlet.xml with is in root directory (as well as web.xml) <portlet> <description>ING COP PaymentRequest List</description> <portlet-name>ING-COP-PaymentRequest-List</portlet-name> <display-name>blabla</display-name> <portlet-class>org.springframework.web.portlet.DispatcherPortlet</portlet-class> <supports> <mime-type>text/html</mime-type> <portlet-mode>VIEW</portlet-mode> </supports> I am sure that portlet.xml is callig before web.xml because i made an error in web.xml (for testing reason) and in log i see that error after jboss finish with portlet.xml

    Spring JIRA | 6 years ago | Dominik
    org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'portletModeHandlerMapping' defined in PortletContext resource [/WEB-INF/ING-COP-Payment-List-portlet.xml]: Could not resolve parent bean definition 'abstractPortletHandlerMapping'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'abstractPortletHandlerMapping' is defined
  2. 0

    Hi, I have following problem. It is look like jboss is first calling portlet.xml and then web.xml (I checked on websphere and this problem doeas not occure). The error look like this: 2011-05-31 10:42:13,240 ERROR [org.springframework.web.portlet.DispatcherPortlet] (main) Context initialization failed org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'portletModeHandlerMapping' defined in PortletContext resource [/WEB-INF/ING-COP-Payment-List-portlet.xml]: Could not resolve parent bean definition 'abstractPortletHandlerMapping'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'abstractPortletHandlerMapping' is defined at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:1055) in web.xml i have: <context-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/classes/spring/appContext*.xml</param-value> <!-- i tried also list files instead of using star. Effect is the same --> </context-param> In appContext-portlet.xml <bean id="abstractPortletHandlerMapping" class="org.springframework.web.portlet.handler.PortletModeHandlerMapping" abstract="true"> <property name="interceptors"> <list> <ref bean="portletSessionContextIntegrationInterceptor" /> <ref bean="portletProcessingInterceptor" /> </list> </property> </bean> In portlet.xml with is in root directory (as well as web.xml) <portlet> <description>ING COP PaymentRequest List</description> <portlet-name>ING-COP-PaymentRequest-List</portlet-name> <display-name>blabla</display-name> <portlet-class>org.springframework.web.portlet.DispatcherPortlet</portlet-class> <supports> <mime-type>text/html</mime-type> <portlet-mode>VIEW</portlet-mode> </supports> I am sure that portlet.xml is callig before web.xml because i made an error in web.xml (for testing reason) and in log i see that error after jboss finish with portlet.xml

    Spring JIRA | 6 years ago | Dominik
    org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'portletModeHandlerMapping' defined in PortletContext resource [/WEB-INF/ING-COP-Payment-List-portlet.xml]: Could not resolve parent bean definition 'abstractPortletHandlerMapping'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'abstractPortletHandlerMapping' is defined
  3. 0

    RE: Context initialization failed - Forums | Liferay

    liferay.com | 1 year ago
    org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'com.liferay.counter.service.persistence.CounterPersistence' defined in class path resource [META-INF/counter-spring.xml]: Could not resolve parent bean definition 'basePersistence'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'basePersistence' is defined
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    plugin sdk portlet deployment errors when try in netbeans IDE - Forums | Liferay

    liferay.com | 1 year ago
    org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'com.portlet.business.service.businessentityLocalService.velocity' defined in ServletContext resource [/WEB-INF/classes/META-INF/portlet-spring.xml]: Could not resolve parent bean definition 'baseVelocityService'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'baseVelocityService' is defined
  6. 0

    plugin sdk portlet deployment errors when try in netbeans IDE - Forums | Liferay

    liferay.com | 1 year ago
    org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'com.portlet.business.service.businessentityLocalService.velocity' defined in ServletContext resource [/WEB-INF/classes/META-INF/portlet-spring.xml]: Could not resolve parent bean definition 'baseVelocityService'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'baseVelocityService' is defined

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

      Invalid bean definition with name 'portletModeHandlerMapping' defined in PortletContext resource [/WEB-INF/ING-COP-Payment-List-portlet.xml]: Could not resolve parent bean definition 'abstractPortletHandlerMapping'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'abstractPortletHandlerMapping' is defined

      at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition()
    2. Spring Beans
      AbstractBeanFactory.getMergedBeanDefinition
      1. org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:1055)
      1 frame