Foros de discusión

Spring MVC Portlet and Events

Martin Phee, modificado hace 12 años.

Spring MVC Portlet and Events

Junior Member Mensajes: 25 Fecha de incorporación: 9/05/11 Mensajes recientes
If I add @EventMapping to a controller the portlet starts throwing exceptions. Can't figure out what's going on.

[carbon] 2011-05-26 02:52:41,721 ERROR DispatcherPortlet.initPortletBean(276) | Context initialization failed
java.lang.IllegalStateException: Root context attribute is not of type WebApplicationContext: Root WebApplicationContext: startup date [Thu May 26 02:42:39 GMT 2011]; root of context hierarchy
at org.springframework.web.portlet.context.PortletApplicationContextUtils.getWebApplicationContext(PortletApplicationContextUtils.java:80)
at org.springframework.web.portlet.FrameworkPortlet.initPortletApplicationContext(FrameworkPortlet.java:293)
at org.springframework.web.portlet.FrameworkPortlet.initPortletBean(FrameworkPortlet.java:268)
at org.springframework.web.portlet.GenericPortletBean.init(GenericPortletBean.java:116)
at javax.portlet.GenericPortlet.init(GenericPortlet.java:107)
at com.liferay.portlet.InvokerPortletImpl.init(InvokerPortletImpl.java:245)
at com.liferay.portlet.PortletInstanceFactoryImpl.init(PortletInstanceFactoryImpl.java:216)
at com.liferay.portlet.PortletInstanceFactoryImpl.create(PortletInstanceFactoryImpl.java:139)
at com.liferay.portlet.PortletInstanceFactoryUtil.create(PortletInstanceFactoryUtil.java:40)
at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:796)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
.
.
.