我在开发EJB时出现以下错误(JDK1.6,jboss-4.2.2.GA):
Exception in thread "main" java.lang.reflect.UndeclaredThrowableException
Can not make remoting client invocation due to not being connected to server.
解决方法:从http://repository.jboss.com/jboss/remoting/1.4.6.GA/lib/jboss-remoting.jar下载后覆盖%JBOSS_HOME%\server\all[default][min]\lib下的jboss-remoting.jar即可。