Bug 793041 (JBEPP-123) - Documentation on how to add custom CMS Interceptors is incorrect
Summary: Documentation on how to add custom CMS Interceptors is incorrect
Keywords:
Status: CLOSED NEXTRELEASE
Alias: JBEPP-123
Product: JBoss Enterprise Portal Platform 4
Classification: JBoss
Component: docs-Reference_Guide
Version: 4.3.0.GA_CP2
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.3.0.GA_CP3
Assignee: Thomas Heute
QA Contact: ecs-bugs
URL: http://jira.jboss.org/jira/browse/JBE...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-10-08 14:20 UTC by Martin Weiler
Modified: 2012-02-16 03:39 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-12-02 09:40:05 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker JBEPP-123 0 None None None Never

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>


Note You need to log in before you can comment on or make changes to this bug.