我正在使用EclipSLEE创建ResourceAdapter。以下是我的deploy-config.xml
Deploy-config.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)
...
...
如何解决这个问题?感谢
答案 0 :(得分:0)
使用vi命令在/ etc / hosts文件中添加以下行后,问题解决
74.125.28.121 www.mobicents.org