Problem: Cannot log in to Administrator - java.lang.NoClassDefFoundError
When trying to log in to ArcIMS Administrator or Manager, the username and password are not accepted, the login fails, and the following error gets written out to the Application Server log file:
"java.lang.NoClassDefFoundError: com/esri/jx/xml/parsers/DocumentBuilderFactory in AdminServer."
Also, when the Application Server service starts, various Application Errors get printed to the system Event Viewer. These errors have the following descriptions:
"The description for Event ID (0) in Source (Aims_AppServer) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer."
The Classpath of the Java Virtual Machine is not pointing to the aimsmutil.jar file.
Solution or Workaround
ESRI will make sure the registry entry for the Java Virtual Machine includes all applicable paths, including the path to aimsmutil.jar file.
Warning: The instructions below include making changes to essential parts of your operating system. It is recommended that you backup your operating system and files, including the registry, before proceeding. Consult with a qualified computer systems professional, if necessary. Esri cannot guarantee results from incorrect modifications while following these instructions; therefore, use caution and proceed at your own risk.
- Open REGEDIT.
- Click Start > Run.
- Type 'REGEDIT' or 'regedit' and press Enter.
- Browse to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Java VM\.
- Add a path to the aimsmutil.jar file to the existing Classpath. For example,
Code: %systemroot%\java\classes;.;C:\Program Files\ArcGIS\ArcIMS\Middleware\lib\aimsmutil.jar;C:\Program Files\ArcGIS\ArcIMS\Middleware\lib\jsde82_sdk.jar
Note: At ArcIMS 4.0.1, the jar file should be jsde83_sdk.jar
- Reboot the machine and try to log in to Administrator again.
- Enable full verbose logging for ArcIMS Application Server, Monitor, Tasker, Spatial Servers, and ArcSDE on Windows