org.springframework.beans.factory.BeanDefinitionStoreException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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
    via by Dominik,
  • 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
    via by Dominik,
  • Remote unit testing | Alfresco Community
    via by Unknown author,
  • Remote unit testing | Alfresco Community
    via by Unknown author,
    • 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)
    No Bugmate found.