Getting WSO2 IOT Server running as a Windows Service

混江龙づ霸主 提交于 2019-12-11 00:49:46

问题


I have installed WSO2 IOT Server on Server 2012R2. I installed YAJSW wrapper and configured it per WSO2 instructions. When I fire off runConsole.bat to configure the Windows service, I get the following error. I have JAVA_HOME & CARBON_HOME set. It looks like the process cannot find files, but the directory exists and there are files files there.

c:\Program Files\yajsw\bat>call setenv.bat
"java" -Xmx30m -Djna_tmpdir="c:\Program Files\yajsw\bat\/../tmp" -Djava.net.pref
erIPv4Stack=true -jar "c:\Program Files\yajsw\bat\/../wrapper.jar" -c "c:\Progra
m Files\yajsw\bat\/../conf/wrapper.conf"
YAJSW: yajsw-stable-12.08
OS   : Windows Server 2012 R2/6.3/amd64
JVM  : Oracle Corporation/1.8.0_121/C:\Program Files\Java\jre1.8.0_121/64
Feb 23, 2017 8:09:07 AM org.apache.commons.vfs2.VfsLog info
INFO: Using "C:\Users\ADMINI~1.LEA\AppData\Local\Temp\1\vfs_cache" as temporary
files store.
WARNING|wrapper|"WSO2 Carbon"|17-02-23 08:09:07|YAJSW: yajsw-stable-12.08
WARNING|wrapper|"WSO2 Carbon"|17-02-23 08:09:07|OS   : Windows Server 2012 R2/6.
3/amd64
WARNING|wrapper|"WSO2 Carbon"|17-02-23 08:09:07|JVM  : Oracle Corporation/1.8.0_
121/C:\Program Files\Java\jre1.8.0_121/64
Feb 23, 2017 8:09:08 AM org.rzo.yajsw.wrapper.FileUtils getFiles
WARNING: No files found for C:\Program Files\WSO2\\bin\*.jar
system.env 55
INFO|wrapper|"WSO2 Carbon"|17-02-23 08:09:08|started process with pid 638044
INFO|wrapper|"WSO2 Carbon"|17-02-23 08:09:08|restart process due to default exit
 code rule
INFO|wrapper|"WSO2 Carbon"|17-02-23 08:09:08|restart internal RUNNING
INFO|wrapper|"WSO2 Carbon"|17-02-23 08:09:08|stopping process with pid/timeout 6
38044 45000
INFO|wrapper|"WSO2 Carbon"|17-02-23 08:09:09|process exit code: 1

回答1:


I had the same issue when I was using yajsw 12.08. And yajsw 11.11 has solved it.
Download link: https://sourceforge.net/projects/yajsw/files/yajsw/yajsw-stable-11.11/



来源:https://stackoverflow.com/questions/42418330/getting-wso2-iot-server-running-as-a-windows-service

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!