简体   繁体   English

WebLogic 12c - 目标无法访问异常

[英]WebLogic 12c - Destination unreachable exception

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?有什么关于 java 7 我应该知道的吗? I tried searching for this a lot, but in vain..我试图寻找这个很多,但徒劳..

 [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]

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.转到管理控制台,检查应该侦听 9991 的服务器是否已启动并正在运行。 I am sure it is not running.我确定它没有运行。

oracle's blog points that you have to enable tunneling: oracle 的博客指出您必须启用隧道:

access the administration console, click servers-> server you want to reach-> protocols -> http -> enable Tunneling.访问管理控制台,单击服务器-> 要访问的服务器-> 协议-> http -> 启用隧道。

a few possibilities几种可能性

  1. Not listening - check with netstat不听 - 检查 netstat
  2. No tunneling - check Summary of Servers -> Configure server (admin) -> Protocols tab -> HTTP sub tab-> Enable Tunneling无隧道 - 检查服务器摘要 -> 配置服务器(管理员) -> 协议选项卡 -> HTTP 子选项卡 -> 启用隧道
  3. JDeveloper does not trust the SSL certificate - check root CA eg JDeveloper 不信任 SSL 证书 - 检查根 CA 例如

    $ cd /oracle/Middleware-12.2.1.2/oracle_common $ 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 $ jdk/bin/keytool -import -v -file ca.crt -storepass changeit -keystore jdk/jre/lib/security/cacerts -alias MyCA

Follow these steps (Must be done on Admin only):请按照以下步骤操作(必须仅在管理员上完成):

  1. Login to Weblogic Console登录到Weblogic 控制台
  2. Click Lock and Edit单击锁定和编辑
  3. Go to Servers转到服务器
  4. Go to Admin转到管理
  5. Go to protocols转到协议
  6. Go to HTTP转到HTTP
  7. Scroll down and click on Enable Tunneling向下滚动并单击启用隧道
  8. Save节省
  9. Activate (No restart needed)激活(无需重启)

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,请确保在您的 maven settings.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 地址,而 weblogic config.xml有 localhost。

I had the similar problem in WebLogic Server Version: 12.2.1.3.0 and it was resolved by changing the SSL port.我在 WebLogic Server Version: 12.2.1.3.0 中遇到了类似的问题,通过更改 SSL 端口解决了这个问题。 On the same server, Admin server and managed server had similar ports for the SSL even though both the ports were disabled yet there was conflict.在同一台服务器上,管理服务器和托管服务器具有相似的 SSL 端口,即使这两个端口都被禁用但存在冲突。 After changing the ssl port number i was able to solve the problem.更改 ssl 端口号后,我能够解决问题。

  1. Go to Weblogic Console转到 Weblogic 控制台
  2. Click on the managed server单击托管服务器
  3. Under configuration -> General enable ssl and ensure the port mentioned is unique and is not being used by AdminServer or any of the managed servers.在 configuration -> General 下启用 ssl 并确保提到的端口是唯一的,并且没有被 AdminServer 或任何托管服务器使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM