When you unpackage the STAX service (i.e. the STAXV33x.zip or STAXV33x.tar 
file), it will unpackage into a "stax" directory.  So, if you unpackaged 
the STAX service into the c:\sdo_automation\staf\services directory, the 
STAX.jar file will be located at 
c:\sdo_automation\staf\services\stax\STAX.jar.  In your STAF.cfg file, 
instead of:

service STAX LIBRARY JSTAF EXECUTE 
c:\sdo_automation\staf\services\STAX.jar

You need:

service STAX LIBRARY JSTAF EXECUTE 
c:\sdo_automation\staf\services\stax\STAX.jar

Note that the JVM log for the STAX service will have additional error 
information.  By default, it is located at c:\sdo_automation\staf\
data\STAF\lang\java\jvm\STAFJVM1\JVMLog.1.

David Bender
STAF/STAX Development
(512-286-5315)
IBM Austin Bldg. 903-5B002
Internet: bda...@us.ibm.com




"Liu, Yan" <yan-...@ti.com> 
04/21/2009 05:27 PM

To
"staf-users@lists.sourceforge.net" <staf-users@lists.sourceforge.net>
cc
"Liu, Yan" <yan-...@ti.com>
Subject
[staf-users] How to register STAX to STAF






Hello,
 
I am a new user to STAF. Today, I just downloaded everything: STAF, STAX, 
Cron, etc. Also, I add the following line to 'staf.cfg' to register STAX 
by following the document.
    service STAX LIBRARY JSTAF EXECUTE 
c:\sdo_automation\staf\services\STAX.jar
But, when I run 'STAFProc.exe', I got the following error:
 
Error on Service definition, service STAX LIBRARY JSTAF EXECUTE 
c:\sdo_automation\staf\services\STAX
.jar
27:Error constructing service, JSTAF, Result: Unable to connect to JVM
Error reading config file
 
My Windows PATH is:
C:\sdo_automation\STAF\bin;C:\STAF\bin;C:\ruby\bin;C:\Program 
Files\Arachno Ruby IDE\cmdline;C:\Program Files\ActiveState Komodo 
3.5\;C:\Tcl\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\j2sdk1.4.2_04\jre\bin;C:\j2sdk1.4.2_04\bin;C:\j2sdk1.4.2_04\lib\comm.jar;C:\Program
 
Files\Rational\common;C:\Program Files\Rational\ClearCase\bin;C:\Program 
Files\Ethereal;%HummPATH%;C:\Oracle 
InstantClient\instantclient_11_1;C:\Program Files\Windows Imaging\
 
My Java version:
> java -version
java version "1.6.0_05"
Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)
 
Could anybody help me? What I am missing here?
 
Your help will be greatly appreciated.
 
Thanks,
Yan
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to