Hello, testing Jboss 4.20CR1 (with patched jnp-client.jar see http://jira.jboss.com/jira/browse/JBAS-4184).
I have a java test-client. The jndi-lookup of remote-interfaces seems to be sucessful, but when i then make a method-call on such a remote-bean i get always: ava.lang.reflect.UndeclaredThrowableException | at $Proxy0.createRecord(Unknown Source) | at com.xyz.test.clients.RecordClient.main(RecordClient.java:44) | Caused by: java.lang.Exception: Can not make remoting client invocation due to not being connected to server. | at org.jboss.remoting.Client.invoke(Client.java:616) | at org.jboss.remoting.Client.invoke(Client.java:604) | at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:41) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88) | at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:46) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88) | at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:40) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88) | at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:84) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88) | at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:103) | ... 2 more For initial-context i use following configuration: | public static Context getInitialContext() | throws javax.naming.NamingException { | Properties env = new Properties(); | env.put(Context.INITIAL_CONTEXT_FACTORY, | "org.jnp.interfaces.NamingContextFactory"); | env.put(Context.URL_PKG_PREFIXES, | "org.jboss.naming:org.jnp.interfaces"); | env.put(Context.PROVIDER_URL, "jnp://127.0.0.1:1099"); | env.put(Context.SECURITY_PRINCIPAL, "admin"); | env.put(Context.SECURITY_CREDENTIALS, "admin"); | env.setProperty(Context.INITIAL_CONTEXT_FACTORY, | "org.jboss.security.jndi.JndiLoginInitialContextFactory"); | | return new InitialContext(env); | } | Any help ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026632#4026632 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026632 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user