Per forum posting titled "Windows 7 and UAC" at http://sourceforge.net/projects/staf/forums/forum/104046/topic/6772765, add a note to the STAX User's Guide saying that if STAFProc is being run as an administrator on Windows Vista, Windows Server 2008, Windows 7, or later on a system with UAC enabled, then if you try to use the STAX Monitor to monitor this STAX service, you'll need to run it as an administrator as well. Perhaps refer to section "5.1.2 Running STAFProc on Windows Vista and Windows Server 2008 and later" in the STAF User's Guide at http://staf.sourceforge.net/current/STAFUG.htm#HDRSTPROC.
Here's a cvs diff of the changes to the STAF User's Guide and to the STAX User's Guide:
Index: docs/userguide/Commands.script
RCS file: /cvsroot/staf/src/staf/docs/userguide/Commands.script,v
retrieving revision 1.28
diff -r1.28 Commands.script
162c162
< :h3 id=winvista.Running STAFProc on Windows Vista and Windows Server 2008 and later
---
> :h3 id=winvista.Running STAFProc on Windows with User Account Controls (UAC) Enabled
164c164,165
< On Windows Vista and Windows Server 2008 and later with UAC (User Account Controls)
---
> On Windows Vista and Windows Server 2008 and later (including Windows 7, Windows 8,
> and Windows Server 2012, etc) with User Account Controls (UAC)
179c180
< Any program such as STAFProc that is run from a "Administrator: Command Prompt", will be
---
> Any program such as STAFProc that is run from an "Administrator: Command Prompt", will be
183,186c184,190
< :note.When STAFProc.exe is run as an administrator, you must also run STAF.exe
< as an administrator if you want to submit local STAF requests from a command prompt
< on the local Windows Vista machine.
< Otherwise, you'll get "Error registering with STAF, RC: 21".
---
> :note.When STAFProc.exe is run as an Administrator, you must also run STAF.exe
> as an Administrator if you want to submit local STAF requests from a command prompt
> on the local Windows sytems. Otherwise, you'll get "Error registering with STAF, RC: 21".
> The same is true if you run a program on the local Windows system that submits local
> STAF service requests using the STAF APIs for Java, C/C++, Perl, Python, Tcl, etc,
> such as the STAX Monitor Java application. The program must also be
> run as an Administrator (e.g. by running it from an "Administrator: Command Prompt").
Index: services/stax/docs/userguide/staxug.html
===================================================================
RCS file: /cvsroot/staf/src/staf/services/stax/docs/userguide/staxug.html,v
retrieving revision 1.268
diff -r1.268 staxug.html
24c24
< <p><b>September 28, 2012</b>
---
> <p><b>March 28, 2013</b>
14260a14264,14281
> <h3>On Windows with UAC Enabled and STAFProc Run as an Administrator</h3>
>
> On later Windows systems (e.g. Windows Vista, Windows Server 2008,
> Windows 7, Windows 8, Windows Server 2012, etc) that have UAC enabled, if
> STAFProc is being run as an Administrator on the machine where the STAX service
> that you are trying to monitor is registered, then you will also need to run the
> STAX Monitor as an Administrator or else you'll get
> "Error registering with STAF, RC: 21". This is also discussed in cection
> <a href="http://staf.sourceforge.net/current/STAFUG.htm#HDRWINVISTA">5.1.2 Running
> STAFProc on Windows with User Account Controls (UAC) Enabled</a> in the
> STAF User's Guide.
> <p>
> One way to run the STAX Monitor as an Administrator is to find "Command Prompt
"
> and right mouse on it and select "Run as administrator". Any command such as
> "java -jar STAXMon.jar" that is run from an "Administrator: Command Prompt",
> will be run as an Administrator. See Windows documentation for for information
> on how to run a command as an Administrator.
>