ERROR

Access Denied using ArcObjects Java ADF on Windows XP Service Pack 2 or Windows 2003 Service Pack 1

Last Published: April 25, 2020

Error Message

Information provided applies to situations where ArcObjects Java applications are unable to connect to the ArcGIS Server object manager, but non-Java application are able to connect using the same credentials. This means that with the same user, ArcCatalog connects but the Java ADF Template application fails. When using the ArcObjects Java API to access an ArcGIS server object, an error message is displayed indicating that access is denied. Here are a few examples:

"AutomationException: 0x80070005 - General access denied error
AutomationException: 0x5 - access is denied, invalid domain, username, password
Run-time error '70': Permission denied"

Cause

The ArcObjects Java API uses JIntegra interoperability to manage communication with ArcGIS COM components. Both Windows XP Service Pack 2 and Windows 2003 Service Pack 1 include a number of enhancements and changes to DCOM. As these changes may affect JIntegra operations, it may be necessary to change DCOM configuration properties to enable access to ArcGIS Server components.

Solution or Workaround



  1. The %JINTEGRA_HOME%\bin directory and ntvauth.dll must be in the system PATH. For an ArcGIS installation, %JINTEGRA_HOME% is the same as the ArcGIS install directory, for example c:\Program Files\ArcGIS. This DLL contains the native code J-Integra uses to determine the local authentication credentials.
  2. If the computer belongs to a workgroup instead of a domain, make sure that it does not use simple file sharing. Start Windows Explorer, select Tools. Select Folder Options. Select the View tab and uncheck 'Use simple file sharing (Recommended)' in Advanced settings.
  3. Navigate to Start > Control Panel > Administrative Tools > Component Services.
  4. Expand Component Services > Computers. Right-click My Computer. Select Properties.
  5. Select the Default Properties tab.
  6. Select 'Enable Distributed COM on this computer'. Set the Authentication level to 'Connect' or 'None'. Set the Default Impersonation Level to 'Identify'; 'Impersonate' also works.
  7. Select the COM Security tab.
  8. Under Access Permissions, click Edit Limits. Add the agsusers and agsadmin groups with Local and Remote Access permissions.
  9. Under Launch Permissions, click Edit Limits. Add the agsusers and agsadmin groups with Local and Remote Launch permissions, as well as Local and Remote Activation permissions.
  10. Close the Properties dialog box.
  11. Navigate to and expand DCOM Config under My Computer.
  12. For both the ArcSOC and ArcSOM components, perform the following procedure:

    a) Right-click on the component and open the properties window. Select the Security tab.

    b) Under Launch and Activation permissions, select the Customize radio button and click the Edit button.

    c) In the Launch Permission dialog box, add SYSTEM, INTERACTIVE, and NETWORK, give them Local and Remote Launch permissions, as well as Local and Remote Activation permissions. Click OK.

    d) Under Access permissions, select the Customize radio button and click the Edit button.

    e) In the Access Permission dialog box, add SYSTEM, INTERACTIVE, and NETWORK, give them Local and Remote Access permissions. Click OK.

    f) Select the General tab. Set the Authentication Level to Default.

    g) Select the Location tab. Select Run application on this computer.

  13. If an 'access denied' or 'permission denied' error is still returned after configuring the DCOM settings, try rebooting the computer to allow the new settings to take effect. In addition, confirm that the changes were made to both the ArcSOC and ArcSOM components in the previous step.

    Warning:
    Upon installing a service pack, DCOM settings will be reset to default values. As a result, the steps in this document must be repeated after a service pack is applied.

Article ID:000008014

Software:
  • ArcGIS Server

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic