[jboss-user] [Beginner's Corner] - Re: invoking an EJB over iiop

Juergen Weber do-not-reply at jboss.com
Thu Sep 8 09:41:00 EDT 2011


Juergen Weber [http://community.jboss.org/people/weberj] created the discussion

"Re: invoking an EJB over iiop"

To view the discussion, visit: http://community.jboss.org/message/625502#625502

--------------------------------------------------------------
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
[http://community.jboss.org/message/625502#625502]

Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110908/188c9081/attachment-0001.html 


More information about the jboss-user mailing list