JBoss Community

JNDI lookup JBoss 6 -> JBoss 5.1: ProxyFactory not found

created by Ignacio de Cordoba in JNDI and Naming - View the full discussion

Hello,

I need to perform a remote JNDI lookup from a JBoss 6 to a JBoss 5.1 server. I get the following exception:

 

Caused by: java.lang.RuntimeException: Exception while trying to locate proxy factory in JNDI, at key ProxyFactory/321phonic/SIPManagerBean/321phonic/SIPManagerBean/remote

          at org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory.getProxyFactoryFromJNDI(ProxyObjectFactory.java:249) [:1.0.11]

          at org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory.getObjectInstance(ProxyObjectFactory.java:157) [:1.0.11]

          at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304) [:1.6.0_22]

          at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1483) [:5.0.5.Final]

          at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1500) [:5.0.5.Final]

          ... 144 more

Caused by: javax.naming.NameNotFoundException: ProxyFactory not bound

          at org.jnp.server.NamingServer.getBinding(NamingServer.java:771) [:5.0.5.Final]

          at org.jnp.server.NamingServer.getBinding(NamingServer.java:779) [:5.0.5.Final]

          at org.jnp.server.NamingServer.getObject(NamingServer.java:785) [:5.0.5.Final]

          at org.jnp.server.NamingServer.lookup(NamingServer.java:396) [:5.0.5.Final]

          at org.jnp.server.NamingServer.lookup(NamingServer.java:399) [:5.0.5.Final]

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_22]

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_22]

 

I suppouse it is because of the different versions of jbossclient-all.jar in both servers.

What is the preferred method of building a jbossclient-all.jar (in 5.1 it references lots of jars so I can't just copy it into the WEB-INF/lib of the war app in JBoss 6 instance) and deploy it into my client war withoud conflicts with own JBoss 6 client jars?

 

Thanks for any help,

Ignacio

Reply to this message by going to Community

Start a new discussion in JNDI and Naming at Community