[jboss-user] [JBoss Portal] - Re: Portlet Header Injection

biglou214 do-not-reply at jboss.com
Tue Apr 22 11:13:10 EDT 2008


Thanks for the response.  Turns out everything was fine in my jboss-portlet.xml.  I ended up grabbing the jboss source and walking through the code in the debugger.  Turns out that the HeaderInterceptor was never being called.  At some point it looks like my Interceptor declarations were messed up.  Just in case anyone else gets into this state there are two lines that need to be in your jboss-service.xml /server/default/deploy/jboss-portal/sar/META-INF/jboss-service.xml.

The first is:
   <mbean
  |       code="org.jboss.portal.core.aspects.portlet.HeaderInterceptor"
  |       name="portal:service=Interceptor,type=Portlet,name=Header"
  |       xmbean-dd=""
  |       xmbean-code="org.jboss.portal.jems.as.system.JBossServiceModelMBean">
  |       <xmbean/>
  |    </mbean>

The second, and the one that had been removed in my deployment is in the depends-list for the JbossInterceptorStackFactory:
<depends-list-element>portal:service=Interceptor,type=Portlet,name=Header</depends-list-element>

After adding that in, everything works like a charm!

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145897#4145897

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145897



More information about the jboss-user mailing list