Is the "staf local service add....." request that you posted the exact command that gave you the error? That exact command worked fine for me on a RHEL system.
# staf local service add SERVICE serv LIBRARY JSTAF EXECUTE /opt/serv.jar
OPTION JVMName=SERVJVM
Response
--------
# staf local service query service serv
Response
--------
{
Name : SERV
Library : JSTAF
Executable: /opt/serv.jar
Options : [
JVMName=SERVJVM
]
Parameters: <None>
}
Does the command work if you remove the "OPTION JVMName=SERVJVM"? When
the error occurs, what is the output of "STAF local SERVICE LIST"?
Thanks,
David
David Bender 11501 Burnet Rd. Phone (T/L): 1-512-286-5315
STAF/STAX Development Bldg. 903-5B002 (363-5315)
Austin, TX ITN: 23635315
IBM Software Group, 78758-3400 Email: [email protected]
WPLC
From: Arvind Chandra <[email protected]>
To: Staf User <[email protected]>
Date: 06/22/2010 09:07 PM
Subject: [staf-users] STAF service JVM
I am using STAF 3.4.1 on 32 bit CentOS 5.2 machine with Sun Java 1.6.0_11
I am having this issue.
I can load the service by adding the entry
SERVICE serv LIBRARY JSTAF EXECUTE /opt/serv.jar OPTION JVMName=SERVJVM
I can then remove it using the command in
staf local service remove service serv
But when I try to add the service again by issuing the command
staf local service add SERVICE serv LIBRARY JSTAF EXECUTE /opt/serv.jar
OPTION JVMName=SERVJVM
I get this error:
Error submitting request, RC: 27
Additional info
---------------
27:Error constructing service, JSTAF, Result: You may not specify the JVM
or J2 options without specifying a new JVMNAME
The jvm log which is there in the location
/tmp/staf/lang/java/jvm/SERVJVM does not show anything.
Am I missing something here which I need to take care of?
Thanks
Arvind
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
staf-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/staf-users
<<inline: graycol.gif>>
<<inline: ecblank.gif>>
------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________ staf-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/staf-users
