If while cloning the target system we are encountering the below error.
Error:
If we check the log file we can found that the clone is failing on script txkExecSetJaznCredentials.pl.
Exception in thread "main" java.lang.NoClassDefFoundError: oracle/apps/ad/tools/configuration/JaznCredentialManager
Caused by: java.lang.ClassNotFoundException: oracle.apps.ad.tools.configuration.JaznCredentialManager
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: oracle.apps.ad.tools.configuration.JaznCredentialManager. Program will exit.
.end err out.
Cause:
Environment variable $CLASSPATH is set before running 'adcfgclone.pl appsTier'.
If Environment variable $CLASSPATH is set before running 'adcfgclone.pl appsTier'. The script txkExecSetJaznCredentials.pl will keep using it.
If the $CLASSPATH is not set, txkExecSetJaznCredentials.pl will set it according to the value passed in context file.
So if the $CLASSPATH is set incorrectly before running clone, the error occurs.
Solution:
1. Run command "unset CLASSPATH".
2. Retest the issue.
Error:
If we check the log file we can found that the clone is failing on script txkExecSetJaznCredentials.pl.
Exception in thread "main" java.lang.NoClassDefFoundError: oracle/apps/ad/tools/configuration/JaznCredentialManager
Caused by: java.lang.ClassNotFoundException: oracle.apps.ad.tools.configuration.JaznCredentialManager
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: oracle.apps.ad.tools.configuration.JaznCredentialManager. Program will exit.
.end err out.
Cause:
Environment variable $CLASSPATH is set before running 'adcfgclone.pl appsTier'.
If Environment variable $CLASSPATH is set before running 'adcfgclone.pl appsTier'. The script txkExecSetJaznCredentials.pl will keep using it.
If the $CLASSPATH is not set, txkExecSetJaznCredentials.pl will set it according to the value passed in context file.
So if the $CLASSPATH is set incorrectly before running clone, the error occurs.
Solution:
1. Run command "unset CLASSPATH".
2. Retest the issue.
1 Comments
Nice one, thanq.
ReplyDeletePost a Comment