Hi, I'm trying to create a RCP follow Your instruction in readme.txt, but when I launch it I get a Login Error witch says that it can't find my javax.security.auth.spi.LoginModule implementation...
It seems a classloader problem...
What should I miss?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Try registering the plugin that contains your LoginModule as a "buddy" of the net.sourceforge.eclipsejaas plugin. You need to manually edit your MANIFEST.MF file to do this - see the manifest in the samplelogin plugin for the syntax.
I've aded this instruction to the readme, but SourceForge's anonymous CVS access seems to lag behind my updates by at least a couple of days.
By the way, the reason you have to do this is because JAAS needs the class name of the LoginModule class, rather than an actual LoginModule instance. JAAS then loads the class you've given it, presumably using the Class.forName() mechanism. Since your LoginModule class is in a downstream plugin from the eclipsejaas plugin, the classes in it are not visible unless you use the buddy classloader mechanism.
Hope this helps. Regards,
Neil
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks, now it works! I'm very interesting in larning jaas use , expecially for use it in developing Eclipse RCP application. Could You suggest me some link or book where I can found detailed explication of jaas?
Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I'm trying to create a RCP follow Your instruction in readme.txt, but when I launch it I get a Login Error witch says that it can't find my javax.security.auth.spi.LoginModule implementation...
It seems a classloader problem...
What should I miss?
Thanks
Try registering the plugin that contains your LoginModule as a "buddy" of the net.sourceforge.eclipsejaas plugin. You need to manually edit your MANIFEST.MF file to do this - see the manifest in the samplelogin plugin for the syntax.
I've aded this instruction to the readme, but SourceForge's anonymous CVS access seems to lag behind my updates by at least a couple of days.
By the way, the reason you have to do this is because JAAS needs the class name of the LoginModule class, rather than an actual LoginModule instance. JAAS then loads the class you've given it, presumably using the Class.forName() mechanism. Since your LoginModule class is in a downstream plugin from the eclipsejaas plugin, the classes in it are not visible unless you use the buddy classloader mechanism.
Hope this helps. Regards,
Neil
Thanks, now it works! I'm very interesting in larning jaas use , expecially for use it in developing Eclipse RCP application. Could You suggest me some link or book where I can found detailed explication of jaas?
Thanks!