1. Skip to Menu
  2. Skip to Content
  3. Skip to Footer>

Expert Sessions!

Issues with SAPJVM Switch in Microsoft Cluster Environment

Friday, 17 August 2012 05:27

Written by Prakash Palani

Print E-mail

Problem Statement : Below error message was thrown when performing SAPJVM switch specifically in MSCS environment.

Execution of the command ""C:\Program Files\sapinst_instdir\NW70\SWITCH_JDK\sapjvm_4\sapjvm_4\bin\java.exe" -classpathE:/usr/sap//SYS/global/sltools/sharedlib/launcher.jar com.sap.engine.offline.OfflineToolStart com.sap.inst.jswitch.JRead" \\/sapmnt//SYS/global/security/lib/tools/iaik_jce.jar;\\/sapmnt//SYS/global/security/lib/tools/iaik_jsse.jar;\\/sapmnt//SYS/global/security/lib/tools/iaik_smime.jar;\\/sapmnt//SYS/global/security/lib/tools/iaik_ssl.jar;\\/sapmnt//SYS/global/security/lib/tools/w3c_http.jar;E:/usr/sap//SYS/global/sltools/sharedlib;E:\usr\sap\\JC00\exe\mssjdbc\sqljdbc.jar;C:/Program Files/sapinst_instdir/NW70/SWITCH_JDK/jswitch.jar" -arch sap_64bit -instanceID ID61018 -systemName -ssPropFile \\/sapmnt//SYS/global/security/data/SecStore.properties -ssKeyFile \\/sapmnt//SYS/global/security/data/SecStore.key -trace all -javaPath C:\j2sdk1.4.2_13-x64 -outputFile "C:/Program Files/sapinst_instdir/NW70/SWITCH_JDK/ID0061018_javaParameters.properties"" finished with return code 1. Output:

 

Exception in thread "main" java.lang.NoClassDefFoundError: com/sap/engine/offline/OfflineToolStart

Caused by: java.lang.ClassNotFoundException: com.sap.engine.offline.OfflineToolStart

at java.net.URLClassLoader$1.run(URLClassLoader.java:255)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:243)

at java.lang.ClassLoader.loadClass(ClassLoader.java:354)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:318)

at java.lang.ClassLoader.loadClass(ClassLoader.java:300)

 

Solution : By design, it looks like SAPJVM tool switch is searching for launcher.jar in the local drive (look at the directory above marked in bold letters), whereas in cluster installations the whole of SYS folders will only be available in the shared drives (which are part of MSCS cluster groups).   In order to overcome the issue, create a symbolic link (possible only from windows 2003) in local drive to connect to directory available in the shared drive.

 

Commands : ( Open Command Prompt)

C:\> E:

E:\> CD USR\SAP\\

E:\usr\sap\\ mklink /D SYS :\usr\sap\\SYS   (in case of windows 2003 – try linkd)

 

Issues with SAPJVM Switch in Microsoft Cluster Environment