将 WSO2 IOT 服务器作为 Windows 服务运行 [英] Getting WSO2 IOT Server running as a Windows Service

查看:70
本文介绍了将 WSO2 IOT 服务器作为 Windows 服务运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在 Server 2012R2 上安装了 WSO2 IOT Server.我安装了 YAJSW 包装器并按照 WSO2 说明对其进行了配置.当我启动 runConsole.bat 以配置 Windows 服务时,出现以下错误.我有JAVA_HOME &CARBON_HOME 设置.进程好像找不到文件,但是目录存在,里面有文件文件.

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

推荐答案

我在使用 yajsw 12.08 时遇到了同样的问题.而 yajsw 11.11 已经解决了.
下载链接:https://sourceforge.net/projects/yajsw/文件/yajsw/yajsw-stable-11.11/

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/

这篇关于将 WSO2 IOT 服务器作为 Windows 服务运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