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]