My Oracle Support Banner

"Secureweblogic.bat" Command Fails With ClassNotFound Exception (Doc ID 1610254.1)

Last updated on DECEMBER 03, 2024

Applies to:

Enterprise Manager for Fusion Middleware - Version 11.1.1.6.0 and later
Information in this document applies to any platform.

Symptoms

When executing secureWeblogic.bat, it fails with the following errors:

%DOMAIN_HOME%\ClassicDomain\bin\secureWebLogic.bat -admin_host hostname.domain -admin_port 7001 -admin_user weblogic -admin_pwd mypwd

Error message (below)
%DOMAIN_HOME%\ClassicDomain\bin>secureWebLogic.bat
-admin_host hostname.domain -admin_port 7001 -admin_user weblogic -admin_pwd mypwd

%DOMAIN_HOME%\ClassicDomain\bin>set DOMAIN_HOME="E:
\oracle\Middleware\user_projects\domains\ClassicDomain"

%DOMAIN_HOME%\ClassicDomain\bin>if /I -admin_host == "-help" goto PRINTHELP

%DOMAIN_HOME%\ClassicDomain\bin>. %DOMAIN_HOME%\ClassicDomain\bin\setDomainEnv.cmd
'.' is not recognized as an internal or external command, operable program or batch file.

%DOMAIN_HOME%\ClassicDomain\bin>echo "Securing FMConsole - Started"
"Securing FMConsole - Started"

%DOMAIN_HOME%\ClassicDomain\bin>E:\oracle\MIDDLE~1\JDK160~4\bin\java -classpath E:\oracle\MIDDLE~1\ORACLE~1\modules\oracle.jdbc_11.1.1\ojdbc6dms.jar;E:\oracle\MIDDLE~1\patch_wls1036\profiles\......(skipped)......
Caused by: java.lang.ClassNotFoundException: oracle.sysman.emctl.secure.fmc.SecureFMConsole
       at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: oracle.sysman.emctl.secure.fmc.SecureFMConsole.
Program will exit.

  

Also, there was no confirmation message logged after the command was run mentioning is the securing failed or succeeded.

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.