[HOME]/common/bin/wlst.sh
wls:/offline> connect('oam_user','******','t3://thiagoleoncio_server:14099')
Connecting to t3://thiagoleoncio_server:14099 with userid oam_user ...
Successfully connected to managed Server 'oam_leoncio' that belongs to domain 'Leoncio_domain'.
Warning: An insecure protocol was used to connect to the
server. To ensure on-the-wire security, the SSL port or
Admin port should be used instead.
wls:/Leoncio_domain/serverConfig> domainRuntime()
DomainRuntime MBeanServer is not enabled on a Managed Server.
To fix this:
Instead of connect directly to OAM managed server, go to AdminServer port as oamuser and do the connection then execute domainRuntime and finish your task as below:
[HOME]/common/bin/wlst.sh
wls:/offline> connect('oam_user','******','t3://thiagoleoncio_server:7001')
Connecting to t3://thiagoleoncio_server:14099 with userid oam_user ...
Successfully connected to Admin Server 'AdminServer' that belongs to domain 'Leoncio_domain'.
Warning: An insecure protocol was used to connect to the
server. To ensure on-the-wire security, the SSL port or
Admin port should be used instead.
wls:/Leoncio_domain/serverConfig> domainRuntime()
Location changed to domainRuntime tree. This is a read-only tree with DomainMBean as the root.
For more help, use help(domainRuntime)
wls:/Leoncio_domain/domainRuntime>
I hope this helps,
Thiago Leoncio.