When you get an RC 27 (Service configuration error) "Unable to connect to 
JVM" error when trying to register a Java service, see the STAX JVM log to 
see if more information about the error is provided in it.  Your STAX JVM 
log file is located in {STAF/DataDir}/lang/java/jvm/<JVMName>/JVMLog.1 
(e.g. C:\STAF\data\STAF\lang\java\jvm\STAFJVM1\JVMLog.1).

Some problems that I see are that you need to remove "#PARMS "NUMTHREADS 
20" as I'm assuming this is from a line in your STAF.cfg file.  A # at the 
beginning of a line in a STAF.cfg file indicates that this line is 
commented out (but the # is only recognized in a STAF.cfg file not as an 
option value in a SERVICE ADD request).  Also, you should specify JSTAF, 
not Jstaf, as the value for the LIBRARY option as the STAF Java library 
name is JSTAF (this is important to do on Unix systems where file names 
are case-sensitive). 

C:\>STAF local SERVICE ADD SERVICE stax LIBRARY JSTAF EXECUTE D:\stax.jar 
OPTION "J2=-Xmx1024m -XX:MaxPermSize=256m -XX:PermSize=256m 
-Dpython.options.internalTablesImpl=weak"

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313




From:   陈加萍 <chenjiap...@dce.com.cn>
To:     <staf-users@lists.sourceforge.net>, 
Date:   08/05/2013 07:15 AM
Subject:        [staf-users] 【problem】Error constructing service, Jstaf, 
Result: Unable to connect to JVM



Hi,
I am writing to consult a question. The ‘add service’ syntax runs in 
error when I operate the following command :

command:
staf local service add SERVICE stax LIBRARY Jstaf EXECUTE D:\stax.jar 
OPTION "J2=-Xmx1024m -XX:MaxPermSize=256m -XX:PermSize=256m 
-Dpython.options.internalTablesImpl=weak" #PARMS "NUMTHREADS 20"
return codes:
Error code: 27
Reason    : Error constructing service, Jstaf, Result: Unable to connect 
to JVM
Error in configuration file: C:\STAF\bin\STAF.cfg
 
So I want to know how to solve this problem?
 
 
Best wishes !
----------------------------------------------------
陈加萍
电话:84806211
手机:13478918276
Email:chenjiap...@dce.com.cn
----------------------------------------------------
 
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users


------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to