Browsing through the log reveals this error: 2004-06-05 23:07:46,109 [PoolThread-9] ERROR BaseProfileLocator - ProfileLocator: Failed to set Role: org.apache.jetspeed.services.security.RoleException: Unknown role 'anon' at org.apache.jetspeed.services.security.turbine.TurbineRoleManagement.getRole( TurbineRoleManagement.java:536) at org.apache.jetspeed.services.security.JetspeedRoleManagement.getRole(Jetspee dRoleManagement.java:212) at org.apache.jetspeed.services.JetspeedSecurity.getRole(JetspeedSecurity.java: 397) at org.apache.jetspeed.om.profile.BaseProfileLocator.createFromPath(BaseProfile Locator.java:242)
Strange, it seems to be looking for a role anon, but this role is called guest AFAIK...?? -Stijn ----- Original Message ----- From: "Stijn de Witt" <[EMAIL PROTECTED]> To: "Jetspeed Users List" <[EMAIL PROTECTED]> Sent: Saturday, June 05, 2004 11:07 PM Subject: Re: PSML resolution, how does it work? > ----- Original Message ----- > From: "David Sean Taylor" <[EMAIL PROTECTED]> > To: "Jetspeed Users List" <[EMAIL PROTECTED]> > Sent: Saturday, June 05, 2004 9:04 PM > Subject: Re: PSML resolution, how does it work? > > > > > > On Jun 5, 2004, at 10:51 AM, Stijn de Witt wrote: > > > > > Can anyone point me to information on the algorith that determines > > > which > > > .psml file jetspeed uses? Is it possible to completely remove the user > > > dir > > > from webapp/WEB-INF/psml? I would like to have only the directory > > > 'role' > > > with subdirs 'guest', 'user', 'manager' and 'admin'. No > > > per-user-specific > > > psml. How can this be done? > > > > Use the "role-based psml" feature, setup in your > > JetspeedResources.property file: > > > > When a new user is created, this account's psml is cloned to the new > > account psml > > # Setting this account to nothing configures role-based psml as the > > default method for new users > > services.Profiler.newuser.template= > > > > > > # Profiler Fallback options > > # > > # use Role-based PSML fallback > > services.Profiler.rolefallback=true > > > > Then you need to create a Role PSML page, assign your users this role > > and your ready > > For ex, if you create a role called "employee" and then set in the > > JetspeedSecurity.properties: > > > > # Role(s) to assign to new user. Multiple Role must be comma separated. > > services.JetspeedSecurity.newuser.roles=employee,user > > > > The role-fallback algorithm isn't that sophisticated > > It finds the first matching PSML file for any of the roles that a user > > is a member of > > > > I set the properties the way you described, but I get the message "Error > retrieving Portal Page: Profile not found.". > > My webapp/WEB-INF/psml dir looks like this: > > role > |-- admin > | \-- html > | \-- default.psml > |-- guest > | \-- html > | \-- default.psml > |-- manager > | \-- html > | \-- default.psml > \-- user > \-- html > \-- default.psml > > It keeps looking for directory user/anon/html I think... > -Stijn > > > > --------------------------------------------------------------------- > 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]
