问题
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
- 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
回答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):
- 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)
回答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