4 Replies Latest reply on Apr 19, 2002 11:13 AM by adrian.brock

    no security manager: RMI class loader disabled

    kerstin

      Hi,

      I want to invoke the method "selectMessagetypes" of an stateless SessionBean. This one should select all entries from the database-table, map each to one data-object, pick this data-objects in an ArrayList and return this list. However this invocation accumulates in the following error:

      At client-side:

      com.werum.pasx.foundation.utilities.SystemException: Start of service selectMessagetypes fails in userSession.: null;
      ---> nested java.lang.reflect.UndeclaredThrowableException
      at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
      at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown
      Source)
      at sun.rmi.server.UnicastRef.invoke(Unknown Source)
      at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invoke(Unknown Source)
      at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeContainer(Ge
      nericProxy.java:357)
      at org.jboss.ejb.plugins.jrmp.interfaces.StatefulSessionProxy.invoke(StatefulSessionProxy.java:136)
      at $Proxy1.execute(Unknown Source)
      at com.werum.pasx.foundation.utilitiesClient.proxy.EJBProxy.execute(EJBProxy.java:142)
      at com.werum.pasx.foundation.utilitiesClient.proxy.EJBSwingProxy.execute(EJBSwingProxy.java:95)
      at com.werum.pasx.foundation.guiComponents.MesErpTestDataComponent$Messa
      getypeTableModel.getArrayZeilen(MesErpTestDataComponent.java:2390)
      at com.werum.pasx.foundation.guiComponents.MesErpTestDataComponent$Messa
      getypeTableModel.(MesErpTestDataComponent.java:2385)
      at com.werum.pasx.foundation.guiComponents.MesErpTestDataComponent.getMe
      ssagetypes(MesErpTestDataComponent.java:2362)
      at com.werum.pasx.foundation.guiComponents.MesErpTestDataComponent.actio
      nPerformed(MesErpTestDataComponent.java:251)
      at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
      at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknow
      n Source)
      at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
      at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
      at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour
      ce)
      at java.awt.Component.processMouseEvent(Unknown Source)
      at java.awt.Component.processEvent(Unknown Source)
      at java.awt.Container.processEvent(Unknown Source)
      at java.awt.Component.dispatchEventImpl(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Window.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)

      At server-side (JBoss 2.4.4):

      [INFO,Default] in UserSession request selectMessagetypes
      [INFO,Default] Error in UserSession:
      [ERROR,Default] java.lang.reflect.UndeclaredThrowableException:
      [ERROR,Default] java.lang.ClassNotFoundException: com.werum.pasx.prototypen.
      erpMesSchnittstelle.MessagetypeData (no security manager: RMI class loader disabled)

      [ERROR,Default] <<no stack trace available>>
      [ERROR,Default]

      I think I have make a mistake by the configuration of the JBoss-Server (2.4.4), because the same jar-files (of cource with other META-INF files) I have deployed in the Inprise AppServer and start then the client, I don't get this error.

      What could cause this error?
      Kerstin

        • 1. Re: no security manager: RMI class loader disabled

          You have passed a class to JBoss that the server does
          not know about.

          Either install the class on the server,

          or install an RMISecurityManager on the server and
          specify an rmi codebase in your client.

          Regards,
          Adrian

          • 2. Re: no security manager: RMI class loader disabled
            kerstin

            Thanks,

            <Either install the class on the server, >
            I have put the class into the jar-file, which I have deployed, but the error occurs anyway.

            <or install an RMISecurityManager on the server and
            specify an rmi codebase in your client.>
            I have no experience with RMISecurityManager. Can you explain me, how to realize this?

            Kerstin


            • 3. Re: no security manager: RMI class loader disabled
              jwkaltz

              > <Either install the class on the server, >
              > I have put the class into the jar-file, which I have
              > deployed, but the error occurs anyway.

              The error message
              [ERROR,Default] java.lang.ClassNotFoundException: com.werum.pasx.prototypen.erpMesSchnittstelle.MessagetypeData

              indicates that this class is not in your JBoss classpath. It must be either in your deployment jar, or in a library in the JBoss lib/ext directory.
              If you want it in your deployment jar, then the .class file of your class must be within this jar with exactly that path (com/werum/...). It doesn't work if it's in some other jar, which in turn you add to your deployment jar.

              • 4. Re: no security manager: RMI class loader disabled

                I wouldn't worry about the RMISecurityManager, if you
                don't know how to use it you could introduce a
                security problem.

                I would concentrate on why the class is not found.
                Are you sure the class is in the deployed jar?

                Regards,
                Adrian