Hi Team,
We are trying to integrate YAJSW, we are able to do it for linux.
In case of windows, while i try to generate the wrapper.conf, after executing genConfig.bat <pid></pid>
wrapper.conf file is empty
and getting the exception like the following,
C:\Users\Admin\YAJSW\yajsw-stable-13.10\yajsw-stable-13.10\bat>genConfig.bat 11708
C:\Users\Admin\YAJSW\yajsw-stable-13.10\yajsw-stable-13.10\bat>rem usage genconfig.bat <pid> [-d <default configuration="" file="">]</default><output file=""></output></pid>
C:\Users\Admin\YAJSW\yajsw-stable-13.10\yajsw-stable-13.10\bat>pushd C:\Users\Admin\YAJSW\yajsw-stable-13.10\yajsw-stable-13.10\bat\
C:\Users\Admin\YAJSW\yajsw-stable-13.10\yajsw-stable-13.10\bat>call setenv.bat
"java" -Xmx30m -Dwrapper_home="C:\Users\Admin\YAJSW\yajsw-stable-13.10\yajsw-stable-13.10\bat\/.." -Djna_tmpdir="C:\Users\Admin\YAJSW\yajsw-stable-13.10\yajsw-stable-13.10\bat\/../tmp" -Djava.net.preferIPv4Stack=true -jar "C:\Users\Admin\YAJSW\yajsw-stable-13.10\yajsw-stable-13.10\bat\/../wrapper.jar" -g 11708 -d "C:\Users\Admin\YAJSW\yajsw-stable-13.10\yajsw-stable-13.10\bat\/../conf/wrapper.conf.default" "C:\Users\Admin\YAJSW\yajsw-stable-13.10\yajsw-stable-13.10\bat\/../conf/wrapper.conf"
YAJSW: yajsw-stable-13.10
OS : Windows 10/10.0/amd64
JVM : Microsoft/11.0.16.1/C:\Program Files\Microsoft\jdk-11.0.16.101-hotspot/64
Looking in classpath from org.rzo.yajsw.boot.WrapperClassLoader@2d6a9952 for /com/sun/jna/win32-x86-64/jnidispatch.dll
Found library resource at jar:file:/C:/Users/Admin/YAJSW/yajsw-stable-13.10/yajsw-stable-13.10/./lib/core/jna/jna-5.12.1.jar!/com/sun/jna/win32-x86-64/jnidispatch.dll
Extracting library to C:\Users\Admin\YAJSW\yajsw-stable-13.10\yajsw-stable-13.10\bat..\tmp\jna10184604060641084661.dll
Trying C:\Users\Admin\YAJSW\yajsw-stable-13.10\yajsw-stable-13.10\bat..\tmp\jna10184604060641084661.dll
Found jnidispatch at C:\Users\Admin\YAJSW\yajsw-stable-13.10\yajsw-stable-13.10\bat..\tmp\jna10184604060641084661.dll
*** GENERATING YAJSW CONFIGURATION FOR PID 11708 ***
pid 11708 ReadProcessMemory returns false
process command line:
"C:\WINDOWS\system32\cmd.exe"
creating image configuration file
NOT YET IMPLEMENTED
NOTE: check/edit the following properties in the config file!
wrapper.app.account, wrapper.app.password: either set the password or remove the account
wrapper.java.command
wrapper.working.dir
wrapper.ntservice.name, wrapper.ntservice.displayname, wrapper.ntservice.description
unimplemented option
Could you please check and update us, This will be very much helpful.
Best Regards,
Muthu.
as the logging states:
you have enterd the PID of the cmd process not the one of the java process.
-- Ron