1 Reply Latest reply on Feb 13, 2003 10:11 AM by jwkaltz

    RMISecurityManager and session bean, pls!

    dcs1pk

      I am having a problem with RMI security, I've just started using JBoss and may be I dont understand the security model very well, or RMI security or both:)

      I want to access remote RMI server from a session bean. Surely I can't set

      System.setSecurityManager(new RMISecurityManager());

      in my session bean. I have listed system properties and I dont see any security related properties. How do I map to JBoss JAAS, or do I need to????

      Now I am having this error..

      10:50:11,229 ERROR [ArtefactManagerBean] Remote exception: error unmarshalling return; nested exception is:
      java.lang.ClassNotFoundException: org.genesis_ist.oscar.server.ClientFactoryImpl_Stub (no security manager: RMI class loader disabled)
      10:50:11,231 ERROR [ArtefactManagerBean] Login setup error..Remote exception: ; CausedByException is:
      error unmarshalling return; nested exception is:
      java.lang.ClassNotFoundException: org.genesis_ist.oscar.server.ClientFactoryImpl_Stub (no security manager: RMI class loader disabled)



      Many thanks in advance....!!!!

        • 1. Re: RMISecurityManager and session bean, pls!
          jwkaltz

          > 10:50:11,229 ERROR [ArtefactManagerBean] Remote
          > exception: error unmarshalling return; nested
          > exception is:
          > java.lang.ClassNotFoundException:
          > org.genesis_ist.oscar.server.ClientFactoryImpl_Stub
          > (no security manager: RMI class loader disabled)

          I'm not an RMI expert but as I see it this has nothing to with security, nor with JBoss. It looks to me like your RMI server is screwed, not your call to it:

          This ClientFactoryImpl_Stub is some class that must exist in your remote RMI service, and it's not there ? In any case you're getting a remote exception, so you need to look in your remote service what is wrong, not in your client.