0

我正在使用 EclipSLEE 创建 ResourceAdapter。以下是我的 deploy-config.xml

部署配置.xml

<?xml version="1.0" encoding="utf-8"?>
 <!DOCTYPE deploy-config PUBLIC "-//Red Hat, Inc.//DTD JAIN SLEE Deploy Config 1.1//EN"
                               "http://www.mobicents.org/slee/dtd/deploy-config_1_1.dtd">
 <deploy-config>
    <ra-entity entity-name="AFPTelnetRA" resource-adaptor-id="ResourceAdaptorID[name=AFPTelnetRA,vendor=kalsym,version=1.0]">
     <ra-link name="AFPTelnetRA" />
     </ra-entity>
</deploy-config>

成功部署在windows10上运行的JBoss中。

当我尝试将它部署在运行在 Linux (centOS) 机器上的 JBoss 上时。它给出以下错误:

错误日志

2015-12-02 17:21:35,282 ERROR [org.mobicents.slee.container.deployment.jboss.SLEESubDeployer] (HDScanner) Deployment of AFPTelnetRA-DU-1.0.jar failed.
    java.net.UnknownHostException: www.mobicents.org
            at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178)
            at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
            at java.net.Socket.connect(Socket.java:579)
            at java.net.Socket.connect(Socket.java:528)
            at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
            ...
            ...

如何解决这个问题?谢谢

4

1 回答 1

0

使用 vi 命令在 /etc/hosts 文件中添加以下行后问题解决

74.125.28.121 www.mobicents.org
于 2015-12-08T07:46:55.433 回答