Jdeveloper 连接不到 soa suit 出现Error getting OC4J Process for: opmn-oc4j_soa+oc4j-10.3.6.101-6003-default:
Error connecting to OPMN (is it running?): Connection refused: connect
的解决方案
Unique IP Address Is Needed to Create an Application Server Connection
In Oracle JDeveloper, when you create a connection to a 10.1.3 application server that has multiple IP addresses, the Test Connection function returns the following error message:
Error getting OC4J Process for: ... : Error connecting to OPMN (is it running?): Connection refused: connect
You must specify a unique IP address when creating a connection to the server from Oracle JDeveloper.
具体修改如下
In $ORACLE_HOME/opmn/conf/opmn.xml there is a <notification-server> element, by default it looks something like this:
<notification-server>
<port local="6100" remote="6200" request="6003"/>
<ssl enabled="true" wallet-file="$ORACLE_HOME\opmn\conf\ssl.wlt\default"/>
</notification-server>
I added a ip-addr tag as follows:
<notification-server>
<ipaddr remote="0.0.0.0" request="0.0.0.0"/>
<port local="6100" remote="6200" request="6003"/>
<ssl enabled="true" wallet-file="$ORACLE_HOME\opmn\conf\ssl.wlt\default"/>
</notification-server>
That way the opmn server listens to all IP adresses instead of just to 127.0.0.1 (which apparently is the default). Note that there may be security issues with this as I haven't looked into that (my goal was just to get it working).
After changing the config you'll have to reload opmn.xml (or just reset opmn) and voila.
Error connecting to OPMN (is it running?): Connection refused: connect
的解决方案
Unique IP Address Is Needed to Create an Application Server Connection
In Oracle JDeveloper, when you create a connection to a 10.1.3 application server that has multiple IP addresses, the Test Connection function returns the following error message:
Error getting OC4J Process for: ... : Error connecting to OPMN (is it running?): Connection refused: connect
You must specify a unique IP address when creating a connection to the server from Oracle JDeveloper.
具体修改如下
In $ORACLE_HOME/opmn/conf/opmn.xml there is a <notification-server> element, by default it looks something like this:
<notification-server>
<port local="6100" remote="6200" request="6003"/>
<ssl enabled="true" wallet-file="$ORACLE_HOME\opmn\conf\ssl.wlt\default"/>
</notification-server>
I added a ip-addr tag as follows:
<notification-server>
<ipaddr remote="0.0.0.0" request="0.0.0.0"/>
<port local="6100" remote="6200" request="6003"/>
<ssl enabled="true" wallet-file="$ORACLE_HOME\opmn\conf\ssl.wlt\default"/>
</notification-server>
That way the opmn server listens to all IP adresses instead of just to 127.0.0.1 (which apparently is the default). Note that there may be security issues with this as I haven't looked into that (my goal was just to get it working).
After changing the config you'll have to reload opmn.xml (or just reset opmn) and voila.