<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Re: How to implement a custom identity model for JBoss Portal?
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/prisemut">Thomas Raab</a> in <i>JBoss Portal</i> - <a href="http://community.jboss.org/message/637434#637434">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hello again!</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I was able to make a little progress by carefully examining the server log files. The server could not parse</p><p>the xml file identity-config.xml, so after some experimenting I could make it parse this new file:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code jive-xml">
<span class="jive-xml-tag">&lt;identity-configuration&gt;</span>
&#160;&#160; <span class="jive-xml-tag">&lt;datasources/&gt;</span>
&#160;&#160; <span class="jive-xml-tag">&lt;modules&gt;</span>
&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;module&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;type&gt;</span>User<span class="jive-xml-tag">&lt;/type&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;implementation&gt;</span>CUSTOM<span class="jive-xml-tag">&lt;/implementation&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;config/&gt;</span>
&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;/module&gt;</span>
&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;module&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;type&gt;</span>Role<span class="jive-xml-tag">&lt;/type&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;implementation&gt;</span>CUSTOM<span class="jive-xml-tag">&lt;/implementation&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;config/&gt;</span>
&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;/module&gt;</span>
&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;module&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;type&gt;</span>Membership<span class="jive-xml-tag">&lt;/type&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;implementation&gt;</span>CUSTOM<span class="jive-xml-tag">&lt;/implementation&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;config/&gt;</span>
&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;/module&gt;</span>
&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;module&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;type&gt;</span>UserProfile<span class="jive-xml-tag">&lt;/type&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;implementation&gt;</span>CUSTOM<span class="jive-xml-tag">&lt;/implementation&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;config/&gt;</span>
&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;/module&gt;</span>
&#160;&#160; <span class="jive-xml-tag">&lt;/modules&gt;</span>
&#160;&#160; <span class="jive-xml-tag">&lt;options/&gt;</span>
<span class="jive-xml-tag">&lt;/identity-configuration&gt;</span>
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I had to add the following code to the \jboss-portal-2.7.2\server\default\deploy\jboss-portal.sar\conf\identity\standardidentity-config.xml</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code jive-xml">
<span class="jive-xml-tag">&lt;module&gt;</span>
&#160;&#160;&#160; <span class="jive-xml-tag">&lt;type&gt;</span>User<span class="jive-xml-tag">&lt;/type&gt;</span>
&#160;&#160;&#160; <span class="jive-xml-tag">&lt;implementation&gt;</span>CUSTOM<span class="jive-xml-tag">&lt;/implementation&gt;</span>

&#160;&#160;&#160; <span class="jive-xml-tag">&lt;service-name&gt;</span>portal:service=Module,type=User<span class="jive-xml-tag">&lt;/service-name&gt;</span>
&#160;&#160;&#160; <span class="jive-xml-tag">&lt;class&gt;</span>com.myCompany.MyUser<span class="jive-xml-tag">&lt;/class&gt;</span>

&#160;&#160;&#160; <span class="jive-xml-tag">&lt;config /&gt;</span>
<span class="jive-xml-tag">&lt;/module&gt;</span>
<span class="jive-xml-tag">&lt;module&gt;</span>
&#160;&#160;&#160; <span class="jive-xml-tag">&lt;type&gt;</span>Role<span class="jive-xml-tag">&lt;/type&gt;</span>
&#160;&#160;&#160; <span class="jive-xml-tag">&lt;implementation&gt;</span>CUSTOM<span class="jive-xml-tag">&lt;/implementation&gt;</span>

&#160;&#160;&#160; <span class="jive-xml-tag">&lt;service-name&gt;</span>portal:service=Module,type=Role<span class="jive-xml-tag">&lt;/service-name&gt;</span>
&#160;&#160;&#160; <span class="jive-xml-tag">&lt;class&gt;</span>com.myCompany.MyRole<span class="jive-xml-tag">&lt;/class&gt;</span>

&#160;&#160;&#160; <span class="jive-xml-tag">&lt;config /&gt;</span>
<span class="jive-xml-tag">&lt;/module&gt;</span>
&#160;&#160;&#160; <span class="jive-xml-tag">&lt;module&gt;</span>
&#160;&#160;&#160; <span class="jive-xml-tag">&lt;type&gt;</span>Membership<span class="jive-xml-tag">&lt;/type&gt;</span>
&#160;&#160;&#160; <span class="jive-xml-tag">&lt;implementation&gt;</span>CUSTOM<span class="jive-xml-tag">&lt;/implementation&gt;</span>

