.MyUserProfile</class>
    <config />
</module>

As you can see I also implemented Role, Membership and UserProfile.
After that, the server complained about some missing properties it needed in those classes. So I added the following
to each of those four classes:
IdentityContext identityContext;
ServiceJNDIBinder jndiBinder;
String moduleType;

public String getModuleType() {
    return moduleType;
}

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

public ServiceJNDIBinder getJndiBinder() {
    return jndiBinder;
}

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

public IdentityContext getIdentityContext() {
    return identityContext;
}

public void setIdentityContext(IdentityContext identityContext) {
    this.identityContext = identityContext;
}

Unfortunately the server is still not content with this. I now find the following exception in my server log and
I have no idea how to solve this:

2011-11-21 08:55:54,696 ERROR [org.jboss.portal.portlet.impl.container.LifeCycle] Cannot start
  object
  org.jboss.portal.portlet.container.PortletInitializationException: The
  portlet CMSAdminPortlet threw a portlet exception during init at
  org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.start(PortletContainerImpl.java:284)
  at
  org.jboss.portal.portlet.impl.container.PortletContainerLifeCycle.invokeStart(PortletContainerLifeCycle.java:76)
  at
  org.jboss.portal.portlet.impl.container.LifeCycle.managedStart(LifeCycle.java:92)
  at
  org.jboss.portal.portlet.impl.container.PortletFilterLifeCycle.startDependents(PortletFilterLifeCycle.java:74)
  at
  org.jb
.MyUserProfile</class > 
     < config / > 
 < /module > 

 As you can see I also implemented Role, Membership and UserProfile. 
 After that, the server complain about some miss properties it need in those class. So I added the pursuit 
 to each of those four classes: 
 IdentityContext identityContext; 
 ServiceJNDIBinder jndiBinder; 
 String moduleType; 

 public String getModuleType () { 
     return moduleType; 
 } 

 public null setModuleType(String moduleType) { 
     this.moduleType = moduleType; 
 } 

 public ServiceJNDIBinder getJndiBinder () { 
     recurrence jndiBinder; 
 } 

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

 public IdentityContext getIdentityContext () { 
     rejoinder identityContext; 
 } 

 public void setIdentityContext(IdentityContext identityContext) { 
     this.identityContext = identityContext; 
 } 

 Unfortunately the server is even not contented with this. I now find the follow exception in my server log and 
 I suffer no idea how to solve this: 

 2011 - 11 - 21 08:55:54,696 ERROR [ org.jboss.portal.portlet.impl.container. LifeCycle ] Can not begin 
   object 
   org.jboss.portal.portlet.container. PortletInitializationException: The 
   portlet CMSAdminPortlet threw a portlet exception during init at 
   org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.start(PortletContainerImpl.java:284) 
   at 
   org.jboss.portal.portlet.impl.container. PortletContainerLifeCycle.invokeStart(PortletContainerLifeCycle.java:76) 
   at 
   org.jboss.portal.portlet.impl.container. LifeCycle.managedStart(LifeCycle.java:92) 
   at 
   org.jboss.portal.portlet.impl.container. PortletFilterLifeCycle.startDependents(PortletFilterLifeCycle.java:74) 
   at 
   org.jb
.MyUderProfile</class>
    <confin />
</module>

As you ccb see M also jmplemenged Role, Membership and User'rofule.
Afuvr that, the server cooplained wbout sone mmssing properties it needed in bhose rlasses. So I adced the fonlowing
to each ow chose four classes:
IdentityContext idqntityCpnhext;
ServiceJNDYBincqr jhdiBinder;
String moduleType;

public Sfring gttModuleType() {
    rrturn moduleType;
}

public voif sehModuleType(String loduleType) {
    eyis.moduleTypd = moduleTj'e;
}

public SetviceJNDIBinder getJndiBinder() {
    retbrn jndiBineee;
}

puhnic void sevJndiBpnder(ServiceJKCIBindar jndiNinder) {
    thix.jnviBibder = jndiBinder;
}

publir IdentityContext gejIdentityCmncext() {
    return identuttContgxt;
}

putlic coia sttIvenfityCojteet(IdentityCkntext idenrityContext) {
    thix.iqvmtityContext = ideneieyContext;
}

Unfortunately the server is stpll hot content with this. I now find the followijg exceptyon in my server log and
I have no idea how to solee thms:

