Network Deployment (Distributed operating systems), v8.0 > Reference > Troubleshoot tips
osgiCfgInit script
The Equinox OSGi framework is used to manage class loading and relationships between server component bundles. In some cases, the cached bundle data, that is maintained on a per-profile basis, with a separate cache at the WAS_HOME level for installation-wide processes, can become out of sync with the actual binaries on the server. We can use the osgiCfgInit script to clear and recreate the OSGi cache.
You should run the osgiCfgInit script on the command line from the WAS_HOME/bin or user_install_root/bin directory. The behavior of the script depends on the directory from which you run the script. If you run the script from a profile-level bin directory, the script clears the OSGi cache for all servers within that profile. If you run the script from the WAS_HOME/bin directory, the script clears the OSGi cache for all servers within the default profile.
The syntax for this script is as follows: (AIX)
![]()
(Solaris)
osgiCfgInit.sh [options](Windows)osgiCfgInit.bat [options]
Options
The following options are available for the osgiCfgInit script:
-all
The script clears the caches of all servers in the installation, as well as the WAS_HOME cache.
-washome
The script clears the cache at the WAS_HOME level.
Usage scenario
To clear the cache, execute the command as follows:
(AIX)
![]()
(Solaris)
./osgiCfgInit.sh [-all|-washome](Windows)
osgiCfgInit.bat [-all|-washome]If the script completes successfully, the message "OSGi cache successfully cleaned for location." displays on the command line.
Use command-line tools
Troubleshoot class loaders