Hi Woonsan,

    If my Servlet is in jetspeed web-application, that also can not use
those components in Servlet?
    in my testing I got something interesting, if I have login the testing
account into portal first, 
    then sometimes my program could be success.


Best Regards,
Bon


Woonsan Ko wrote:
> 
> Hi Bon,
> 
> I don't think it is a responsibility of portal to provide security to
> servlet applications. Portal should care only portlet applications.
> Jetspeed is providing JAAS to portlet applications only.
> So, in my opinion, the right way is to implement a portlet application
> like 'j2-admin' to access the secured resources.
> You can refer the following:
> http://portals.apache.org/tutorials/jetspeed-2/05/jetspeed-service.html
> 
> 
> Woonsan
> 
> 
> --- On Tue, 11/18/08, Bon <[EMAIL PROTECTED]> wrote:
> 
>> From: Bon <[EMAIL PROTECTED]>
>> Subject: Can I use the PageManager or other component manager in a
>> Servlet?
>> To: [email protected]
>> Date: Tuesday, November 18, 2008, 10:21 AM
>> Hi all,
>> 
>>     I've try to create a Servlet to do something about
>> management user's
>> pages,
>>     when I call PageManager to get a Page or a Folder by
>> username and page
>> or folder name,
>>     it always throws a SecurityException! 
>>     and the exception message is
>> "BaseElementImpl.checkConstraints():
>> Missing JSSubject."
>>     for example:
>>     Page userPage =
>> ((PageManager)Jetspeed.getComponentManager().getComponent("pageManager")).getUserPage("user-account",
>> "user_page.psml");
>>     or
>>     Page userPAge =
>> ((PageManager)Jetspeed.getComponentManager().getComponent("pageManager")).getPage(pageManager.getUserFolder("user-account"),
>> "user_page.psml");
>>     and both of those case throws SecurityException with
>> same message,
>>     the message of exception looks like tell me can not
>> find the user's
>> subject, and I try to login by the testing user first and
>> use same session
>> to do test about get page by pageManager, and it also fail
>> with same
>> reason!!
>>     Now, I'm not sure why it does not work? because the
>> component of manager
>> can not be used by this knid of way? or I must to do
>> something before I use
>> a component in a Servlet?
>>     or there are any other right ways to do that?
>> 
>> Best Regards,
>> Bon
>> -- 
>> View this message in context:
>> http://www.nabble.com/Can-I-use-the-PageManager-or-other-component-manager-in-a-Servlet--tp20556000p20556000.html
>> Sent from the Jetspeed - User mailing list archive at
>> Nabble.com.
>> 
>> 
>> ---------------------------------------------------------------------
>> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Can-I-use-the-PageManager-or-other-component-manager-in-a-Servlet--tp20556000p20572214.html
Sent from the Jetspeed - User mailing list archive at Nabble.com.


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

Reply via email to