Menu

Class not found exception

Help
lusso luca
2005-09-01
2013-03-22
  • lusso luca

    lusso luca - 2005-09-01

    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

     
    • Neil Bartlett

      Neil Bartlett - 2005-09-02

      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

       
      • lusso luca

        lusso luca - 2005-09-02

        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!

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.