We would like to add a Java process as a service in Windows and have the following two queries:
1) Our JAR mandates couple of arguments and where do you specify the same?
2) Our JAR till date has been used with a startup and shutdown batch file and the batch file actually invokes shutdown controller and then system exit. If it's not done, stale entries need to be cleaned up at the backend and does YAJSW solve that with the wrapper?
Ron,
Thanks for the quick response. We managed to add the parameters and made it
start. We also used installservice.bat and see that the process works as
expected. We use a shutdown.bat all these days to stop the tunnel and would
like to simulate the same when the windows service is stopped. Went through
the tomcat sample files and couldn't relate it to the actual windows stop
service. Attaching our wrapper.conf and the shutdown script. Can you help
us with information on what we need to do?
Batch file content
set CLASSPATH=%CLASSPATH%;eureQaDBConnect.jar;lib/*;
java com.eureqa.mtf.framework.ShutdownController -p 5656 -s s
Prasad Asokan |
Voice: +91 9483 483 483 | Skype / Twitter / LinkedIn / Facebook / g+ :
prasadasokan |
On 7 March 2018 at 11:57, rzo rzorzorzo@users.sourceforge.net wrote:
Related
Support Requests:
#29hello,
to 1:
to 2:
see conf/demo/tomcat.conf, tomcat.stop.conf
for details pls refer to the docs and the samples/demos
-- Ron
hello,
in wrapper.conf set:
in conf folder create a file
wrapper.stop.confwith the following content:note: name of the file is not important. idea is define all properties which differ from those in wrapper.conf, then include wrapper.conf.
-- Ron
Ron,
This is exactly what we had created and removed the existing service and
installed it again. When attempted to stop the windows service, it abruptly
kills the process leaving stale entries at the back end. Is there a way to
verify if this is working?
Or where the configuration is wrong? We tried setting the class path as
well. And it didn’t help.
We know it’s possible and YAJSW will help us to a greater extent in this
regard, but couldn’t cross this final hurdle.
Regards,
AP
Sent from my iPhone
On 08-Mar-2018, at 4:49 AM, rzo rzorzorzo@users.sourceforge.net wrote:
hello,
in wrapper.conf set:
wrapper.stop.conf = conf/wrapper.stop.conf
in conf folder create a file wrapper.stop.conf with the following content:
wrapper.java.app.mainclass=java com.eureqa.mtf.framework.ShutdownController
wrapper.app.parameter.1=-p
wrapper.app.parameter.2=5656
wrapper.app.parameter.3=-s
wrapper.app.parameter.4=s
wrapper.stopper = true
include=wrapper.conf
note: name of the file is not important. idea is define all properties
which differ from those in wrapper.conf, then include wrapper.conf.
-- Ron
https://sourceforge.net/p/yajsw/support-requests/29/ How to pass
arguments to the target JAR*
Status: open
Group: Any
Created: Tue Mar 06, 2018 02:24 PM UTC by Prasad Asokan
Last Updated: Wed Mar 07, 2018 06:27 AM UTC
Owner: rzo
We would like to add a Java process as a service in Windows and have the
following two queries:
1) Our JAR mandates couple of arguments and where do you specify the same?
2) Our JAR till date has been used with a startup and shutdown batch file
and the batch file actually invokes shutdown controller and then system
exit. If it's not done, stale entries need to be cleaned up at the backend
and does YAJSW solve that with the wrapper?
Sent from sourceforge.net because you indicated interest in
https://sourceforge.net/p/yajsw/support-requests/29/
To unsubscribe from further messages, please visit
https://sourceforge.net/auth/subscriptions/
Related
Support Requests:
#29hello,
pls set wrapper.debug=true, wrapper.debug.level = 3
and start/stop your service and post the log file.
there should be 2 log files: application, stop application.
-- Ron
Please find the wrapper.log attached.
The process is killed abruptly without the shutdown controller being
invoked.
Regards,
AP
Prasad Asokan |
Voice: +91 9483 483 483 | Skype / Twitter / LinkedIn / Facebook / g+ :
prasadasokan |
On 8 March 2018 at 11:59, rzo rzorzorzo@users.sourceforge.net wrote:
Related
Support Requests:
#29Ron,
Please find attached the conf files. We tried to include wrapper.conf in
wrapper_stop.conf but the result is the same.
Regards,
AP
Prasad Asokan |
Voice: +91 9483 483 483 | Skype / Twitter / LinkedIn / Facebook / g+ :
prasadasokan |
On 9 March 2018 at 12:25, rzo rzorzorzo@users.sourceforge.net wrote:
Related
Support Requests:
#29hello,
looking at your log file, i assume that your configuration is wrong.
pls provide both conf files.
-- Ron
Ron,
My bad. Sorry about that typo in the configuration. Changed it to
wrapper.stop.conf and I see the main class is invoked upon stop request.
But the call isn't reaching the actual process. Providing the log below for
reference. And Windows service manager times out and we had to shutdown the
controller from the batch file we use. Any idea what's happening here?
WARNING|wrapper|Service
com.eureqa.mtf.framework.ShutdownController|18-03-10 08:53:18|YAJSW:
yajsw-stable-12.12
WARNING|wrapper|Service
com.eureqa.mtf.framework.ShutdownController|18-03-10 08:53:18|OS :
Windows 7/6.1/x86
WARNING|wrapper|Service
com.eureqa.mtf.framework.ShutdownController|18-03-10 08:53:18|JVM : Oracle
Corporation/1.7.0_80/C:\Program Files\Java\jdk1.7.0_80\jre/32
INFO|wrapper|Service com.eureqa.mtf.framework.ShutdownController|18-03-10
08:53:18|start from Thread pool-1-thread-3
INFO|wrapper|Service com.eureqa.mtf.framework.ShutdownController|18-03-10
08:53:18|set state IDLE->STARTING
INFO|wrapper|Service com.eureqa.mtf.framework.ShutdownController|18-03-10
08:53:18|starting Process
INFO|wrapper|Service com.eureqa.mtf.framework.ShutdownController|18-03-10
08:53:18|starting controller
INFO|wrapper|Service com.eureqa.mtf.framework.ShutdownController|18-03-10
08:53:18|binding to port 15004
INFO|wrapper|Service com.eureqa.mtf.framework.ShutdownController|18-03-10
08:53:18|Controller State: UNKNOWN -> WAITING
INFO|wrapper|Service com.eureqa.mtf.framework.ShutdownController|18-03-10
08:53:18|binding successfull
INFO|wrapper|Service com.eureqa.mtf.framework.ShutdownController|18-03-10
08:53:18|controller started
Regards,
AP
Prasad Asokan |
Voice: +91 9483 483 483 | Skype / Twitter / LinkedIn / Facebook / g+ :
prasadasokan |
On 9 March 2018 at 22:34, rzo rzorzorzo@users.sourceforge.net wrote:
Related
Support Requests:
#29Ron,
What we also note is that, when executing runconsole.bat and issue CTRL +
C, the application invokes the shutdown controller as expected. Only when
we are doing the stop from windows service, we are stuck with the
controller started message, but no shutdown controller executed.
Regards,
AP
Prasad Asokan |
Voice: +91 9483 483 483 | Skype / Twitter / LinkedIn / Facebook / g+ :
prasadasokan |
On 10 March 2018 at 09:06, Prasad Asokan prasadasokan@gmail.com wrote:
Related
Support Requests:
#29hello,
in wrapper.conf replace
with:
-- Ron
hello,
pls set in both conf files: wrapper.debug=true wrapper.debug.level=3.
then start and stop the application. you should find 2 log files. one for the app one for the stop app. pls post both.
-- Ron
Ron,
We have the debug level configured and attached are the logs when run from
console and as a service. Start and stop logs are different files.
Regards,
AP
Prasad Asokan |
Voice: +91 9483 483 483 | Skype / Twitter / LinkedIn / Facebook / g+ :
prasadasokan |
On 13 March 2018 at 02:32, rzo rzorzorzo@users.sourceforge.net wrote:
Related
Support Requests:
#29Ron,
Did you happen to take a look at the log files?
Regards,
AP
Prasad Asokan |
Voice: +91 9483 483 483 | Skype / Twitter / LinkedIn / Facebook / g+ :
prasadasokan |
On 13 March 2018 at 09:01, Prasad Asokan prasadasokan@gmail.com wrote:
Related
Support Requests:
#29hello,
thanks for the log files. i am able to reproduce the issue and will need some time to debug the program. I hope that I will get to this on the weekend.
-- Ron
hello,
I think i found the issue.
pls download and replace wrapper.jar from here:
https://www.dropbox.com/s/srps347m4ark5ds/wrapper.jar?dl=0
and test if this solves the issue.
-- Ron
Ron,
Replaced the provided jar and stopping the process as expected. Thanks a
lot for the support rendered. But I notice one another issue that has
started after the new jar. There are two process being launched. With -name
Tunnel_YAJSW is also getting invoked apart from the one we have included in
the wrapper.conf. By any chance you included some configuration part of the
jar?
Regards,
AP
Prasad Asokan |
Voice: +91 9483 483 483 | Skype / Twitter / LinkedIn / Facebook / g+ :
prasadasokan |
On 17 March 2018 at 02:01, rzo rzorzorzo@users.sourceforge.net wrote:
Related
Support Requests:
#29Ron,
Our application parameter -name is getting passed twice. Tried changing the
name to trial_tunnel and I still see one another with name Tunnel_YAJSW.
Does the wrapper.jar you sent me has some reference to it? With the old
jar, only one process gets launched.
Sent from my iPhone
On 17-Mar-2018, at 3:54 PM, rzo rzorzorzo@users.sourceforge.net wrote:
hello,
good news.
however it is not clear what you mean with
There are two process being launched.
when the service is started 2 processes are started, one for the wrapper,
one for the app. when the service stop is invoked a third process is
started by the wrapper. this one will send the stop command to the app,
and, if implemented correctly, will terminate. This will cause the app to
terminate.
-- Ron
https://sourceforge.net/p/yajsw/support-requests/29/ How to pass
arguments to the target JAR*
Status: open
Group: Any
Created: Tue Mar 06, 2018 02:24 PM UTC by Prasad Asokan
Last Updated: Fri Mar 16, 2018 08:31 PM UTC
Owner: rzo
We would like to add a Java process as a service in Windows and have the
following two queries:
1) Our JAR mandates couple of arguments and where do you specify the same?
2) Our JAR till date has been used with a startup and shutdown batch file
and the batch file actually invokes shutdown controller and then system
exit. If it's not done, stale entries need to be cleaned up at the backend
and does YAJSW solve that with the wrapper?
Sent from sourceforge.net because you indicated interest in
https://sourceforge.net/p/yajsw/support-requests/29/
To unsubscribe from further messages, please visit
https://sourceforge.net/auth/subscriptions/
Related
Support Requests:
#29And when stopping the process, the one launched with name trial_tunnel gets
shutdown as expected with the new jar. But leaves another a stale one with
name Tunnel_YAJSW.
With the old jar, only one gets launched and with the name I configured in
the wrapper.conf.
Sent from my iPhone
On 17-Mar-2018, at 3:58 PM, Prasad Asokan prasadasokan@users.sourceforge.net wrote:
Ron,
Our application parameter -name is getting passed twice. Tried changing the
name to trial_tunnel and I still see one another with name Tunnel_YAJSW.
Does the wrapper.jar you sent me has some reference to it? With the old
jar, only one process gets launched.
Sent from my iPhone
On 17-Mar-2018, at 3:54 PM, rzo rzorzorzo@users.sourceforge.net wrote:
hello,
good news.
however it is not clear what you mean with
There are two process being launched.
when the service is started 2 processes are started, one for the wrapper,
one for the app. when the service stop is invoked a third process is
started by the wrapper. this one will send the stop command to the app,
and, if implemented correctly, will terminate. This will cause the app to
terminate.
-- Ron
https://sourceforge.net/p/yajsw/support-requests/29/
https://sourceforge.net/p/yajsw/support-requests/29/ How to pass
arguments to the target JAR*
Status: open
Group: Any
Created: Tue Mar 06, 2018 02:24 PM UTC by Prasad Asokan
Last Updated: Fri Mar 16, 2018 08:31 PM UTC
Owner: rzo
We would like to add a Java process as a service in Windows and have the
following two queries:
1) Our JAR mandates couple of arguments and where do you specify the same?
2) Our JAR till date has been used with a startup and shutdown batch file
and the batch file actually invokes shutdown controller and then system
exit. If it's not done, stale entries need to be cleaned up at the backend
and does YAJSW solve that with the wrapper?
Sent from sourceforge.net because you indicated interest in
https://sourceforge.net/p/yajsw/support-requests/29/
To unsubscribe from further messages, please visit
https://sourceforge.net/auth/subscriptions/
https://sourceforge.net/p/yajsw/support-requests/29/ How to pass
arguments to the target JAR*
Status: open
Group: Any
Created: Tue Mar 06, 2018 02:24 PM UTC by Prasad Asokan
Last Updated: Sat Mar 17, 2018 10:24 AM UTC
Owner: rzo
We would like to add a Java process as a service in Windows and have the
following two queries:
1) Our JAR mandates couple of arguments and where do you specify the same?
2) Our JAR till date has been used with a startup and shutdown batch file
and the batch file actually invokes shutdown controller and then system
exit. If it's not done, stale entries need to be cleaned up at the backend
and does YAJSW solve that with the wrapper?
Sent from sourceforge.net because you indicated interest in
https://sourceforge.net/p/yajsw/support-requests/29/
To unsubscribe from further messages, please visit
https://sourceforge.net/auth/subscriptions/
Related
Support Requests:
#29hello,
good news.
however it is not clear what you mean with
when the service is started 2 processes are started, one for the wrapper, one for the app. when the service stop is invoked a third process is started by the wrapper. this one will send the stop command to the app, and, if implemented correctly, will terminate. This will cause the app to terminate.
-- Ron
hello,
sorry, but i do not understand.
for more clarity:
-- Ron
Ron,
There seem to have been some reference to old conf files that were being
used which caused multiple instances being launched. Tried it on a fresh
instance and everything is working fine. Can you let us know if the new
wrapper.jar will be part of the sourceforge download? We would like to
suggest our customers use YAJSW to register our tool as a service. Thanks a
lot for the support rendered. You have been of great help.
Regards,
AP
Prasad Asokan |
Voice: +91 9483 483 483 | Skype / Twitter / LinkedIn / Facebook / g+ :
prasadasokan |
On 17 March 2018 at 19:13, rzo rzorzorzo@users.sourceforge.net wrote:
Related
Support Requests:
#29