Hi. My name is Alfredo Weinberg. I'm trying to use yajws version 11.07.
I unpacked the zip file, change to bat directory and run genConfig.bat xxxx where xxxx is the pid of a running java process.
The output is the following
D:\yajsw-stable-11.07\bat>rem usage genconfig.bat <pid> [-d <default configuration="" file="">]</default><output file=""> </output></pid>
D:\yajsw-stable-11.07\bat>cd D:\yajsw-stable-11.07\bat\
D:\yajsw-stable-11.07\bat>call setenv.bat
"java" -Xmx30m -Djna_tmpdir="D:\yajsw-stable-11.07\bat\/../tmp" -Djava.net.preferIPv4Stack=true -jar "D:\yajsw-stable-11.07\bat\/../wrapper.jar" -g 3536 -d "D:\yajsw-stable-11.07\bat\/../conf/wrapper.conf.default" "D:\yajsw-stable-11.07\bat\/../conf/wrapper.conf"
YAJSW: yajsw-stable-11.07
OS : Windows 7/6.1/x86
JVM : Sun Microsystems Inc./1.6.0_33/C:\Program Files\Java\jre6/32
*** GENERATING YAJSW CONFIGURATION FOR PID 3536 ***
cannot find process 3536
Any idea????
Best Regards
Alfredo
My mistake. I was using a process running as SYSTEM. In that case the Win32 api call fails.
When I choose another process (normal user account process) it worked ok.
Alfredo,
yes, genConfig needs the user rights to read the command line of the process.
thanks for the feedback.
-- Ron