&#160;&#160;&#160; <span class="jive-xml-tag">&lt;service-name&gt;</span>portal:service=Module,type=Membership<span class="jive-xml-tag">&lt;/service-name&gt;</span>
&#160;&#160;&#160; <span class="jive-xml-tag">&lt;class&gt;</span>com.myCompany.MyMembership<span class="jive-xml-tag">&lt;/class&gt;</span>

&#160;&#160;&#160; <span class="jive-xml-tag">&lt;config /&gt;</span>
<span class="jive-xml-tag">&lt;/module&gt;</span>
<span class="jive-xml-tag">&lt;module&gt;</span>
&#160;&#160;&#160; <span class="jive-xml-tag">&lt;type&gt;</span>UserProfile<span class="jive-xml-tag">&lt;/type&gt;</span>
&#160;&#160;&#160; <span class="jive-xml-tag">&lt;implementation&gt;</span>CUSTOM<span class="jive-xml-tag">&lt;/implementation&gt;</span>

&#160;&#160;&#160; <span class="jive-xml-tag">&lt;service-name&gt;</span>portal:service=Module,type=UserProfile<span class="jive-xml-tag">&lt;/service-name&gt;</span>
&#160;&#160;&#160; <span class="jive-xml-tag">&lt;class&gt;</span>com.myCompany.MyUserProfile<span class="jive-xml-tag">&lt;/class&gt;</span>

&#160;&#160;&#160; <span class="jive-xml-tag">&lt;config /&gt;</span>
<span class="jive-xml-tag">&lt;/module&gt;</span>
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>As you can see I also implemented Role, Membership and UserProfile.</p><p>After that, the server complained about some missing properties it needed in those classes. So I added the following</p><p>to each of those four classes:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code">
IdentityContext identityContext;
ServiceJNDIBinder jndiBinder;
String moduleType;

public String getModuleType() {
&#160;&#160;&#160; return moduleType;
}

public void setModuleType(String moduleType) {
&#160;&#160;&#160; this.moduleType = moduleType;
}

public ServiceJNDIBinder getJndiBinder() {
&#160;&#160;&#160; return jndiBinder;
}

public void setJndiBinder(ServiceJNDIBinder jndiBinder) {
&#160;&#160;&#160; this.jndiBinder = jndiBinder;
}

public IdentityContext getIdentityContext() {
&#160;&#160;&#160; return identityContext;
}

