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 "Julia A. Case" <ju...@MageNet.com> on 2002/03/27 00:31:54 UTC

How to check the roles?

How would I check if the current user has a particular role?

Thanks,
Julia
-- 
[  Julia Anne Case  ] [        Ships are safe inside the harbor,       ]
[Programmer at large] [      but is that what ships are really for.    ]
[   Admining Linux  ] [           To thine own self be true.           ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]

Re: How to check the roles?

Posted by Chris Kimpton <ki...@yahoo.com>.
Hi,

--- "Julia A. Case" <ju...@MageNet.com> wrote:
> How would I check if the current user has a particular role?
> 

You can get the current users access privileges with the call getACL
on RunData.  This has a hasRole method - it checks whether the user
has a role in a group (or the default group otherwise - I think).

If you havn't already, it is probably worth looking at the mail
archives to see the discussions on how group and role work with
Turbine/Jetspeed.

Chris

=====
SHAMELESS PLUG: http://www.soccer2002.org.uk - Football World Cup 2002 Japan/Korea

__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards�
http://movies.yahoo.com/

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Serialization error of JetspeedPersistenceService$Page

Posted by Paul Spencer <pa...@apache.org>.
I will be entering this in bugzilla.  In short Tomcat is trying to 
recreate sessions that where active when it last shutdown.  This should 
not affect any new sessions.

Paul Spencer


Josselin Lebret wrote:

> If possible, try to test it with tomcat 3.3. I have noticed some bugs with
> Tomcat 4.0.1 and Jetspeed, which were not present with Tomcat 3.3.
> ----- Original Message -----
> From: "Yellow Man" <ye...@yahoo.com>
> To: "Jetspeed Users List" <je...@jakarta.apache.org>
> Sent: Wednesday, March 27, 2002 6:34 AM
> Subject: Serialization error of JetspeedPersistenceService$Page
> 
> 
> 
>>I was able to run Jetspeed (1.3a2) inside
>>JBoss2.4.4+Tomcat4.0.1. However, I got the
>>serialization errors when I deploy Jetspeed and
>>undeploy Jetspeed.
>>
>>============================================
>>[ERROR,EmbeddedCatalinaServiceSX]
>>StandardManager[/jetspeed] Exception loading sessions
>>from persistent storage java.io.WriteAbortedException:
>>Writing aborted by exception; java.io.NotSerializ
>>ableException:
>>org.apache.jetspeed.portal.service.JetspeedPersistenceService$Page
>>============================================
>>
>>Though the exception is not critical and has been
>>discussed before, it is just annoying to see them. I
>>am just curious about its status: will it be fixed in
>>the future release?
>>
>>Following is a thread I found in the mailing list:
>>
>>-----------------------------------------------------
>>Santiago,
>>
>>Santiago Gala wrote:
>>
>>>Paul Spencer wrote:
>>>
>>>
>>>>I am seen the following in the Tomcat 4.0 (final)
>>>>log\localhost_log.yyyy_mm_dd file.  Is this a
>>>>
>>Jetspeed, Turbine, or a
>>
>>>>Tomcat problem?
>>>>
>>>>
>>>An interaction. Tomcat 4 tries to store active
>>>
>>sessions to disk (by
>>
>>>default) during shutdown, and recovers them on
>>>
>>startup. We are storing
>>
>>>one or more
>>>
>>>
>>How can we tell Tomcat not to store active sessions?
>>
>>
>>>JetspeedPersistenceService$Page
>>>
>>>in the session, and these objects are not declared
>>>
>>as serializable, so
>>
>>>tomcat cannot serialize the session.
>>>
>>>I don't think it is a deep issue for the moment.
>>>
>>Should this be entered in Bugzilla and marked as a low
>>priority bug or
>>enhancement?
>>
>>Paul Spencer
>>-----------------------------------------------------
>>
>>-- YM
>>
>>
>>__________________________________________________
>>Do You Yahoo!?
>>Yahoo! Movies - coverage of the 74th Academy Awards®
>>http://movies.yahoo.com/
>>
>>--
>>To unsubscribe, e-mail:
>>
> <ma...@jakarta.apache.org>
> 
>>For additional commands, e-mail:
>>
> <ma...@jakarta.apache.org>
> 
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 
> 



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Serialization error of JetspeedPersistenceService$Page

