Here I am getting home interface but call on create() methid throws following exception.

java.lang.reflect.UndeclaredThrowableException at $Proxy0.create(Unknown Source) at mypackage1.Client.main(Client.java:20) 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:1639) at org.jboss.remoting.Client.invoke(Client.java:548) at org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy.invoke(UnifiedInvokerProxy.java:183) at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:163) at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:103) at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46) at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55) at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:169) at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:91) ... 2 more