WebLogic 12c - Destination unreachable exception

流过昼夜 提交于 2019-12-07 04:51:37

问题


First, I had installed jdk 1.6.0_43 and oracle weblogic 12.1.1, I was successfully able to deploy my application.

I then upgraded both my jdk (1.7.0_60) and weblogic (12.1.2), but was unable to deploy my application.

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.

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..

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

回答1:


No available router to destination -- Means you do not have a service running to listen on 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.




回答2:


a few possibilities

  1. Not listening - check with netstat
  2. No tunneling - check Summary of Servers -> Configure server (admin) -> Protocols tab -> HTTP sub tab-> Enable Tunneling
  3. 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




回答3:


oracle's blog points that you have to enable tunneling:

access the administration console, click servers-> server you want to reach-> protocols -> http -> enable Tunneling.




回答4:


Follow these steps (Must be done on Admin only):

  1. Login to Weblogic Console
  2. Click Lock and Edit
  3. Go to Servers
  4. Go to Admin
  5. Go to protocols
  6. Go to HTTP
  7. Scroll down and click on Enable Tunneling
  8. Save
  9. Activate (No restart needed)



回答5:


I had a similar issue with my Weblogic server while building with maven

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

My problem was that my settings.xml had my local IP address where as weblogic config.xml had localhost.



来源:https://stackoverflow.com/questions/24489922/weblogic-12c-destination-unreachable-exception

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!