WASX7015E ADMN0022E errors when running listServers script to enable WebSphere agents for instrumentation. javax.management.JMRuntimeException

Document ID : KB000019239
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

The listServers scripts can be used to automate configuration of multiple Websphere instances for Introscope monitoring.

This is one possible error that you may see when running the command:

WASX7015E: Exception running command: "listServers D:\\CA\\Wily"; exception

information:

javax.management.JMRuntimeException: ADMN0022E: Access is denied for the getState operation on Server MBean because of insufficient or emptycredentials.

Solution:

This information applies to WebSphere 7

The credentials required can be placed in the file soap.client.props

This file can be found in <WebSphere Home>/profiles/<profileName>/properties folder

com.ibm.SOAP.securityEnabled=true

#--------------------------------------------------------------------------- ---
# - authenticationTarget ( BasicAuth[default], KRB5. These are the only
supported selection
# on a pure client for JMX SOAP Connector Client. )
#------------------------------------------------------------------------------

com.ibm.SOAP.authenticationTarget=BasicAuth

com.ibm.SOAP.loginUserid=wasadmin
com.ibm.SOAP.loginPassword=<enter-password>