public void setIdentityContext(IdentityContext identityContext) {
&#160;&#160;&#160; this.identityContext = identityContext;
}
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Unfortunately the server is still not content with this. I now find the following exception in my server log and</p><p>I have no idea how to solve this:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><blockquote class="jive-quote"><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>2011-11-21 08:55:54,696 ERROR <a class="jive-link-external-small" href="org.jboss.portal.portlet.impl.container.LifeCycle">org.jboss.portal.portlet.impl.container.LifeCycle</a> Cannot start object</p><p>org.jboss.portal.portlet.container.PortletInitializationException: The portlet CMSAdminPortlet threw a portlet exception during init</p><p>&#160;&#160;&#160; at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.start(PortletContainerImpl.java:284)</p><p>&#160;&#160;&#160; at org.jboss.portal.portlet.impl.container.PortletContainerLifeCycle.invokeStart(PortletContainerLifeCycle.java:76)</p><p>&#160;&#160;&#160; at org.jboss.portal.portlet.impl.container.LifeCycle.managedStart(LifeCycle.java:92)</p><p>&#160;&#160;&#160; at org.jboss.portal.portlet.impl.container.PortletFilterLifeCycle.startDependents(PortletFilterLifeCycle.java:74)</p><p>&#160;&#160;&#160; at org.jboss.portal.portlet.impl.container.LifeCycle.managedStart(LifeCycle.java:128)</p><p>&#160;&#160;&#160; at org.jboss.portal.portlet.impl.container.PortletApplicationLifeCycle.startDependents(PortletApplicationLifeCycle.java:339)</p><p>&#160;&#160;&#160; at org.jboss.portal.portlet.impl.container.LifeCycle.managedStart(LifeCycle.java:128)</p><p>&#160;&#160;&#160; at org.jboss.portal.portlet.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:226)</p><p>&#160;&#160;&#160; at org.jboss.portal.core.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:94)</p><p>&#160;&#160;&#160; at org.jboss.portal.server.deployment.jboss.DeploymentContext.start(DeploymentContext.java:99)</p><p>&#160;&#160;&#160; at org.jboss.portal.server.deployment.jboss.PortalDeploymentInfoContext.add(PortalDeploymentInfoContext.java:86)</p><p>&#160;&#160;&#160; at org.jboss.portal.server.deployment.jboss.ServerDeployer.registerFactory(ServerDeployer.java:134)</p><p>&#160;&#160;&#160; at org.jboss.portal.server.deployment.jboss.AbstractDeploymentFactory.registerFactory(AbstractDeploymentFactory.java:113)</p><p>&#160;&#160;&#160; at org.jboss.portal.server.deployment.jboss.AbstractDeploymentFactory.start(AbstractDeploymentFactory.java:152)</p><p>&#160;&#160;&#160; at org.jboss.portal.portlet.deployment.jboss.PortletAppDeploymentFactory.start(PortletAppDeploymentFactory.java:147)</p><p>&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</p><p>&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)</p><p>&#160;&#160;&#160; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</p><p>&#160;&#160;&#160; at java.lang.reflect.Method.invoke(Method.java:597)</p><p>&#160;&#160;&#160; at org.jboss.portal.jems.as.system.JBossServiceModelMBean$ServiceMixin.execute(JBossServiceModelMBean.java:486)</p><p>&#160;&#160;&#160; at org.jboss.portal.jems.as.system.JBossServiceModelMBean$ServiceMixin.startService(JBossServiceModelMBean.java:452)</p><p>&#160;&#160;&#160; at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)</p><p>&#160;&#160;&#160; at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)</p><p>&#160;&#160;&#160; at org.jboss.portal.jems.as.system.JBossServiceModelMBean$6.invoke(JBossServiceModelMBean.java:374)</p><p>&#160;&#160;&#160; at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)</p><p>&#160;&#160;&#160; at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)</p><p>&#160;&#160;&#160; at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)</p><p>&#160;&#160;&#160; at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)</p><p>&#160;&#160;&#160; at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)</p><p>&#160;&#160;&#160; at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)</p><p>&#160;&#160;&#160; at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)</p><p>&#160;&#160;&#160; at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:995)</p><p>&#160;&#160;&#160; at $Proxy0.start(Unknown Source)</p><p>&#160;&#160;&#160; at org.jboss.system.ServiceController.start(ServiceController.java:417)</p><p>&#160;&#160;&#160; at org.jboss.system.ServiceController.start(ServiceController.java:435)</p><p>&#160;&#160;&#160; at org.jboss.system.ServiceController.start(ServiceController.java:435)</p><p>&#160;&#160;&#160; at org.jboss.system.ServiceController.start(ServiceController.java:435)</p><p>&#160;&#160;&#160; at org.jboss.system.ServiceController.start(ServiceController.java:435)</p><p>&#160;&#160;&#160; at org.jboss.system.ServiceController.start(ServiceController.java:435)</p><p>&#160;&#160;&#160; at org.jboss.system.ServiceController.start(ServiceController.java:435)</p><p>&#160;&#160;&#160; at org.jboss.system.ServiceController.start(ServiceController.java:435)</p><p>&#160;&#160;&#160; at org.jboss.system.ServiceController.start(ServiceController.java:435)</p><p>&#160;&#160;&#160; at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)</p><p>&#160;&#160;&#160; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</p><p>&#160;&#160;&#160; at java.lang.reflect.Method.invoke(Method.java:597)</p><p>&#160;&#160;&#160; at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)</p><p>&#160;&#160;&#160; at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)</p><p>&#160;&#160;&#160; at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)</p><p>&#160;&#160;&#160; at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)</p><p>&#160;&#160;&#160; at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)</p><p>&#160;&#160;&#160; at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)</p><p>&#160;&#160;&#160; at $Proxy4.start(Unknown Source)</p><p>&#160;&#160;&#160; at org.jboss.deployment.SARDeployer.start(SARDeployer.java:304)</p><p>&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</p><p>&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)</p><p>&#160;&#160;&#160; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</p><p>&#160;&#160;&#160; at java.lang.reflect.Method.invoke(Method.java:597)</p><p>&#160;&#160;&#160; at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)</p><p>&#160;&#160;&#160; at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)</p><p>&#160;&#160;&#160; at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)</p><p>&#160;&#160;&#160; at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)</p><p>&#160;&#160;&#160; at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)</p><p>&#160;&#160;&#160; at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)</p><p>&#160;&#160;&#160; at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)</p><p>&#160;&#160;&#160; at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)</p><p>&#160;&#160;&#160; at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)</p><p>&#160;&#160;&#160; at $Proxy199.start(Unknown Source)</p><p>&#160;&#160;&#160; at org.jboss.deployment.XSLSubDeployer.start(XSLSubDeployer.java:197)</p><p>&#160;&#160;&#160; at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)</p><p>&#160;&#160;&#160; at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)</p><p>&#160;&#160;&#160; at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)</p><p>&#160;&#160;&#160; at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)</p><p>&#160;&#160;&#160; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</p><p>&#160;&#160;&#160; at java.lang.reflect.Method.invoke(Method.java:597)</p><p>&#160;&#160;&#160; at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)</p><p>&#160;&#160;&#160; at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)</p><p>&#160;&#160;&#160; at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)</p><p>&#160;&#160;&#160; at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)</p><p>&#160;&#160;&#160; at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)</p><p>&#160;&#160;&#160; at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)</p><p>&#160;&#160;&#160; at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)</p><p>&#160;&#160;&#160; at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)</p><p>&#160;&#160;&#160; at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)</p><p>&#160;&#160;&#160; at $Proxy9.deploy(Unknown Source)</p><p>&#160;&#160;&#160; at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)</p><p>&#160;&#160;&#160; at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)</p><p>&#160;&#160;&#160; at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)</p><p>&#160;&#160;&#160; at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)</p><p>&#160;&#160;&#160; at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)</p><p>&#160;&#160;&#160; at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)</p><p>&#160;&#160;&#160; at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)</p><p>&#160;&#160;&#160; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</p><p>&#160;&#160;&#160; at java.lang.reflect.Method.invoke(Method.java:597)</p><p>&#160;&#160;&#160; at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)</p><p>&#160;&#160;&#160; at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)</p><p>&#160;&#160;&#160; at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)</p><p>&#160;&#160;&#160; at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)</p><p>&#160;&#160;&#160; at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)</p><p>&#160;&#160;&#160; at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)</p><p>&#160;&#160;&#160; at $Proxy0.start(Unknown Source)</p><p>&#160;&#160;&#160; at org.jboss.system.ServiceController.start(ServiceController.java:417)</p><p>&#160;&#160;&#160; at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)</p><p>&#160;&#160;&#160; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</p><p>&#160;&#160;&#160; at java.lang.reflect.Method.invoke(Method.java:597)</p><p>&#160;&#160;&#160; at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)</p><p>&#160;&#160;&#160; at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)</p><p>&#160;&#160;&#160; at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)</p><p>&#160;&#160;&#160; at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)</p><p>&#160;&#160;&#160; at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)</p><p>&#160;&#160;&#160; at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)</p><p>&#160;&#160;&#160; at $Proxy4.start(Unknown Source)</p><p>&#160;&#160;&#160; at org.jboss.deployment.SARDeployer.start(SARDeployer.java:304)</p><p>&#160;&#160;&#160; at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)</p><p>&#160;&#160;&#160; at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)</p><p>&#160;&#160;&#160; at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)</p><p>&#160;&#160;&#160; at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)</p><p>&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</p><p>&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)</p><p>&#160;&#160;&#160; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</p><p>&#160;&#160;&#160; at java.lang.reflect.Method.invoke(Method.java:597)</p><p>&#160;&#160;&#160; at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)</p><p>&#160;&#160;&#160; at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)</p><p>&#160;&#160;&#160; at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)</p><p>&#160;&#160;&#160; at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)</p><p>&#160;&#160;&#160; at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)</p><p>&#160;&#160;&#160; at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)</p><p>&#160;&#160;&#160; at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)</p><p>&#160;&#160;&#160; at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)</p><p>&#160;&#160;&#160; at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)</p><p>&#160;&#160;&#160; at $Proxy5.deploy(Unknown Source)</p><p>&#160;&#160;&#160; at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)</p><p>&#160;&#160;&#160; at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)</p><p>&#160;&#160;&#160; at org.jboss.Main.boot(Main.java:200)</p><p>&#160;&#160;&#160; at org.jboss.Main$1.run(Main.java:508)</p><p>&#160;&#160;&#160; at java.lang.Thread.run(Thread.java:662)</p><p>Caused by: javax.portlet.PortletException: Authorization Service not found</p><p>&#160;&#160;&#160; at org.jboss.portal.core.cms.ui.admin.CMSAdminPortlet.init(CMSAdminPortlet.java:140)</p><p>&#160;&#160;&#160; at org.jboss.portlet.JBossPortlet.init(JBossPortlet.java:387)</p><p>&#160;&#160;&#160; at org.jboss.portal.core.cms.ui.admin.CMSAdminPortlet.init(CMSAdminPortlet.java:151)</p><p>&#160;&#160;&#160; at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.initPortlet(PortletContainerImpl.java:417)</p><p>&#160;&#160;&#160; at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.start(PortletContainerImpl.java:256)</p><p>&#160;&#160;&#160; ... 134 more</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></blockquote><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>and</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><blockquote class="jive-quote"><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>2011-11-21 08:55:54,977 ERROR <a class="jive-link-external-small" href="org.jboss.deployment.scanner.URLDeploymentScanner">org.jboss.deployment.scanner.URLDeploymentScanner</a> Incomplete Deployment listing:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>--- MBeans waiting for other MBeans ---</p><p>ObjectName: portal:service=Module,type=IdentityServiceController</p><p>&#160; State: FAILED</p><p>&#160; Reason: org.jboss.portal.identity.IdentityException: Cannot initiate identity modules: </p><p>&#160; I Depend On:</p><p>&#160;&#160;&#160; portal:service=Hibernate</p><p>&#160;&#160;&#160; portal:service=IdentityEventManager</p><p>&#160; Depends On Me:</p><p>&#160;&#160;&#160; portal:service=AuthorizationProvider,type=cms</p><p>&#160;&#160;&#160; portal:service=Interceptor,type=Cms,name=ACL</p><p>&#160;&#160;&#160; portal:service=ApprovePublish,type=Workflow</p><p>&#160;&#160;&#160; portal:service=IdentityUIConfigurationService,type=IdentityUI</p><p>&#160;&#160;&#160; portal:service=IdentityUserManagementService,type=IdentityUI</p><p>&#160;&#160;&#160; portal.management:service=Management,type=Identity,name=Default</p><p>&#160;&#160;&#160; portal:service=Interceptor,type=Server,name=User</p><p>&#160;&#160;&#160; portal:service=Module,type=Mail</p><p>&#160;&#160;&#160; portal:service=CustomizationManager</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---</p><p>ObjectName: portal:service=Module,type=IdentityServiceController</p><p>&#160; State: FAILED</p><p>&#160; Reason: org.jboss.portal.identity.IdentityException: Cannot initiate identity modules: </p><p>&#160; I Depend On:</p><p>&#160;&#160;&#160; portal:service=Hibernate</p><p>&#160;&#160;&#160; portal:service=IdentityEventManager</p><p>&#160; Depends On Me:</p><p>&#160;&#160;&#160; portal:service=AuthorizationProvider,type=cms</p><p>&#160;&#160;&#160; portal:service=Interceptor,type=Cms,name=ACL</p><p>&#160;&#160;&#160; portal:service=ApprovePublish,type=Workflow</p><p>&#160;&#160;&#160; portal:service=IdentityUIConfigurationService,type=IdentityUI</p><p>&#160;&#160;&#160; portal:service=IdentityUserManagementService,type=IdentityUI</p><p>&#160;&#160;&#160; portal.management:service=Management,type=Identity,name=Default</p><p>&#160;&#160;&#160; portal:service=Interceptor,type=Server,name=User</p><p>&#160;&#160;&#160; portal:service=Module,type=Mail</p><p>&#160;&#160;&#160; portal:service=CustomizationManager</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></blockquote><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Perhaps anyone of you has already encountered such an error? Help would be much appreciated. Thank you.</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/637434#637434">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Portal at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2011">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>