EM 12c: Emctl start/stop/status oms Failed With Error Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.log4j.Logger (Doc ID 2065293.1)

Last updated on AUGUST 28, 2017

Applies to:

Enterprise Manager Base Platform - Version 12.1.0.1.0 and later
Information in this document applies to any platform.

Symptoms

emctl start/stop/status oms commands fail with below errors

Example:

$<OMS_HOME>/bin>./emctl start oms

Copyright (c) 1996, 2013 Oracle Corporation. All rights reserved.
Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.log4j.Logger
at oracle.sysman.emctl.wls.OMSController.<clinit>(OMSController.java:101)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger
at java.net.URLClassLoader.findClass(URLClassLoader.java:434)
at java.lang.ClassLoader.loadClass(ClassLoader.java:660)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)
at java.lang.ClassLoader.loadClass(ClassLoader.java:626)
... 3 more
Could not find the main class: oracle.sysman.emctl.wls.OMSController. Program will exit.

Same results for the following commands too.

$<OMS_HOME>/bin>./emctl status oms

$<OMS_HOME>/bin>./emctl stop oms

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms