Bug 793041 (JBEPP-123)

Summary: Documentation on how to add custom CMS Interceptors is incorrect
Product: [JBoss] JBoss Enterprise Portal Platform 4 Reporter: Martin Weiler <mweiler>
Component: docs-Reference_GuideAssignee: Thomas Heute <theute>
Status: CLOSED NEXTRELEASE QA Contact: ecs-bugs
Severity: high Docs Contact:
Priority: high    
Version: 4.3.0.GA_CP2CC: tirupatirao.kommineni
Target Milestone: ---   
Target Release: 4.3.0.GA_CP3   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/JBEPP-123
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-12-02 09:40:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Martin Weiler 2009-10-08 14:20:40 UTC
Help Desk Ticket Reference: https://enterprise.redhat.com/issue-tracker/351771
project_key: JBEPP

Trying to follow the instructions in Chapter 22.6 of the Reference Guide on how to add a custom interceptor:
http://www.redhat.com/docs/en-US/Enterprise_Portal_Platform/4.3/html/Reference_Guide/ch22s06.html

This leads to the following exception:
Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.portal.common.system.JBossServiceModelMBean

The JBossServiceModelMBean class has been moved to the org.jboss.portal.jems.as.system package. Just the following two snippets need to be added to portal-cms-sar/META-INF/jboss-service.xml:

1. MBean definition:

   <mbean code="org.example.myCMSInterceptor"
   name="portal:service=Interceptor,type=Cms,name=MyName" xmbean-dd=""
   xmbean-code="org.jboss.portal.jems.as.system.JBossServiceModelMBean">
   <xmbean />
   </mbean>

2. Interceptor stack:

  <!--  interceptor factory where all cms interceptors are registered -->
  <mbean
     code="org.jboss.portal.server.impl.invocation.JBossInterceptorStackFactory"
     name="portal:service=InterceptorStackFactory,type=Cms"
     xmbean-dd=""
     xmbean-code="org.jboss.portal.jems.as.system.JBossServiceModelMBean">
     <xmbean/>
     <depends-list optional-attribute-name="InterceptorNames">
        <depends-list-element>portal:service=Interceptor,type=Cms,name=ACL</depends-list-element>
        <depends-list-element>portal:service=Interceptor,type=Cms,name=ApprovalWorkflow</depends-list-element>
        <!-- CUSTOM INTERCEPTOR ADDED HERE -->
        <depends-list-element>portal:service=Interceptor,type=Cms,name=MyName</depends-list-element>
     </depends-list>
  </mbean>