You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Moritz Biehl <Bi...@mobiehl.de> on 2005/03/30 15:49:43 UTC

change user settings in authentication-fw

Hi,

I'm trying to write an enhancement for the sample
http://localhost:8888/samples/blocks/authentication-fw/flow/login.
I want to create a page, where an already loggedIn user (admin) can put 
in new accounts.
I tried this by manipulating the file userlist.xml with the source-write 
transformer. Unfortunately it is occupied by the loginAction.

error-message:
-------------
java.util.ConcurrentModificationException:
File C:\cocoon-2.1.6\build\webapp\authentication-fw\docs\userlist.xml is 
already being written by another thread


Questions:
-------------
1. Is there any possibility to avoid this problem or any already written 
method to add users to the userlist.xml [besides editing the file 
userlist.xml manualy, of course ;-)]?

2.(in case there's no solution for 1.) The cocoon-example 
http://localhost:8888/samples/flow/prefs/ contains a very nice way to 
register a new user - but unfortunately it has no persistent storage.
Does anyone knows a simple way to change this example to get a 
persistent storage?


Best regards and thanks for your help,
Moritz Biehl



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org