Skip to end of metadata
Go to start of metadata

Can the class be loaded?

How to check if the class can be loaded

Step 1
Connect to the AS Java using telnet:

Note: More information: Remote Administration Using Telnet

Step 2
Search in the defaultTrace.trc file of the AS Java for the class loader name (in orange) and the class name (in green):


java.lang.NoClassDefFoundError:com/sap/jmx/provider/Provider
---------------------- Loader Info -----------------------
ClassLoader name: sap.com-tc_lm~webadmin~sysconfig~app
Parent loader name: system.Frame
References:
service:servlet_jsp
service:ejb
service:jmsconnector
library:jsse
library:tc~lm~webadmin~sysconfig~lib
Resources:
C:\\usr\\sap\\W43\\JC00\\j2ee\\cluster\\apps\\sap.com\\tc~lm~webadmin~sysconfig~app\\servlet_jsp\\sysconfig\\root\\WEB-INF
classes
C:\\usr\\sap\\W43\\JC00\\j2ee\\cluster\\apps\\sap.com\\tc~lm~webadmin~sysconfig~app\\servlet_jsp\\sysconfig
work

Step 3
Execute the following AS Java Telnet commands:

llr <loader name> -f <class name>
llr <loader name> -l <class name> 

Note 1: The first command tries to find the class in the resources of the loader, while the second one tries to load the class using the specified class loader.
Note 2: The class name should end on .class

Example:

llr sap.com/tc~lm~webadmin~sysconfig~app -f com/sap/jmx/provider/Provider.class
llr sap.com/tc~lm~webadmin~sysconfig~app -l com.sap.jmx.provider.Provider

Step 4
If both telnet commands from the previous step finished successfully (managed to find and load the class), answer Yes, otherwise answer No.

  • No labels