Tuesday, June 19, 2018

BEA-240003 java.net.NoRouteToHostException: No route to host (Host unreachable)

Problem

When trying to configure SSL and activating your changes on the WebLogic Admin Console, you get the following error on both the console and in the logs:
<Mar 18, 2018 4:17:04 PM GMT> <Error> <Console> <BEA-240003> <Console encountered the following error java.rmi.RemoteException: [Deployer:149150]An IOException occurred while reading input.; nested exception is:
        java.net.NoRouteToHostException: No route to host (Host unreachable); nested exception is:
        java.net.NoRouteToHostException: No route to host (Host unreachable)

        .
        .
        .
Caused by: java.net.NoRouteToHostException: No route to host (Host unreachable)

        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:344)
Solution

1. This is because the trust.jks you are using is missing the correct chain.

For example, if your identity cert is issued by a CA, you must import that CA intermediate and root certs into trust.jks:
keytool -import -alias PRODCA4 -file PRODCA4.crt -keystore /u01/app/oracle/middleware/keystores/trust.jks

keytool -import -alias PRODTreasury -file PRODTreasury.crt -keystore /u01/app/oracle/middleware/keystores/trust.jks

Applicable Versions
  • Oracle WebLogic server 11g (11.1.1.9.0)

 

No comments: