Date Created: Thu 14-Oct-2010

Related Document Categories:

Get my WebSphere Application Server course here >> http://www.themiddlewareshop.com/products/


Problem:

[wsadmin] WASX7246E: Cannot establish "SOAP" connection to host "localhost" because of an authentication failure. Ensure that user and password are correct on the command line or in a properties file.
[wsadmin] Exception message (if any): "ADMN0022E: Access is denied for the getProcessType operation on Server MBean because of insufficient or empty credentials."
[wsadmin] WASX7213I: This scripting client is not connected to a server process; please refer to the log file C:\WAS7\AppServer\profiles\AppSrv01\logs\wsadmin.traceout for additional information.
[wsadmin] WASX8011W: AdminTask object is not available.
[wsadmin] WASX7015E: Exception running command: "$AdminApp list"; exception information:
[wsadmin] com.ibm.ws.scripting.ScriptingException: WASX7206W: The application management service is not running. Application management commands will not run.

Solution:
The username and password is either wrong, or you cancelled a prompt for username and password. You can pass the username and password in the wsadmin command line to stop this error. You can also modify soap.client.props.

locate the soap.client.props file within the properties folder for your application server's profile

#------------------------------------------------------------------------------
# - 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=
com.ibm.SOAP.loginPassword=

==================

Example: If you username and password is wasadmin then modfiy as follows

#------------------------------------------------------------------------------
# - 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=wasadmin

Get my WebSphere Application Server course here >> http://www.themiddlewareshop.com/products/


Steve Robinson - IBM Champion 2013

About Me

Steve Robinson has been working in IT for over 20 years and has provided solutions for many large-enterprise corporate companies across the world. Steve specialises in Java and Middleware.

In January 2013, I was awarded the prestigous 'IBM Champion' accolade.


  • Linked In
  • Twitter
  • About Me
  • My Blog
  • Contact Me

Read my books?

IBM WebSphere Application Server 8.0 Administration Guide

IBM WebSphere Application Server 8.0 Administration Guide

WebSphere Application Server 7.0 Administration Guide

WebSphere Application Server 7.0 Administration Guide

WebSphere Categories

Other Categories