That means that the process could not be started. Add the RETURNSTDOUT
STDERRTOSTDOUT WAIT options to the PROCESS START request to get more
information:
C:\>staf local PROCESS start command java params "SimpleTestcase 30" env
CLASSPATH={STAF/Env/Classpath};C:/Staf/testcases returnstdout
stderrtostdout wait
Response
--------
{
Return Code: 1
Key : <None>
Files : [
{
Return Code: 0
Data : java.lang.NoClassDefFoundError: params
Exception in thread "main"
}
]
}
So, you specified PARAMS instead of PARMS (so it was trying to use
"params" as the Java class name). Try the following:
C:\>staf local PROCESS start command java parms "SimpleTestcase 30" env
CLASSPATH={STAF/Env/Classpath};C:/Staf/testcases returnstdout
stderrtostdout wait
Response
--------
{
Return Code: 0
Key : <None>
Files : [
{
Return Code: 0
Data : Loop #0
Loop #1
Loop #2
Loop #3
Loop #4
Loop #5
Loop #6
Loop #7
Loop #8
Loop #9
Loop #10
Loop #11
Loop #12
Loop #13
Loop #14
Loop #15
Loop #16
Loop #17
Loop #18
Loop #19
Loop #20
Loop #21
Loop #22
Loop #23
Loop #24
Loop #25
Loop #26
Loop #27
Loop #28
Loop #29
}
]
}
David Bender
STAF/STAX Development
8-1268 (512-838-1268)
IBM Austin Bldg. 903-5B002
Internet: [EMAIL PROTECTED]
"Ahmed Mostafa" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
03/29/2008 01:08 AM
To
STAF <staf-users@lists.sourceforge.net>
cc
Subject
[staf-users] Java's simple test case not working
Hello,
The Java SimpleTestcase.java is not working properly by the command:
staf local PROCESS start command java params "SimpleTestcase 30" env
CLASSPATH={STAF/Env/Classpath};C:/Staf/testcases
as in the IBM examples here http://staf.sourceforge.net/education.php in
Exercise 1.7. It should run the attached class for 30 seconds, while it
actually run for a while (as if the the Thread.sleep(1000) method has a
problem) and disappear!
Thanks
--
Ahmed Mostafa
0123919750
[EMAIL PROTECTED]
Software Developer
IBM Software Group
IBM Egypt, Cairo Technology Development Center
Cairo, Alexandria Desert Road, KM 22, Giza, Egypt
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users