tags:

views:

57

answers:

2

Hi All,

I am new to WebLogic. In JBoss whenever we wanted to access the webapps hosted on JBoss over network we started up the server with -b 0.0.0.0 option.

Now I have installed WebLogic 9.2 in my workstation and I am able to access the webapps hosted on it only through http://localhost:&lt;port&gt;/ <context_name> but I am unable access the same URL with appropriate hostname / ipaddress in place of localhost.

I am using winxp and my windows firewall is off.

Kindly let me know how to startup the WebLogic server binding to 0.0.0.0 so that I can access it anywhere in the network.

Thanks in advance ...

+1  A: 

Modify the config.xml in your domain.

There will be a tag called <Server> with <name>AdminServer</name> or whatever the name you've which matches your local server name.

Set the <listen-address> and <listen-port> to your actual IP (or DNS) and Port. Remember put your IP not 0.0.0.0

Read more at

http://download.oracle.com/docs/cd/E13222_01/wls/docs81/config_xml/Server.html#ListenAddress

JoseK
Thank you for the reply. I had tried that configuration but as soon as I restart the server I was unable to access the server neither through ip address / domain name nor using localhost in the URL in the same system.
vcosk
can you post the relevant line in config.xml?
JoseK
Intial value: <server> <name>AdminServer</name> <ssl> <enabled>false</enabled> </ssl> <listen-address/> </server>Modified to:<server> <name>AdminServer</name> <ssl> <enabled>false</enabled> </ssl> <!-- <listen-address/> --> <listen-address>172.16.55.20</listen-address> </server>
vcosk
and *<listen-port>* also?
JoseK
hmm, tried it, but during start up an error was thrown saying config.xml schema validation failed :(.
vcosk
rt now my server is running in development mode ..
vcosk
Okay can you try doing it from the console - follow the steps here - even for your AdminServer http://download.oracle.com/docs/cd/E13222_01/wls/docs92/ConsoleHelp/taskhelp/domainconfig/CreateManagedServers.html
JoseK
I am getting a feeling that access is blocked by companies firewall bcoz same issue is happening for tomcat server. I'll check with admin folks ..
vcosk
A: 

In config.xml, I have:

  <server>
    <name>AdminServer</name>
    <listen-port>7401</listen-port>
    <listen-address></listen-address>
  </server>

At startup, Weblogic will start a listener on each interface. This is not the same as 0.0.0.0 because if you add an interface for example, Weblogic will not listening to it. But I think it is enough for you.

$ netstat -lnp|grep 7001
tcp6       0      0 192.168.11.123:7001     :::*                    LISTEN      8086/java       
tcp6       0      0 127.0.0.1:7001          :::*                    LISTEN      8086/java       

Another approach is to add a "channel" for each interface/port you want a listener. You can add a channel from the console, server config, protocols, channels.

Eric Darchis