I am new to YAJSW and was able to install/uninstall/start/stop the service using example provided in the package with MemoryMonitor. However, the same example class files do not work and the service is not started if I embed the class files into my existing application (by modifiying the package declaration and putting it into the classpath).
C:\ICS Root\scripts\Windows\Service>DataFlow_Service.cmd -startsvc
Jan 20, 2016 3:51:08 PM org.rzo.yajsw.wrapper.WrappedService jvmOptions
INFO: Windows & JVM7: Setting -Djava.net.preferIPv4Stack=true (see java bug 7179
799 )
Failed to start the Service. Try running again with "Run as Administrator"
C:\ICS Root\scripts\Windows\Service>
I am running it with admin privileges already. I am using YAJSW v 11.11 with JRE1.7.0_79.
What is missing as I can run the example that comes with the package. I also do not get any logs. Any help would be great as I stuck into this. Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
what you are doing cannot work.
pls refer to the documentation on how to use yajsw.
in any case you should not include any of the jar files provided by yajsw except for wrapper.jar
you should not change the folder structure unless you know what you are doing. what is MemoryMonitorServiceWrapper ?
take a look at the quickstart instructions in the docs. get your application to run from the command line and then use genconfig to generate the configuration.
-- Ron
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I am new to YAJSW and was able to install/uninstall/start/stop the service using example provided in the package with MemoryMonitor. However, the same example class files do not work and the service is not started if I embed the class files into my existing application (by modifiying the package declaration and putting it into the classpath).
Here is my .cmd file:
Here is my .conf file:
I get following on console:
I am running it with admin privileges already. I am using YAJSW v 11.11 with JRE1.7.0_79.
What is missing as I can run the example that comes with the package. I also do not get any logs. Any help would be great as I stuck into this. Thanks.
hello,
what you are doing cannot work.
pls refer to the documentation on how to use yajsw.
in any case you should not include any of the jar files provided by yajsw except for wrapper.jar
you should not change the folder structure unless you know what you are doing. what is MemoryMonitorServiceWrapper ?
take a look at the quickstart instructions in the docs. get your application to run from the command line and then use genconfig to generate the configuration.
-- Ron