You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Nikko Gaerlan <ni...@gmail.com> on 2006/10/27 09:17:11 UTC

User manager access..

hi list

i created a portlet from a new war..
this portlet should change its user attributes ( name, address, and etc.)

i've added jetspeed API and jetspeed security jar files to my library..

i've added this in my portlet init

...
 userManager = (UserManager) getPortletContext().getAttribute(
                CommonPortletServices.CPS_USER_MANAGER_COMPONENT);
        if (null == userManager) { throw new PortletException(
                "Failed to find the User Manager on portlet
initialization"); }
...

it fails to find user manager..

i think this has something to do with the spring but im no good at it..

did i do something wrong?
anybody here know what to do?
what are the required steps to have access usermanager or portal
adminstration?
thanks..

nikko

Re: User manager access..

Posted by Nikko Gaerlan <ni...@gmail.com>.
wow thanks for the quick reply..

so i will create new jetspeed-portlet.xml?

thanks again..

On 10/27/06, vivek <Vi...@fmr.com> wrote:
>
>
> Hi
>
> you need to include the
> UserManager service in jetspeed-portlet.xml
>
> some thing like this..
>
>
>   <portlet-app>
>           <js:services>
>                   <js:service name="UserManager" />
>           </js:services>
> </portlet-app>
>
>
> vivek
>
> Nikko Gaerlan wrote:
> >
> > hi list
> >
> > i created a portlet from a new war..
> > this portlet should change its user attributes ( name, address, and
> etc.)
> >
> > i've added jetspeed API and jetspeed security jar files to my library..
> >
> > i've added this in my portlet init
> >
> > ...
> >  userManager = (UserManager) getPortletContext().getAttribute(
> >                 CommonPortletServices.CPS_USER_MANAGER_COMPONENT);
> >         if (null == userManager) { throw new PortletException(
> >                 "Failed to find the User Manager on portlet
> > initialization"); }
> > ...
> >
> > it fails to find user manager..
> >
> > i think this has something to do with the spring but im no good at it..
> >
> > did i do something wrong?
> > anybody here know what to do?
> > what are the required steps to have access usermanager or portal
> > adminstration?
> > thanks..
> >
> > nikko
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/User-manager-access..-tf2518961.html#a7025691
> Sent from the Jetspeed - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>

Re: User manager access..

Posted by vivek <Vi...@fmr.com>.
Hi 

you need to include the 
UserManager service in jetspeed-portlet.xml

some thing like this..


  <portlet-app>
          <js:services>
                  <js:service name="UserManager" /> 
          </js:services>
 </portlet-app>


vivek

Nikko Gaerlan wrote:
> 
> hi list
> 
> i created a portlet from a new war..
> this portlet should change its user attributes ( name, address, and etc.)
> 
> i've added jetspeed API and jetspeed security jar files to my library..
> 
> i've added this in my portlet init
> 
> ...
>  userManager = (UserManager) getPortletContext().getAttribute(
>                 CommonPortletServices.CPS_USER_MANAGER_COMPONENT);
>         if (null == userManager) { throw new PortletException(
>                 "Failed to find the User Manager on portlet
> initialization"); }
> ...
> 
> it fails to find user manager..
> 
> i think this has something to do with the spring but im no good at it..
> 
> did i do something wrong?
> anybody here know what to do?
> what are the required steps to have access usermanager or portal
> adminstration?
> thanks..
> 
> nikko
> 
> 

-- 
View this message in context: http://www.nabble.com/User-manager-access..-tf2518961.html#a7025691
Sent from the Jetspeed - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org