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 Ruben Fragoso <ru...@tap.pt> on 2006/11/27 19:28:14 UTC
Create User Remotly
Hi all,
All i am trying to create a portlet that by getting the information through
the RequestParameter, creates a user in jetspeed, i have follow every post i
have come to a dead lock, which is
i have configured jetspeed-portlet.xml to be aple to user the
services which they are also configured in jetspeed-services.xml in the
assembly directoy. Every thing is ok ok at least it is because while
deploying my portlet i get several of these lines in the log file:
namespace = http://portals.apache.org/jetspeed
name= service
object =
org.apache.jetspeed.om.impl.JetspeedServiceReferenceImpl@14ddd67
service =
org.apache.jetspeed.om.impl.JetspeedServiceReferenceImpl@14ddd67
.
.
.
.
.
Now my problem is that i cannot get my portlet started because this code
line:
userManager = (UserManager)
getPortletContext().getAttribute(CommonPortletServices.CPS_USER_MANAGER_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 ?
Thank you in advance
Ruben Fragoso
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
RE: Create User Remotly
Posted by Ruben Fragoso <ru...@tap.pt>.
Ok it worked, thank you Mikko and David =D
-----Original Message-----
From: Mikko Wuokko [mailto:mikko.wuokko@evtek.fi]
Sent: terça-feira, 28 de Novembro de 2006 10:21
To: Jetspeed Users List
Subject: Re: Create User Remotly
Hi.
Means that that .jar file is needed only at build time and should not be
included in the .war bundle. It will create a clash of a duplicate
jars/classes. Just like portlet-api should not be included in the
portlet war-file as it should be provided by the portal.
If you use Eclipse for example to create the .war you can use the
jetspeed-api-2.0.jar as a library or set it NOT to be included in the .war.
-Mikko
Ruben Fragoso wrote:
> 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:david@bluesunrise.com]
> 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: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
RE: Create User Remotly
Posted by Ruben Fragoso <ru...@tap.pt>.
Ok, thank you, i will try that :)
-----Original Message-----
From: Mikko Wuokko [mailto:mikko.wuokko@evtek.fi]
Sent: terça-feira, 28 de Novembro de 2006 10:21
To: Jetspeed Users List
Subject: Re: Create User Remotly
Hi.
Means that that .jar file is needed only at build time and should not be
included in the .war bundle. It will create a clash of a duplicate
jars/classes. Just like portlet-api should not be included in the
portlet war-file as it should be provided by the portal.
If you use Eclipse for example to create the .war you can use the
jetspeed-api-2.0.jar as a library or set it NOT to be included in the .war.
-Mikko
Ruben Fragoso wrote:
> 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:david@bluesunrise.com]
> 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: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: Create User Remotly
Posted by Mikko Wuokko <mi...@evtek.fi>.
Hi.
Means that that .jar file is needed only at build time and should not be
included in the .war bundle. It will create a clash of a duplicate
jars/classes. Just like portlet-api should not be included in the
portlet war-file as it should be provided by the portal.
If you use Eclipse for example to create the .war you can use the
jetspeed-api-2.0.jar as a library or set it NOT to be included in the .war.
-Mikko
Ruben Fragoso wrote:
> 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:david@bluesunrise.com]
> 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: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
RE: Create User Remotly
Posted by Ruben Fragoso <ru...@tap.pt>.
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:david@bluesunrise.com]
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: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: Create User Remotly
Posted by David Sean Taylor <da...@bluesunrise.com>.
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_MANAGER_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: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org