Feature request

Functionality and usage of the OpenNethome Server
Mastiff
Posts: 73
Joined: Tue Feb 24, 2015 7:30 am

Re: Feature request

Post by Mastiff »

I liked that PSKill! :mrgreen: I'll try that the next time I'm there, thanks!
Mastiff
Posts: 73
Joined: Tue Feb 24, 2015 7:30 am

Re: Feature request

Post by Mastiff »

krambriw wrote:To use under Windows, you need to run ONH as a service. I did configure this a couple of years ago with a java service wrapper
http://wrapper.tanukisoftware.com/doc/e ... ml#service
but I do not exactly remember how the syntax looked like...


Or maybe this one is a better option:

http://sourceforge.net/projects/yajsw/
I'm trying to get this working, but I'm really struggling. I followed the quick start info in the YASJW totally, I googled the first few errors and fixed the path to java in environmental variables and changed c:\Program Files (x86)\Java\jre1.8.0_45\bin\javaw.exe to c:\progra~2\Java\jre1.8.0_45\bin\javaw.exe because it needed it, and I have done just about everything to get it to work, or so I thought. I still get an error when I try to install the service (but not while running it console).

This is what I get:

Code: Select all

C:\Program Files (x86)\YAJSW\bat>cd C:\Program Files (x86)\YAJSW\bat\

C:\Program Files (x86)\YAJSW\bat>call setenv.bat
"java" -Xmx30m -Djna_tmpdir="C:\Program Files (x86)\YAJSW\bat\/../tmp" -Djava.net.preferIPv4Stack=true -jar "C:\Program Files (x86)\YAJSW\bat\/../wrapper.jar" -i "C:\Program Files (x86)\YAJSW\bat\/../conf/wrapper.conf"
YAJSW: yajsw-alpha-12.00
OS   : Windows 7/6.1/x86
JVM  : Oracle Corporation/1.8.0_45/C:\Program Files (x86)\Java\jre1.8.0_45/32
mai 17, 2015 11:46:32 PM org.apache.commons.vfs2.VfsLog info
INFO: Using "C:\Users\ADMINI~1\AppData\Local\Temp\vfs_cache" as temporary files
store.
************* INSTALLING c:\progra~2\Java\jre1.8.0_45\bin\javaw.exe ************
***********

service cmd: javaw.exe -classpath "C:\Program Files (x86)\YAJSW\wrapper.jar" -Xrs -Dwrapper.service=true -Dwrapper.working.dir="C:\Program Files (x86)\NetHomeServer\lib" -Djna_tmpdir="C:\Program Files (x86)\YAJSW\bat\/../tmp" -Dwrapper_home="C:\Program Files (x86)\YAJSW\bat\/.." -Dwrapper.config="C:\Program Files (x86)\YAJSW\conf\wrapper.conf" -Dwrapper.additional.1x=-Xrs -Djna_tmpdir="C:\Program Files (x86)\YAJSW\bat\..\tmp" org.rzo.yajsw.boot.WrapperServiceBooter
error during install 123
Filnavnet, mappenavnet eller volumnavnesyntaksen er feil.
Service c:\progra~2\Java\jre1.8.0_45\bin\javaw.exe NOT installed
Trykk en tast for å fortsette...
The bloody annoying thing is that it doesn't tell me what part's wrong, so I can't really debug it. :(

I get warnings wen running it console (not as a service), but they do not interfere with ONH:

Code: Select all

INFO|1156/0|c:\progra~2\Java\jre1.8.0_45\bin\javaw.exe|15-05-17 23:56:13|at java.lang.Thread.run(Unknown Source)
INFO|1156/0|c:\progra~2\Java\jre1.8.0_45\bin\javaw.exe|15-05-17 23:56:13|
[INFO]StandardFileSystemManager - Using "C:\Users\ADMINI~1\AppData\Local\Temp\vfs_cache" as temporary files store.
INFO|1156/0|c:\progra~2\Java\jre1.8.0_45\bin\javaw.exe|15-05-17 23:56:13|mai 17, 2015 11:56:11 PM nu.nethome.home.impl.HomeManagerStarter go
INFO|1156/0|c:\progra~2\Java\jre1.8.0_45\bin\javaw.exe|15-05-17 23:56:13
INFO: **Starting HomeManager 2.1-SNAPSHOT-130a7**
INFO|1156/0|c:\progra~2\Java\jre1.8.0_45\bin\javaw.exe|15-05-17 23:56:13|mai 17, 2015 11:56:11 PM nu.nethome.home.impl.HomeManagerStarter go
INFO|1156/0|c:\progra~2\Java\jre1.8.0_45\bin\javaw.exe|15-05-17 23:56:13|
INFO: Logging to: C:\Users\Administrator/HomeManager%g.log
INFO|1156/0|c:\progra~2\Java\jre1.8.0_45\bin\javaw.exe|15-05-17 23:56:13|mai 17, 2015 11:56:11 PM nu.nethome.home.impl.HomeItemFileLoader loadItems
INFO|1156/0|c:\progra~2\Java\jre1.8.0_45\bin\javaw.exe|15-05-17 23:56:13|INFO: Loading Items from default.xml
INFO|1156/0|c:\progra~2\Java\jre1.8.0_45\bin\javaw.exe|15-05-17 23:56:17|SLF4J:Failed to load class "org.slf4j.impl.StaticLoggerBinder".
INFO|1156/0|c:\progra~2\Java\jre1.8.0_45\bin\javaw.exe|15-05-17 23:56:17|SLF4J:Defaulting to no-operation (NOP) logger implementation
INFO|1156/0|c:\progra~2\Java\jre1.8.0_45\bin\javaw.exe|15-05-17 23:56:17|SLF4J:See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
INFO|1156/0|c:\progra~2\Java\jre1.8.0_45\bin\javaw.exe|15-05-17 23:56:23|mai 17, 2015 11:56:23 PM nu.nethome.home.impl.HomeServer loadItems
INFO|1156/0|c:\progra~2\Java\jre1.8.0_45\bin\javaw.exe|15-05-17 23:56:23|INFO: Activated 45 of 46 Items
Can anybody please tell me what's wrong or what I should look for? I know completely nothing about Java...
Post Reply