Java-exception-Creating Schema error - IMG 6.9.0 Installation
3 years ago
Originally Published: 2015-03-02
Article Number
000067471
Applies To
IMG 6.9  Installation on Redhat 6.5
Issue
A customer copied files from /tmp/aveksa from one VM to another, instead of following the documented installation process. As a result, some files had incorrect file permission, owner and group values. Because these files did not have correct permissions, some Java packages could not be accessed by installation scripts located under /home/oracle/install

Error:
=====
 
User-added image
Screen error:
 
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger
        at com.aveksa.migration.jdbctool.Main.run(Main.java:186)
        at com.aveksa.migration.jdbctool.Main.main(Main.java:381)
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
        ... 2 more
 
Aveksa-install.log:
==============
 
--------------------------------------------------------------------------
Checking database connections...
Validated oracle configured to SID: AVDB
 
--------------------------------------------------------------------------
Creating schema...
Logout
 
Resolution
The Fix:

As per our installation guide, it recommend not to copy any installation directories from machine to another, just create the needed directories then copy the installation packages:  

Delete any exiting aveksa directory under /tmp

As root: 

# rm -rf /tmp/aveksa

- Create new aveksa directory under /tmp and create the packages and staging subdirectories. [
RSA_IMG_v6.9_Installation_Guide page 31]

- Extract the packages under /tmp/aveksa/staging after copying them to packages.  [RSA_IMG_v6.9_Installation_Guide.pdf  page 31]

- Uninstall aveksa: 
As root:
 # cd /tmp/aveksa/staging/deploy
 # ./uninstall.sh


- Reboot the machine [ appliance or VM ]

- Start the installation script again.  [RSA_IMG_v6.9_Installation_Guide page 37]