gpt4 book ai didi

jboss - JBoss部署DU时如何解决UnknownHostException

转载 作者:行者123 更新时间:2023-12-04 19:45:15 24 4
gpt4 key购买 nike

我正在使用 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)
...
...

如何解决这个问题?谢谢

最佳答案

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

74.125.28.121 www.mobicents.org

关于jboss - JBoss部署DU时如何解决UnknownHostException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34044061/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com