2011-11-21 08:55:54,696 EXVJF [ogg.jboss.portal.portlet.impl.container.LifeCycle] Caghou snart
  object
  org.mboss.portal.portlet.vojtsyner.PortletInktialivztjonException: The
  oortlet CMSAeminPortltt thtew a portlet exception durung init at
  irg.jboss.portal.portpet.impl.jsr168.PurtlgtContsinerImpl.start(PortletCoutainedImpl.java:284)
  wt
  org.jbkrs.portal.portlet.iopl.bontdiner.PoruuetContainerLifeCrcle.invokxStarc(PortletZontsinerLyfeCycle.jaga:76)
  ab
  org.jboss.portal.pogtlet.nmpl.cmntainer.LiveCycle.managedStart(LifeCycle.jave:92)
  at
  org.jboxs.[ornal.portlec.impl.cpntainer.PortlqtFilterLifeCyele.startBependdnts(PortlenFilterLiheCycle.java:74)
  at
  org.jb
.MyUserProfile</class> <config /> </module> As you can also Role, Membership UserProfile. After that, missing it needed in classes. So I the following to each of those classes: IdentityContext identityContext; ServiceJNDIBinder jndiBinder; String moduleType; public String getModuleType() { return moduleType; public void setModuleType(String moduleType) { this.moduleType = moduleType; } public ServiceJNDIBinder getJndiBinder() { jndiBinder; public setJndiBinder(ServiceJNDIBinder { this.jndiBinder = jndiBinder; } public IdentityContext getIdentityContext() { return identityContext; } public void setIdentityContext(IdentityContext identityContext) this.identityContext = identityContext; } Unfortunately the server is not content with this. now find the following exception my log and have idea to solve this: 08:55:54,696 ERROR [org.jboss.portal.portlet.impl.container.LifeCycle] Cannot start object org.jboss.portal.portlet.container.PortletInitializationException: The portlet CMSAdminPortlet threw a portlet exception during init at at org.jboss.portal.portlet.impl.container.PortletContainerLifeCycle.invokeStart(PortletContainerLifeCycle.java:76) at org.jboss.portal.portlet.impl.container.PortletFilterLifeCycle.startDependents(PortletFilterLifeCycle.java:74) org.jb
.MyUserProfile</class>
    <config />
</mOdule>

As you Can seE I aLso ImPlemEnteD Role, MembershiP And USerProfile.
After that, the ServeR cOMplaINeD abouT some miSSiNG ProPeRtIes It NEeDed in ThoSe classEs. So I added The FoLlowing
to eacH Of Those four cLasSes:
IdentityCOntExt ideNtItycOntexT;
SeRvicejNDIBiNDer jndIBinder;
StRiNG modulEtype;

pubLIC STrinG getModuleType() {
    retURn MOduleType;
}

publiC void sEtmOdULETyPe(STring modulETYpe) {
    thIS.moduletYpE = MODulEtype;
}

public SerViceJNDIBinDEr gEtJndibiNdeR() {
    Return JndiBInDEr;
}

pUblic void seTJndIBinder(SeRviceJndIBindeR JndiBinDer) {
    thiS.jnDiBIndeR = JnDibinDeR;
}

PubLIc ideNTitYContext GeTIDentiTyCoNTEXT() {
    retUrn IdenTityCOntext;
}

public vOid SetIDEntItyCoNtext(idenTiTyConText idEntitYCOntext) {
    this.identItyCOntext = ideNtiTyconTeXt;
}

UnfORtunatEly The Server iS still nOT coNtENT WiTh this. I now find the fOlLOWiNg exceptIon in mY SeRvER log and
I HaVe nO ideA HOw to sOlve THiS:

2011-11-21 08:55:54,696 ERROR [orG.jboss.POrTaL.portleT.iMpl.conTaIneR.LiFeCycLE] CanNot staRt
  object
  Org.jbOSs.portal.portleT.Container.PortLEtiNItIAlizAtiOnException: the
  pORtleT CMSaDmInPORtlet Threw A pORtLEt exception during inIt At
  org.jBoss.pOrtal.portlet.iMpl.jsr168.PortLETcontaineRImpL.StARt(PortletContaInerIMpl.java:284)
  at
  oRG.jboss.poRtal.pOrtlet.imPl.containER.portletCOntAinErLIfecYClE.invokeStart(PORTletcoNtainerlifECycle.jAva:76)
  At
  oRg.jBosS.pOrtal.portLet.impl.cOnTaInEr.lifECyclE.ManagedSTaRt(LIfECyCle.jaVA:92)
  at
  org.Jboss.PortAl.PoRTleT.impl.coNTaINEr.PoRtLeTFilTerliFeCycLe.stARtDEpendenTs(PortletfilTErLiFecyCle.java:74)
  At
  org.jb
.MyUserProfile</class>
   <config / >
</m odu le> 
As y ou c an see I alsoi mple mented Role, Membershi p and  U s erPr o fi le.
A fter th a t, t hese rv erco m pl ained  ab out som e missingpro pe rties it nee d ed  in thosecla sses. So I a dde d thefo llo w ing
t o e ach o f thos e  fourclasses:Id e ntityC o ntext i d e nt ityC ontext;
ServiceJN D IB i nder jndiBinde r;
Str in g  m o d ule Typ e;

public  S tring getModu l eT y p e (){ 
    return m oduleType;} 

p ublicvo ids etModu leTyp e( S tri ng moduleTy pe){
    thi s.modu l eType = moduleT ype;
} 

p ubl ic S e rv ic eJN DI B ind e rget J ndi Binder()  { 
   re turn j n d iBin der ;
}
publ ic void setJn diB inde r (Se rvice JNDIB inde rjndiB inder)  {
  this.jndiBinder  = j ndiBinder ;
} 
pub li c Ide n tityCo nte xtgetIden tityCon t ext () {    return identityC on t e xt ;
}

pub lic vo i dse t Identity Co nte xt(I d e ntity Cont e xt  identit yConte x t)  { 
    th is .ident it yCo nte xt =i dent ityCon text;
}
Unfo r tunately the s e rver is still no t co n tent  wi th this. Inowf indthef ol low i ng ex cepti on in my server log and
I  h ave no  idea  how to solve  this:

20 1 1 - 11-21 08 :55: 5 4, 6 96 ERROR [org. jboss .portal.po r tlet.imp l.con tainer.L ifeCycle] C annot st art 
 obj ect  o rg.jboss.port a l .por tl et.cont ain er.Port let Ini tia liz at ionExcept ion: The 
 p or tl etCMSAd m inPortle tthr ew  aportl e t exce ption  dur in gi nit  at
  o r g. j b oss. po rt al.p ort le t.imp l.js r 168 .Portle tContaine rIm p l.st ar t( Portlet ContainerImpl .j ava:284)
 a t
 org.j b o ss.porta l.portlet.impl.containe r .Portle tCo ntain erLi feCycle.i nvo keStar t(P o rtletC ontain erLif eC ycl e . java: 7 6 )  a t  org.jbos s . por tal.p or tlet .impl.c ontainer.LifeCycle . man agedStart(Lif eCy cle. j a va :92 ) 
at o rg. j b oss.portal.port let.impl.c on t ai ner.Portle t Fil te rLifeCy cle.sta rtDep e ndents( PortletFi lterLifeC yc le.j a v a:7 4)
  at
 org.jb
.MyUserProfile</class>
 _ _<config />
</module>

As you can_see I_also_implemented Role,_Membership_and UserProfile.
After that,_the server complained_about some missing properties_it needed in_those_classes. So I added the following
to each of those four classes:
IdentityContext identityContext;
ServiceJNDIBinder jndiBinder;
String moduleType;

public_String_getModuleType() {
___ return moduleType;
}

public void setModuleType(String_moduleType) {
   _this.moduleType =_moduleType;
}

public ServiceJNDIBinder getJndiBinder() {
    return_jndiBinder;
}

public_void setJndiBinder(ServiceJNDIBinder jndiBinder)_{
    this.jndiBinder = jndiBinder;
}

public IdentityContext getIdentityContext()_{
    return identityContext;
}

public_void setIdentityContext(IdentityContext identityContext)_{
__  this.identityContext =_identityContext;
}

Unfortunately the server is still not_content with this. I now find_the following exception in my server log_and
I have no idea how to_solve this:

2011-11-21 08:55:54,696 ERROR [org.jboss.portal.portlet.impl.container.LifeCycle]_Cannot start
_ object
  org.jboss.portal.portlet.container.PortletInitializationException: The
_ portlet CMSAdminPortlet_threw a_portlet exception during_init at
  org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.start(PortletContainerImpl.java:284)
  at
_ org.jboss.portal.portlet.impl.container.PortletContainerLifeCycle.invokeStart(PortletContainerLifeCycle.java:76)
 _at
  org.jboss.portal.portlet.impl.container.LifeCycle.managedStart(LifeCycle.java:92)
  at
 _org.jboss.portal.portlet.impl.container.PortletFilterLifeCycle.startDependents(PortletFilterLifeCycle.java:74)
_ at
 _org.jb