Sunday, July 7, 2013

WebLogic, changing the listen address or port

if your port is 7001, since it's the default it might not be mentioned in the config.xml. config.xml only reports stuff which differs from the default, for sake of simplicity.
apart from the config.xml, you should look into a number of other places under your domain-home:

bin/stopWebLogic.sh
bin/stopManagedWebLogic.sh
bin/startManagedWebLogic.sh
config/fmwconfig/servers/osbts1as/applications/em/META-INF/emoms.properties
config/config.xml
init-info/startscript.xml
init-info/tokenValue.properties

servers/osbts1as/data/nodemanager/osbts1as.url
servers/osbts1as/data/ldap/conf/replicas.prop
servers/osbts1ms1/data/nodemanager/osbts1ms1.url
servers/osbts1ms1/data/nodemanager/startup.properties

servers/osbts1ms2/data/nodemanager/osbts1ms2.url
servers/osbts1ms2/data/nodemanager/startup.properties
startManagedWebLogic_readme.txt
sysman/state/targets.xml
 
with osbts1as being the admin, osbts1do the domain name, osbts1ms1 and 2 the MS.

And don't forget to update any internal URIs of your deployed code.
Especially changing the listen address/port of the admin can be troublesome. If you change only the managed server, it's a lot easier.
The best option is just rebuilding the domain.
Here http://www.javamonamour.org/2013/04/weblogic-change-admin-port-number.html another post on the same topic.
(see also http://stackoverflow.com/questions/8082222/how-to-change-listen-port-from-default-7001-to-something-different/17511271#17511271 )


No comments: