If the command you posted is really the command you are running, note that you have a typo in your CLASSPATH setting. You are missing a / in front of "home/sanovi/Qaurtzite/InitiateNC/bin". It should be:
staf local process start shell command
"/home/sanovi/Quartzite/InitiateNC/bin/InitiateNC.sh"
ENV "CLASSPATH=/home/sanovi/Quartzite/InitiateNC/bin:{STAF/Env/CLASSPATH}"
WAIT RETURNSTDOUT STDERRTOSTDOUT
Is there a class file named StartNC.class in directory
/home/sanovi/Quartzite/InitiateNC/bin ?
If that doesn't resolve the problem, it would be helpful if you provided
the InitiateNC.sh file that you are running.
--------------------------------------------------------------
Sharon Lucas
IBM Austin, [email protected]
(512) 286-7313 or Tieline 363-7313
From: "Yashaswi S. Kumar" <[email protected]>
To: Sharon Lucas/Austin/IBM@IBMUS
Date: 05/23/2011 01:42 AM
Subject: RE: [staf-users] master and slave approach - STAF/STAX on
all the master and slave machines.
Given below is my staf start Process. InitiateNC inturn sets the
classpath.. Is that the reason why it is not able to find the class
file???
[root@dev-img bin]# staf local process start shell command
"/home/sanovi/Quartzite/InitiateNC/bin/InitiateNC.sh" ENV
"CLASSPATH=home/sanovi/Quartzite/InitiateNC/bin:{STAF/Env/CLASSPATH}" WAIT
RETURNSTDOUT STDERRTOSTDOUT
Response
--------
{
Return Code: 1
Key : <None>
Files : [
{
Return Code: 0
Data : Exception in thread "main"
java.lang.NoClassDefFoundError: StartNC
}
]
}
Yashaswi.S.Kumar
Software Engineer
Sanovi Technologies Pvt. Ltd.
* [email protected]
' +91 80 4076 2044
À +91 97423 89087
From: Sharon Lucas [mailto:[email protected]]
Sent: 19 May 2011 20:27
To: Yashaswi S. Kumar
Cc: [email protected]
Subject: Re: [staf-users] master and slave approach - STAF/STAX on all the
master and slave machines.
Since you did not provide the STAF PROCESS START request that you are
submitting nor your shell script, I can't tell you what the problem is
other than it is not finding a Java class named StartNC as the error
messsage says. So, my guess is that the shell script is not correctly
setting the CLASSPATH environment variable to a path to class StartNC.
Note that a process started via STAF is run in the environment that
STAFProc is running in (e.g. uses its environment variables (not
environment variables of the command prompt from which the PROCESS START
request was submitted). You can set/change environment variables for a
process using the ENV option(s) on your STAF PROCESS START request as
described in the STAF User's Guide at
http://staf.sourceforge.net/current/STAFUG.htm#HDRPROCSRV. Also note that
each process started via STAF runs in its own environment so that if one
process sets environment variables, another process is not effected.
Here's an example of using the ENV option to update the CLASSPATH
environment variable when starting a process.
STAF machine1 PROCESS START SHELL COMMAND "/tests/myTest.sh" ENV
"CLASSPATH=/tests:{STAF/Env/CLASSPATH}"
--------------------------------------------------------------
Sharon Lucas
IBM Austin, [email protected]
(512) 286-7313 or Tieline 363-7313
From: "Yashaswi S. Kumar" <[email protected]>
To: Sharon Lucas/Austin/IBM@IBMUS
Date: 05/19/2011 05:06 AM
Subject: Re: [staf-users] master and slave approach - STAF/STAX on
all the master and slave machines.
HI,
I am running the java code within a shell script. The shell script also
sets the classpath for java to run before the execution. I am not able to
run the script through the process service. Kindly help.
This is the respone
Response
--------
{
Return Code: 1
Key : <None>
Files : [
{
Return Code: 0
Data : Exception in thread "main"
java.lang.NoClassDefFoundError: StartNC
}
]
}
Yashaswi.S.Kumar
Software Engineer
Sanovi Technologies Pvt. Ltd.
* [email protected]
' +91 80 4076 2044
À +91 97423 89087
<<image/jpeg>>
<<image/jpeg>>
------------------------------------------------------------------------------ What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________ staf-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/staf-users
