Thank you very much for reply. I re-test the following command:
C:\Users\chenjiaping>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"
Error submitting request, RC: 27
Additional info
---------------
27:Error constructing service, JSTAF, Result: Unable to connect to JVM
And I check the log file JVMLog.1, It shows: Could not find the main class:
com.ibm.staf.service.STAFServiceHelper. But I still don’t how to solve
this problem.
The log’s details are as follows:
****************************************************************************
**
*** 20130806-08:50:02 - Start of Log for JVMName: STAFJVM1
*** JVM Executable: java
*** JVM Options : -Xmx1024m -XX:MaxPermSize=256m -XX:PermSize=256m
-Dpython.options.internalTablesImpl=weak
*** JVM Version : java version "1.6.0"
Java(TM) SE Runtime Environment (build pwi3260sr7-20091217_01(SR7))
IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Windows 7 x86-32
jvmwi3260sr7-20091214_49398 (JIT enabled, AOT enabled)
J9VM - 20091214_049398
JIT - r9_20091123_13891
GC - 20091111_AA)
JCL - 20091202_01
线程 "main" 中发生异常java.lang.NoClassDefFoundError:
com.ibm.staf.service.STAFServiceHelper
Caused by: java.lang.ClassNotFoundException:
com.ibm.staf.service.STAFServiceHelper
at java.net.URLClassLoader.findClass(URLClassLoader.java:421)
at java.lang.ClassLoader.loadClass(ClassLoader.java:652)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:346)
at java.lang.ClassLoader.loadClass(ClassLoader.java:618)
Could not find the main class: com.ibm.staf.service.STAFServiceHelper.
Program will exit.
Best wishes !
Chenjiaping
发件人: Sharon Lucas [mailto:luc...@us.ibm.com]
发送时间: 2013年8月5日 20:31
收件人: 陈加萍
抄送: staf-users@lists.sourceforge.net
主题: Re: [staf-users] 【problem】Error constructing service, Jstaf, Result:
Unable to connect to JVM
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: <mailto:chenjiap...@dce.com.cn> 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
>
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>
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=48897031&iu=/4140/ostg.clktrk
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users