We have multiple JBoss servers running. One (that runs an EJB) is still at 3.2.6.
I have a web application running on another server and this is being upgraded to 4.0.1. The ejb call to the 3.2.6 server is now not working on the 4.0.1 server and I can't figure out why.
Here is how I am referencing it:
Hashtable props = new Hashtable(); try { props.put( Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); props.put(Context.PROVIDER_URL, IP + ":" + PORT); props.put( Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces"); Context jndiContext = new InitialContext(props); Object objRef = jndiContext.lookup("PaymenTechHome"); homeRef = (PaymenTechHome) PortableRemoteObject.narrow( objRef, PaymenTechHome.class); } catch (Exception E) { log.error(E.getMessage()); } finally { props = null; }
java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324)
Its probably this issue:
http://jira.jboss.com/jira/browse/JBAS-1495