Wednesday, October 07, 2009

FMW SOA 11g and DHCP

During my trainings sessions forFMW SOA 11g, some of the attendees had issues with deploying and / or testing composites. They all had installed FMW SOA 11g on there laptop and used Microsoft Windows XP. We solved this issue by forcing FMW SOA 11g to be listening to localhost.

By default installation of FMW SOA 11g, the weblogic server is listen to any netwrok card (WIreless, Cabled, VMWare, loopback etc...).

To force SOA 11G to listen to local host apply the following settings.

Change in your config.xml file, from the WLS Domain directory, that the Admin server and soa_server the listen adress to localhost (user_projects/domains/soa_domain/config):
      <server>
<name>AdminServer</name>
<listen-address></listen-address>
</server>
<server>
<name>bam_server1</name>
<ssl>
<name>bam_server1</name>
<listen-port>9002</listen-port>
</ssl>
<machine>LocalMachine</machine>
<listen-port>9001</listen-port>
<listen-address></listen-address>
</server>
<server>
<name>soa_server1</name>
<ssl>
<name>soa_server1</name>
<listen-port>8002</listen-port>
</ssl>
<machine>LocalMachine</machine>
<listen-port>8001</listen-port>
<listen-address></listen-address>
</server>

Into:

<server>
<name>AdminServer</name>
<listen-address>localhost</listen-address>
</server>
<server>
<name>AdminServer</name>
<listen-address>localhost</listen-address>
</server>
<server>
<name>bam_server1</name>
<ssl>
<name>bam_server1</name>
<listen-port>9002</listen-port>
</ssl>
<machine>LocalMachine</machine>
<listen-port>9001</listen-port>
<listen-address>localhost</listen-address>
</server>
<server>
<name>soa_server1</name>
<ssl>
<name>soa_server1</name>
<listen-port>8002</listen-port>
</ssl>
<machine>LocalMachine</machine>
<listen-port>8001</listen-port>
<listen-address>localhost</listen-address>
</server>

Replace your local hostname in (user_projects/domains/soa_domain/config):

echo "$1 managedserver1 http://*vijfhuizen*:7001"
...
ADMIN_URL="http://vijfhuizen:7001"

Into
echo "$1 managedserver1 http://*localhost*:7001"
...
ADMIN_URL="http://localhost:7001"

Set the SCA CallbackURLK and serverURL! This is done in the file:

YOUR_SOA_DOMAIN/config/soa-infra/configuration/soa-infra-config.xml
...
<datasourceJndi>jdbc/SOALocalTxDataSource</datasourceJndi>
<txDatasourceJndi>jdbc/SOADataSource</txDatasourceJndi>
<serverURL>http://localhost:8001</serverURL>
<callbackServerURL>http://localhost:8001</callbackServerURL>
<cache-config>
...
Restart the SOA Application Server.

Post a Comment