Java WebLogic 12c - 目标无法访问异常
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/24489922/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
WebLogic 12c - Destination unreachable exception
提问by AlwaysALearner
First, I had installed jdk 1.6.0_43 and oracle weblogic 12.1.1, I was successfully able to deploy my application.
首先,我安装了 jdk 1.6.0_43 和 oracle weblogic 12.1.1,我能够成功部署我的应用程序。
I then upgraded both my jdk (1.7.0_60) and weblogic (12.1.2), but was unable to deploy my application.
然后我升级了 jdk (1.7.0_60) 和 weblogic (12.1.2),但无法部署我的应用程序。
Now, I downgraded my weblogic (12.1.1) but retained my jdk 1.7.0_60, but i was still not able to deploy my application successfully.
现在,我降级了我的 weblogic (12.1.1) 但保留了我的 jdk 1.7.0_60,但我仍然无法成功部署我的应用程序。
In both the failure cases, I got the same error with the following message. Is there something with respect to java 7 I should be aware of? I tried searching for this a lot, but in vain..
在这两种失败情况下,我都收到了以下消息的相同错误。有什么关于 java 7 我应该知道的吗?我试图寻找这个很多,但徒劳..
[exec] javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://localhost:9991: Destination unreachable; nested exception is:
[exec] java.net.ConnectException: Connection refused: connect; No available router to destination]
采纳答案by SridharS
No available router to destination -- Means you do not have a service running to listen on localhost:9991
没有可用的路由器到目的地 -- 意味着您没有运行服务来侦听 localhost:9991
Go to admin console, check the servers which should be listening on 9991 is up and running. I am sure it is not running.
转到管理控制台,检查应该侦听 9991 的服务器是否已启动并正在运行。我确定它没有运行。
回答by jpfreire
oracle's blogpoints that you have to enable tunneling:
oracle 的博客指出您必须启用隧道:
access the administration console, click servers-> server you want to reach-> protocols -> http -> enable Tunneling.
访问管理控制台,单击服务器-> 要访问的服务器-> 协议-> http -> 启用隧道。
回答by Jason Pyeron
a few possibilities
几种可能性
- Not listening - check with netstat
- No tunneling - check Summary of Servers -> Configure server (admin) -> Protocols tab -> HTTP sub tab-> Enable Tunneling
JDeveloper does not trust the SSL certificate - check root CA e.g.
$ cd /oracle/Middleware-12.2.1.2/oracle_common
$ jdk/bin/keytool -import -v -file ca.crt -storepass changeit -keystore jdk/jre/lib/security/cacerts -alias MyCA
- 不听 - 检查 netstat
- 无隧道 - 检查服务器摘要 -> 配置服务器(管理员) -> 协议选项卡 -> HTTP 子选项卡 -> 启用隧道
JDeveloper 不信任 SSL 证书 - 检查根 CA 例如
$ cd /oracle/Middleware-12.2.1.2/oracle_common
$ jdk/bin/keytool -import -v -file ca.crt -storepass changeit -keystore jdk/jre/lib/security/cacerts -alias MyCA
回答by Huseyin Burhan
Follow these steps (Must be done on Adminonly):
请按照以下步骤操作(必须仅在管理员上完成):
- Login to Weblogic Console
- Click Lock and Edit
- Go to Servers
- Go to Admin
- Go to protocols
- Go to HTTP
- Scroll down and click on Enable Tunneling
- Save
- Activate(No restart needed)
- 登录到Weblogic 控制台
- 单击锁定和编辑
- 转到服务器
- 转到管理
- 转到协议
- 转到HTTP
- 向下滚动并单击启用隧道
- 节省
- 激活(无需重启)
回答by Abhi Rampal
I had a similar issue with my Weblogic server while building with maven
使用 maven 构建时,我的 Weblogic 服务器遇到了类似的问题
If you're using maven, make sure in your maven settings.xml
file, the value for: <weblogic.admin.url></weblogic.admin.url>
is the same what you have for listen-address></listen-address>
your weblogic config.xml
如果您使用的是 maven,请确保在您的 mavensettings.xml
文件中,值:<weblogic.admin.url></weblogic.admin.url>
与listen-address></listen-address>
您的 weblogic的值相同config.xml
My problem was that my settings.xml
had my local IP address where as weblogic config.xml
had localhost.
我的问题是我settings.xml
有我的本地 IP 地址,而 weblogicconfig.xml
有 localhost。