RMI Connectivity Issue on JBoss-EAP-5.0.0

Solution Verified - Updated -

Issue

One of our applications has an EJB (EJB Jar file is embeded inside a ear file) which is deployed in a Jboss instance created out of default profile.

When we try to lookup this EJB using the JNDI name from a different Jboss instance ( created out of "all" profile)  we get an error :

javax.naming.CommunicationException [Root exception is java.rmi.NoSuchObjectException: no such object in table]
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:839)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
        at javax.naming.InitialContext.lookup(InitialContext.java:392)
        at TestTaxService.main(TestTaxService.java:26)
Caused by: java.rmi.NoSuchObjectException: no such object in table
        at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
        at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
        at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:734)

Client application is hosted in a different physical machine than the main app.

Environment

  • JBoss Enterprise Application Platform 5.0.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.