The Export SOE/SOI tool in Eclipse fails to export a Java SOAP SOE at version 10.7 and 10.7.1, with an error:
“org.eclipse.osgi.internal.framework.ContextFInder cannot be cast to java.net.URLClassLoader”.
The error message appears as follows:
This error only occurs when a SOAP SOE is exported, due to an Eclipse SOE/SOI plugin issue. The Export SOE/SOI tool in Eclipse still works when a REST SOE is exported.
The command-line tool soepackager can be used to export the SOE and generate the .soe file. You must first export the Java SOAP SOE project to a JAR file, and then execute soepackager from command, as follows:
For ArcGIS Enterprise SDK:
soepackager_ent.bat -p [path to the jar file exported from step 3] -o [path to output folder] -j [path to the JDK] [optional parameters]For ArcObjects:
soepackager.bat -p [path to the jar file exported from step 3] -o [path to output folder] -j [path to the JDK] [optional parameters]
More details about this tool can be found at ArcGIS Enterprise SDK Help.
For example, executing the following command produces the results shown in the screen:
C:\Program Files\ArcGIS\EnterpriseSDK\Java\tools\soepackager>soepackager_ent.bat -p C:\temp\simplesoapsoe\simplesoapsoe_ent.jar -o C:\temp\simplesoapsoe -j "C:\Program Files\java\jdk1.8.0_201"
In this way, the Java SOAP SOE can be exported properly and the generated .soe file can be deployed to ArcGIS Server.
Get help from ArcGIS experts
Download the Esri Support App