Hi, Can someone please assist me with the below logs. After installation of the service and configured the file (migration from JSW to YAJSW) unable to run the service. Running but getting stop frequently.
WARNING|wrapper|Service Government Reimbursement and Electronic Adjustment Tracker|23-07-31 23:41:20|YAJSW: yajsw-stable-13.10
WARNING|wrapper|Service Government Reimbursement and Electronic Adjustment Tracker|23-07-31 23:41:20|OS : Windows Server 2022/10.0/amd64
WARNING|wrapper|Service Government Reimbursement and Electronic Adjustment Tracker|23-07-31 23:41:20|JVM : Amazon.com Inc./17.0.7/C:\Program Files\Amazon Corretto\jdk17.0.7_7/64
INFO|wrapper|Service Government Reimbursement and Electronic Adjustment Tracker|23-07-31 23:41:21|start delay: 0
INFO|wrapper|Service Government Reimbursement and Electronic Adjustment Tracker|23-07-31 23:41:21|started process with pid 2084
INFO|wrapper|Service Government Reimbursement and Electronic Adjustment Tracker|23-07-31 23:41:21|calling onStop
INFO|wrapper|Service Government Reimbursement and Electronic Adjustment Tracker|23-07-31 23:41:21|Win service stop - timeout: 30000
INFO|wrapper|Service Government Reimbursement and Electronic Adjustment Tracker|23-07-31 23:41:21|Win service wrapper.control -> stopping application
INFO|wrapper|Service Government Reimbursement and Electronic Adjustment Tracker|23-07-31 23:41:21|Win service stop - after shutdown
INFO|wrapper|Service Government Reimbursement and Electronic Adjustment Tracker|23-07-31 23:41:21|Win service stop - before notify
INFO|wrapper|Service Government Reimbursement and Electronic Adjustment Tracker|23-07-31 23:41:21|Win service terminated
hello,
is the log file from running your app as service ? or with runConsole.bat ?
pls try the following:
set the following properties in the conf file:
invoke runConsole and check the console output.
if you cannot figure it out, pls provide the console output and your configuration file.
if it runs ok with runConsole but not with a service then check if the work dir is correctly set in the config or path to java or user rights.
pls remember to remove any private data such as passwords from the config/log.
-- Ron
Running app as a service. I have followed the document Migration from JSW to YAJSW.
I'm sharing the conf file for reference.
then is it ok to remove the below properties
1. # Wrapper JVM Checks
2. # Wrapper Email Notifications. (Requires Professional Edition)
your config does not seem to be ok.
Q: can you run your application in a console without a wrapper ? if yes, it would be easier for you to proceed as described in the quick start of the yajsw documentation.
your configuration is missing the working dir of your application, the classpath to your application. the classpath to the wrapper jars is not needed. it is also missing the jar or main class to invoke.
the log file name format is not OK. pls check the docs.
concerning your questions:
JVM checks are not required.
email notifications: are not required. this is configured differently in yajsw. pls check the docs for details.
-- Ron
Hi Ron,
Please find the updated file with the info.
Q: can you run your application in a console without a wrapper ? if yes, it would be easier for you to proceed as described in the quick start of the yajsw documentation.
-- Already followed the quickstart steps "Installation of a java application using genConfig" and created the test-helloworld service and it is running fine. Now we ar migrating from JSW to YAJSW using the "Migrating from JSW integration method 4". Currently the application is getting build, hence we wanted to keep the Java service wrapper ready with the config properties except the Java additional and application parameters.
Please find the updated config file and guide us to prepare the config properties ready in order.
Using the bat folder to install, start, stop and uninstall the services.
Points below:-
your configuration is missing the working dir of your application the classpath to your application - While sending I have removed the directory and kept it as blank
the classpath to the wrapper jars is not needed - Removed
It is also missing the jar or main class to invoke - Please assist
the log file name format is not OK. pls check the docs. - Fine, Logs are generating in a different folder.