Posted by Josselin Lebret <jo...@sycomore.fr>.
If possible, try to test it with tomcat 3.3. I have noticed some bugs with
Tomcat 4.0.1 and Jetspeed, which were not present with Tomcat 3.3.
----- Original Message -----
From: "Yellow Man" <ye...@yahoo.com>
To: "Jetspeed Users List" <je...@jakarta.apache.org>
Sent: Wednesday, March 27, 2002 6:34 AM
Subject: Serialization error of JetspeedPersistenceService$Page


>
> I was able to run Jetspeed (1.3a2) inside
> JBoss2.4.4+Tomcat4.0.1. However, I got the
> serialization errors when I deploy Jetspeed and
> undeploy Jetspeed.
>
> ============================================
> [ERROR,EmbeddedCatalinaServiceSX]
> StandardManager[/jetspeed] Exception loading sessions
> from persistent storage java.io.WriteAbortedException:
> Writing aborted by exception; java.io.NotSerializ
> ableException:
> org.apache.jetspeed.portal.service.JetspeedPersistenceService$Page
> ============================================
>
> Though the exception is not critical and has been
> discussed before, it is just annoying to see them. I
> am just curious about its status: will it be fixed in
> the future release?
>
> Following is a thread I found in the mailing list:
>
> -----------------------------------------------------
> Santiago,
>
> Santiago Gala wrote:
> >
> > Paul Spencer wrote:
> >
> > >I am seen the following in the Tomcat 4.0 (final)
> > >log\localhost_log.yyyy_mm_dd file.  Is this a
> Jetspeed, Turbine, or a
> > >Tomcat problem?
> > >
> > An interaction. Tomcat 4 tries to store active
> sessions to disk (by
> > default) during shutdown, and recovers them on
> startup. We are storing
> > one or more
> >
>
> How can we tell Tomcat not to store active sessions?
>
> > JetspeedPersistenceService$Page
> >
> > in the session, and these objects are not declared
> as serializable, so
> > tomcat cannot serialize the session.
> >
> > I don't think it is a deep issue for the moment.
>
> Should this be entered in Bugzilla and marked as a low
> priority bug or
> enhancement?
>
> Paul Spencer
> -----------------------------------------------------
>
> -- YM
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Movies - coverage of the 74th Academy Awards®
> http://movies.yahoo.com/
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Serialization error of JetspeedPersistenceService$Page

Posted by Yellow Man <ye...@yahoo.com>.
I was able to run Jetspeed (1.3a2) inside
JBoss2.4.4+Tomcat4.0.1. However, I got the
serialization errors when I deploy Jetspeed and
undeploy Jetspeed. 

============================================
[ERROR,EmbeddedCatalinaServiceSX]
StandardManager[/jetspeed] Exception loading sessions
from persistent storage java.io.WriteAbortedException:
Writing aborted by exception; java.io.NotSerializ
ableException:
org.apache.jetspeed.portal.service.JetspeedPersistenceService$Page
============================================

Though the exception is not critical and has been
discussed before, it is just annoying to see them. I
am just curious about its status: will it be fixed in
the future release?

Following is a thread I found in the mailing list:

-----------------------------------------------------
Santiago,

Santiago Gala wrote:
> 
> Paul Spencer wrote:
> 
> >I am seen the following in the Tomcat 4.0 (final)
> >log\localhost_log.yyyy_mm_dd file.  Is this a
Jetspeed, Turbine, or a
> >Tomcat problem?
> >
> An interaction. Tomcat 4 tries to store active
sessions to disk (by
> default) during shutdown, and recovers them on
startup. We are storing
> one or more
> 

How can we tell Tomcat not to store active sessions?

> JetspeedPersistenceService$Page
> 
> in the session, and these objects are not declared
as serializable, so
> tomcat cannot serialize the session.
> 
> I don't think it is a deep issue for the moment.

Should this be entered in Bugzilla and marked as a low
priority bug or
enhancement?

Paul Spencer
-----------------------------------------------------

-- YM


__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards�
http://movies.yahoo.com/

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>