2

当我尝试DomainRoot使用以下内容时:

final TLSParams tlsParams = new TLSParams( TrustAnyTrustManager.getInstanceArray(), null );
        final AppserverConnectionSource conn 
            = new AppserverConnectionSource(
                    AppserverConnectionSource.PROTOCOL_RMI, 
                        "localhost", 4848, "admin",
                            "adminadmin", tlsParams, null);
DomainRoot domainRoot = conn.getDomainRoot();

我得到以下异常:

ProxyFactory.getInstance:尝试创建新 ProxyFactory 失败:java.io.IOException:无法检索 RMIServer 存根:javax.naming.CommunicationException [根异常是 java.rmi.ConnectIOException:JRMP 连接建立期间出错;嵌套异常是:

任何人都可以帮忙吗?谢谢。

4

0 回答 0