2397281 - AS JAVA fail to start due to error 'Cannot find class: com/sap/engine/offline/OfflineToolStart' | SAP Knowledge Base Article

SAP Knowledge Base Article - Preview

2397281 - AS JAVA fail to start due to error 'Cannot find class: com/sap/engine/offline/OfflineToolStart'

Symptom

Java server can not be started.

In dev_jstart trace, below error can be found:

Java server failed to be started due to below error:
F  ********************************************************************************
F  *** ERROR => Node 'deployment' failed with exit code -21003.
F  ***
F  *** Please see section 'Failures in the 'deploying offline components' phase'
F  *** in SAP Note 1316652 for additional information and trouble shooting advice.
F  ********************************************************************************

In dev_deployment, below NoClassDefFoundError can be found:

F  [Thr 140149099407104] *** WARNING => SfCJavaVm::callStatic: Cannot find class: com/sap/engine/offline/OfflineToolStart [sfxxjvm.hpp  676]
F  [Thr 140149099407104] *** java.lang.NoClassDefFoundError: com/sap/engine/offline/OfflineToolStart
F  [Thr 140149099407104] *** Caused by: java.lang.ClassNotFoundException: com.sap.engine.offline.OfflineToolStart
F  [Thr 140149099407104] ***         at java.net.URLClassLoader$1.run(URLClassLoader.java:255)
F  [Thr 140149099407104] ***         at java.security.AccessController.doPrivileged(Native Method)
F  [Thr 140149099407104] ***         at java.net.URLClassLoader.findClass(URLClassLoader.java:243)
F  [Thr 140149099407104] ***         at java.lang.ClassLoader.loadClass(ClassLoader.java:372)
F  [Thr 140149099407104] ***         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:344)
F  [Thr 140149099407104] ***         at java.lang.ClassLoader.loadClass(ClassLoader.java:313)
F  [Thr 140149099407104] *** ERROR => SfEStartupError: SfCSapVm::callMainMethod: : Cannot call method: static void com/sap/engine/offline/OfflineToolStart.main(String[])  [sfxxjvm.hpp  1409]
F  [Thr 140149099407104] *** ERROR => Java thread failed: SfEStartupError: : Cannot call method: static void com/sap/engine/offline/OfflineToolStart.main(String[])
 [sfxxjvm.hpp  1476]

F  ********************************************************************************
F  *** ERROR => Cannot call main method in com/sap/engine/offline/OfflineToolStart.
F  ***
F  *** Please see section 'Java VM shared library issues'
F  *** in SAP Note 1316652 for additional information and trouble shooting advice.
F  ********************************************************************************

F  [Thr 140149414172512] *** LOG => exiting (exitcode -21003, retcode 2).

In dev_bootstrap, below error can be found:

[Thr 6340] JHVM_LoadJavaVM: Java VM created OK.
[Thr 6340] *** ERROR => Can't load main class [com.sap.engine.offline.OfflineToolStart] [jhvmxx.c 1045]
Exception in thread "main" [Thr 6340] JLaunchCloseProgram: good bye (exitcode = -1)


Read more...

Environment

  • SAP NetWeaver 7.3
  • SAP enhancement package 1 for SAP NetWeaver 7.3
  • SAP NetWeaver 7.4
  • SAP NetWeaver 7.5
  • SAP NetWeaver Composition Environment 7.1
  • SAP enhancement package 1 for SAP NetWeaver Composition Environment 7.1
  • SAP NetWeaver Composition Environment 7.2

Product

SAP NetWeaver 7.3 ; SAP NetWeaver 7.4 ; SAP NetWeaver 7.5 ; SAP NetWeaver Composition Environment 7.1 ; SAP NetWeaver Composition Environment 7.2 ; SAP enhancement package 1 for SAP NetWeaver 7.3 ; SAP enhancement package 1 for SAP NetWeaver Composition Environment 7.1

Keywords

OfflineToolStart, NoClassDefFoundError, exit code -21003, java, deployment, com.sap.engine.offline.OfflineToolStart , KBA , BC-JAS-COR , Enterprise Runtime, Core J2EE Framework , BC-JAS-SF , Startup Framework , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.