What do you mean? if i remove the the jetspeed-api-2.0.jar that containes
the definition of these classes

                org.apache.jetspeed.CommonPortletServices;
                org.apache.jetspeed.security.UserManager;

Then my portlet does not compile at all, please elaborate :)

Thank you in advance

Ruben


-----Original Message-----
From: David Sean Taylor [mailto:[EMAIL PROTECTED] 
Sent: segunda-feira, 27 de Novembro de 2006 18:54
To: Jetspeed Users List
Subject: Re: Create User Remotly


Ruben Fragoso wrote:
> Now my problem is that i cannot get my portlet started because this 
> code
> line:
>       
>       userManager = (UserManager) 
> getPortletContext().getAttribute(CommonPortletServices.CPS_USER_MANAGE
> R_COMP
> ONENT);
> 
> It is throwing this exception:
> 
>       Failed to load portlet com.testing.CustomJSPPortlet:
> java.lang.ClassCastException: 
> org.apache.jetspeed.security.impl.UserManagerImpl
> 
> Anyone here was able to create a custom portlet to work with the 
> UserManager in J2 ?
> 
Make sure you don't have the jetspeed-api jar, or any other jetspeed-* 
jar in your portlet application.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to