Skip to main content

Error when configuring ObjectServer VMM using confvmm4ncos.sh


Technote (troubleshooting)


Problem(Abstract)

If the $TIPHOME/bin/confvmm4ncos.sh script is executed from anywhere other than $TIPHOME/bin it exists with an error

Symptom

Errors similar to that shown below are executed if the script is executed from anywhere other than $TIPHOME/bin

$TIPHOME/bin/confvmm4ncos.sh root "" ncos_host 4100
configfile=../profiles/TIPProfile/config/cells/TIPCell/wim/config/wimconfig.xml
Exception in thread "main" java.lang.NoClassDefFoundError: com.ibm.tivoli.ncw.ncosvmm.RepositoryInitializer
Caused by: java.lang.ClassNotFoundException: com.ibm.tivoli.ncw.ncosvmm.RepositoryInitializer
        at java.net.URLClassLoader.findClass(URLClassLoader.java:434)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:653)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:619)
Could not find the main class: com.ibm.tivoli.ncw.ncosvmm.RepositoryInitializer.  Program will exit.
Result - Failure : 1

Cause

The $wasdir is set to "..".  in the script

Environment

All operating systems

Diagnosing the problem

Execute the confvmm4ncos.sh (confvmm4ncos.bat on Wondows) script from a directory other than $TIPHOME/bin

Resolving the problem

1) Backup the $TIPHOME/bin/confvmm4ncos.sh (or confvmm4ncos.bat) script
eg) For Unix/Linux platforms

cp $TIPHOME/bin/confvmm4ncos.sh %TIPHOME/bin/confvmm4ncos.sh.bak

2) For Unix/Linux platforms, modify $TIPHOME/bin/confvmm4ncos.sh and set

wasdir = $TIPHOME/bin

For Windows platforms, modify %TIPHOME%\bin\confvmm4ncos.bat, replace the line
call confvmm4ncos_full.bat %wasdir% %profile% %cell% %username% %password% %host1% %port1% %host2% %port2%
with
call "%~dp0confvmm4ncos_full.bat" %wasdir% %profile% %cell% %username% %password% %host1% %port1% %host2% %port2%

(Ensure that the command is on one line without any line breaks)

3) Save the changes

4) Run the script with the required parameters

eg)
$TIPHOME/bin/confvmm4ncos.sh root "" ncos_host 4100

A fix for this problem will be made available in Fix Pack 6 -> http://www-01.ibm.com/support/docview.wss?uid=swg24033013

Rate this page:

(0 users)Average rating

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

Tivoli Netcool/OMNIbus

Web GUI


Software version:
7.3.1


Operating system(s):
AIX, HP-UX, HP-UX on Itanium, Linux, Linux zSeries, Solaris, Windows


Software edition:
Standard


Reference #:
1618601


Modified date:
2012-11-30

Translate my page

Content navigation