在启动Weblogic的时候,出现下面的异常;可以发布ADF应用并能正常运行。
主要错误信息如下:
- oracle.wsm.policymanager.PolicyManagerException: WSM-02120 : Unable to connect to the Oracle WSM Policy Manager due to the following error "javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://shawn-Lou:7101: Destination unreachable; nested exception is:
- java.net.ConnectException: Connection refused; No available router to destination]".
- at oracle.wsm.policymanager.BeanFactory.getInitialContext(BeanFactory.java:619)
- at oracle.wsm.policymanager.BeanFactory.getJndiObj(BeanFactory.java:648)
- at oracle.wsm.policymanager.BeanFactory.lookupJndiObj(BeanFactory.java:910)
- ......
- ......
- Caused By: javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://shawn-Lou:7101: Destination unreachable; nested exception is:
- java.net.ConnectException: Connection refused; No available router to destination]
- ......
- ......
- Caused By: java.net.ConnectException: t3://shawn-Lou:7101: Destination unreachable; nested exception is:
- java.net.ConnectException: Connection refused; No available router to destination
- ......
- ......
修改Weblogic的listen address可以去除该问题:
1)在Weblogic控制台中,指定固定的IP地址:
Environment -> Servers -> servername -> Configuration -> General -> Listen Address
2)修改Weblogic域的配置文件config.xml中的listen address
- <server>
- <name>DefaultServer</name>
- <ssl>
- <enabled>false</enabled>
- </ssl>
- <listen-port>
- 7101
- </listen-port>
- <listen-port-enabled>true</listen-port-enabled>
- <listen-address>127.0.0.1</listen-address>
- <java-compiler>javac</java-compiler>
- <tunneling-enabled>true</tunneling-enabled>
- <server-life-cycle-timeout-val>30</server-life-cycle-timeout-val>
- <startup-timeout>0</startup-timeout>
- <graceful-shutdown-timeout>0</graceful-shutdown-timeout>
- <ignore-sessions-during-shutdown>false</ignore-sessions-during-shutdown>
- <client-cert-proxy-enabled>false</client-cert-proxy-enabled>
- <server-diagnostic-config>
- <name>DefaultServer</name>
- <diagnostic-context-enabled>true</diagnostic-context-enabled>
- <wldf-diagnostic-volume>Low</wldf-diagnostic-volume>
- </server-diagnostic-config>
- </server>
--转自