java.lang.NoClassDefFoundError when Running WebSphere® Control Program (wscp) using a non-root userid

Technote (FAQ)
Problem
Things to check if you see the following error message when running wscp using a non-root userid on V3.5 or V4.0.

Exception in thread "main" java.lang.NoClassDefFoundError:
com/ibm/rmi/iiop/ORB
Cause
This error message can be caused by inadequate file permissions or failure to the run the setupCmdLine script prior to executing wscp.
Solution
Inadequate file permissions

This error can occur if you are running wscp as a non-root user and if you do not have the correct permissions for that user set on certain files, especially java files. Check your system files, and ensure that your non-root user has adequate permissions.

Failure to run setupCmdLine

This error can also occur if you did not run setupCmdLine.sh or setupCmdLine.bat from the $WAS_HOME/bin directory. Make sure setupCmdLine is in the bin directory and execute it prior to running the wscp command.












Document Information

Product categories: Software, Application Servers, Distributed Application & Web Servers, WebSphere Application Server, Administrative Console (all non-scripting)
Operating system(s): Multi-Platform
Software version: 3.5, 4.0
Software edition: Advanced, Enterprise, Single Server
Reference #: 1082160
IBM Group: Software Group
Modified date: 2003-12-15