JBoss Community

Re: invoking an EJB over iiop

created by Juergen Weber in Beginner's Corner - View the full discussion

Got it working with JBoss 5.1, using an environment of

com.sun.jndi.cosnaming.CNCtxFactory

and

corbaloc::localhost:3528/JBoss/Naming/root

 

but you have to set the RMISecurityManager and the policy given above.

I tried in vain to set a more specific Permission than java.security.AllPermission

 

Anyway, calling an EJB is useful from within JBoss if you want to call EJBs in another JBoss server with different version.

 

Strange is, even for the client (in JBoss) you need the all configuration, else there is

 

java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.proxy.compiler.IIOPStubCompiler

        at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:306)

        at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:534)

        at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:428)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

        at org.jboss.web.tomcat.service.WebAppClassLoader.findClass(WebAppClassLoader.java:98)

        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)

        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1229)

        at java.lang.Class.forName0(Native Method)

        at java.lang.Class.forName(Class.java:247)

        at com.sun.corba.se.impl.util.JDKClassLoader.loadClass(JDKClassLoader.java:81)

        at com.sun.corba.se.impl.util.JDKBridge.loadClassM(JDKBridge.java:166)

        at com.sun.corba.se.impl.util.JDKBridge.loadClass(JDKBridge.java:70)

        at com.sun.corba.se.impl.javax.rmi.CORBA.Util.loadClass(Util.java:572)

        at javax.rmi.CORBA.Util.loadClass(Util.java:235)

Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community