6 Replies Latest reply on Aug 28, 2012 3:58 AM by wdfink

    Remote SLSB issue

    asheffey

      Trying to access a remote SLSB from within a Spring application running on 6.1, via the following config:

       

      <jee:environment>

                  java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory

                  java.naming.provider.url=jnp://foo.bar.com:1099

                  java.naming.factory.url.pkgs=org.jboss.naming

      </jee:environment>

       

      I'm getting the following exception; the same config works on 4.0.2.  I found the JIRA that points to the fact that the JRMPInvokerProx was removed.  What should the above be changed to?

       

      Caused by: java.lang.ClassNotFoundException: org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy (no security manager: RMI class loader disabled)

          at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:375) [:1.6.0_18]

          at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165) [:1.6.0_18]

          at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620) [:1.6.0_18]

          at org.jboss.system.JBossRMIClassLoader.loadClass(JBossRMIClassLoader.java:91) [run.jar:6.1.0.Final (Build SVNTag:JBoss_6.1.0.Final date: 20110816)]

          at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247) [:1.6.0_18]

          at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197) [:1.6.0_18]

        • 1. Re: Remote SLSB issue
          wdfink

          Do you use a configuration file of the 4.x server in AS6?

          Or you might have a classlosder issue on client side by mixing client jars of 4.x and 6.x version.

          • 2. Re: Remote SLSB issue
            asheffey

            The SLSB is remote, so there is no local configuration besides what's in the Spring config, and there are no 4.x client JARs.

             

            What appears to be the issue is that the Naming configuration which worked in 4.x is not working in 6.x because org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy was removed from 6.x (see https://issues.jboss.org/browse/JBAS-7563).

             

            What values should I use for java.naming.factory.initial and java.naming.factory.url.pkgs to avoid the above exception?  Or is there a workaround?

            • 3. Re: Remote SLSB issue
              huasonator

              I have the same problem... Any Idea?

              • 4. Re: Remote SLSB issue
                wdfink

                You have to add the JBoss4 client libraries and set a classloader repository to exclude the JBoss6 classes.

                See this wiki

                • 5. Re: Remote SLSB issue
                  huasonator

                  Yes, I did that, i put the JBoss4 client libraries and works fine... but really is the best way...? why removed the JRMPInvokerProxy? exits a new alternative in AS6 for the lookup classes?

                  • 6. Re: Remote SLSB issue
                    wdfink

                    Yes, that is the best alternative in AS6 I suppose.

                     

                    I don't know whether the JRMPInvoker is removed. But I think that AS7 is a better alternative because you will have no support for AS6. AS4 and AS5 will still have active members as there are used often.

                    But the future will be AS7 and here the behaviour is complete different because the EJB invocation is new from client perspective.