This topic describes the compatibility of Java server object extensions (SOEs) and server object interceptors (SOIs) across different ArcGIS Enterprise versions. It also explains how to upgrade existing Java extension projects to a later version of the ArcGIS Enterprise SDK.
Extension compatibility
When deploying Java SOEs and SOIs, the recommended approach is to build extensions using the same version of the ArcGIS Enterprise SDK as the target ArcGIS Server version.
Compatibility with extensions built using earlier SDK versions varies by ArcGIS Server version. Even when an extension can be registered successfully, its functionality should be verified against the target server environment.
Extension compatibility with ArcGIS Server 12.2
For ArcGIS Server 12.2, the recommended approach is to build Java SOEs and SOIs using ArcGIS Enterprise SDK 12.2.
Compatibility with extensions built using SDK 12.0 or 12.1 must be confirmed against the supported compatibility requirements for ArcGIS Server 12.2.
Extensions built with newer SDK versions are not guaranteed to work with older ArcGIS Server versions.
Extension compatibility with ArcGIS Server 12.1
ArcGIS Server 12.1 supports Java SOEs and SOIs built with ArcGIS Enterprise SDK 12.0.
In general, these extensions can be deployed to ArcGIS Server 12.1. However, compatibility in the reverse direction is not guaranteed.
For optimal compatibility, build extensions using the same SDK version as the target ArcGIS Server version.
Extension compatibility with ArcGIS Server 12.0
Starting with ArcGIS Server 12.0, SOEs and SOIs built with ArcGIS Enterprise SDK 11.x are no longer supported.
Attempting to register an extension built with SDK 11.x on ArcGIS Server 12.0 results in an error similar to the following:
This extension 'xxxxxx.soe' cannot be deployed because it is
built for ArcGIS Server 11.x and needs to be upgraded to
version 12. See 'ArcGIS Enterprise SDK - Upgrade extensions'.When upgrading ArcGIS Enterprise from 11.x to 12.0, existing SOEs and SOIs are automatically disabled on map and image services.
To continue using these extensions, rebuild them using ArcGIS Enterprise SDK 12.0 or a compatible version supported by the target ArcGIS Server release.
After upgrading the extensions, register them and enable them on the appropriate services.
For instructions, see Upgrade steps.
Extension compatibility with ArcGIS Server 11.x
ArcGIS Server 11.x supports SOEs and SOIs built with compatible 11.x versions of the ArcGIS Enterprise SDK.
However, extensions built using SDK 10.x are not supported starting with ArcGIS Server 11.0.
Attempting to register an extension built with SDK 10.x on ArcGIS Server 11.0 results in an error similar to the following:
This extension cannot be deployed because it is built for
ArcGIS Server 10.x and needs to be upgraded to version 11.
See 'ArcGIS Enterprise SDK - Upgrade extensions'.To continue using these extensions, migrate and rebuild them using a compatible ArcGIS Enterprise SDK version.
Extension compatibility with ArcGIS Server 11.0
Starting with ArcGIS Server 11.0, deploying SOEs or SOIs built with ArcGIS Enterprise SDK 10.x is no longer supported. In ArcGIS Server 11.0, if you register an SOE or SOI built with the 10.x version of ArcGIS Enterprise SDK, you will see the following error:
This extension cannot be deployed because it is built for ArcGIS Server 10.x and needs to be upgraded to version 11. See 'ArcGIS Enterprise SDK - Upgrade extensions'.
To continue using the older SOE or SOI in ArcGIS Server 11.0, you must upgrade the extension to 11.0, in other words, build the extension with ArcGIS Enterprise SDK 11.0. This process requires development efforts. Follow the instructions in Upgrade steps.
Extension compatibility with ArcGIS Server 10.9.1 or earlier
Deploying an older version of SOE or SOI to ArcGIS Server at 10.9.1 or earlier version is not supported. Even though the extension may still load and function properly in the newer version of ArcGIS Server, the best practice is to recompile the extension using the same version of ArcGIS Enterprise SDK as the version of ArcGIS Server where the extension will be deployed. With that being said, if you want to deploy your SOE or SOI to a specific version of ArcGIS Server, you should compile your SOE or SOI using the same version of ArcGIS Enterprise SDK.
Similarly, if you want to use new features or APIs provided by the newer version of ArcGIS Enterprise SDK, you must upgrade your ArcGIS Server to the same version as the SDK.
Upgrade steps
The upgrade process depends on whether the existing Java SOE or SOI project uses Maven.
ArcGIS Enterprise SDK 10.8.1 introduced Maven integration for Java extension development. Projects created using SDK 10.8.1 or later can generally be upgraded by updating their Maven dependencies and build configuration.
Projects created using SDK 10.8 or earlier must first be migrated to Maven-based projects.
Upgrade an existing Maven project
Use the following steps to upgrade a Java SOE or SOI Maven project to ArcGIS Enterprise SDK 12.2.
-
Install ArcGIS Enterprise SDK 12.2.
If required, uninstall the previous SDK version before installing the newer version.
For installation instructions, see Installation.
Configure the supported JDK and Maven environment and verify that the
ENTDEVKITJAVAenvironment variable points to the installed SDK. -
Install the SDK Maven artifacts.
Install the Maven artifacts provided with ArcGIS Enterprise SDK 12.2 into your local Maven repository.
For instructions, see Install the Maven artifacts.
-
Update the project's
pom.xmlfile.Open the existing project's
pom.xmlfile and update the ArcGIS Enterprise SDK dependency version.For ArcGIS Enterprise SDK 12.2, use:
Use dark colors for code blocks Copy <dependency> <groupId>com.esri.arcgis.enterprise.sdk</groupId> <artifactId>arcgis-enterprise-sdk</artifactId> <version>12.2.0</version> <scope>provided</scope> </dependency>Update the ArcGIS Enterprise SDK Maven plug-in version and target version in the existing plug-in configuration.
Use dark colors for code blocks Copy <plugin> <groupId>com.esri.arcgis.enterprise.sdk</groupId> <artifactId>sdk-plugin</artifactId> <version>12.2.0</version> <configuration> <configProp> <Version>1.0</Version> <Author>AuthorName</Author> <Company>CompanyName</Company> <TARGETS>12.2</TARGETS> </configProp> </configuration> </plugin>Preserve any additional project-specific Maven plug-in configuration, dependencies, and execution settings.
Verify that the Java compiler configuration matches the JDK and bytecode requirements supported by the target SDK version.
-
Review API changes and update the source code.
Some APIs may have changed between SDK versions.
Review the Java source code and update any incompatible classes, interfaces, methods, or dependencies.
For information about API changes in 12.2, see:
-
Build the extension.
Navigate to the project's root directory, which contains the
pom.xmlfile.Run the following command:
Use dark colors for code blocks Copy mvn clean installVerify that Maven completes with
BUIL.D SUCCESS The SDK Maven plug-in packages the extension into a
.soefile in the project'stargetdirectory. -
Deploy and verify the upgraded extension.
Register the newly generated
.soefile with the target ArcGIS Server environment.Enable the extension on a compatible map or image service.
Verify that the extension functions as expected, including custom REST or SOAP operations, request interception, and any configured extension properties.
For instructions, see Deploy extensions and Enable extensions.
Migrate a legacy Java project to Maven
This scenario applies when upgrading Java SOE or SOI projects created using ArcGIS Enterprise SDK 10.8 or earlier.
Starting with SDK 10.8.1, Java extension projects use Apache Maven for dependency management and building.
To migrate an existing Java project, complete the following steps:
-
Install the target version of the ArcGIS Enterprise SDK and configure the supported JDK and Maven environment.
-
Install the SDK Maven artifacts into your local Maven repository.
-
Create a new Maven-based SOE or SOI project using the appropriate SDK archetype.
For information about project creation, see Overview of Maven integration.
-
Copy the Java source code and relevant project resources from the existing extension into the new Maven project.
These resources may include configuration files, custom property pages, and other application resources.
-
Update the Java code to use the supported APIs provided by the target SDK version.
-
If the original project uses third-party JAR files, configure the required dependencies in
pom.xml.For more information, see Dependency management.
-
Build the Maven project using:
Use dark colors for code blocks Copy mvn clean install -
Register the generated
.soefile with ArcGIS Server, enable the extension on a compatible service, and verify its functionality.