[opencms-dev] delete user with cmsObj.deleteUser("username") problem

Manuel Wallnoefer manuel.wallnoefer at msk-informatik.at
Mon Jul 28 12:14:07 CEST 2008


Hi all !

I have written a short method to delete certain Opencms users.

If i open a .jsp file inside OpenCms ( logged in as Admin) where this method
is called, everything works fine.

But i wnt to execute this method with a cron job.

So i wrote a Scheduled job an there i call the same Method. And now it
doesnt work.

First i thought it could be a permission problem, so that the CmsObject i am
working with has no Admin role.

But i call the method "cmsObj.isAdmin()" and it returns "true".

So i am Admin , because i'm  starting the scheduled job as Admin.

The exception which is thrown when the method
"cmsObj.deleteUser("username");" is the following:

Error in delete user:  org.opencms.file.CmsVfsException: Fehler beim
Löschen des Benutzers "1".


Has anybody an idea how i can solve this problem ??

Thx for help !

~ manuel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20080728/1bb9c02a/attachment.htm>


More information about the opencms-dev mailing list