I ran into a similar issue. I had the following expression in my wrapper.conf: include=${ \ if ("${java.version}".startsWith("1.")) \ "wrapper-java8.conf" \ else \ "wrapper-java11.conf" \ } This was working fine in 12.14, but failed in 12.15 with an error saying that the file conf/?unresolved? could not be found. To get it working I moved the condition logic into the .bat/.sh script and set a variable there, and then in wrapper.conf I changed the 'include' line to: include=${wrapper_conf_include}...
This is a very old post, but I just ran into this very same issue. I was using a conditional expression in my variable assignment in wrapper.conf and I wasn't able to figure out the correct Groovy syntax to properly escape the backslashes. But I found a much simpler solution, which is to do it in the batch file instead, before calling the wrapper. E.g.: set "LOC=%LOCATION:\=\%" This is very simple, and works fine. I hope this will save some time and frustration to someone.
Hi Ron, Sorry for not providing the platform info before: YAJSW: yajsw-stable-12.13a OS : AIX/7.1/ppc64 JVM : IBM Corporation/1.8.0_191//usr/java8_64/jre/64 The reason I am using kill is because jstack is not available in the IBM JRE/JDK. Unfortunately your suggestion didn't work. I also tried wrapper.on_signal.default=IGNORE and wrapper.on_exit.131=IGNORE, but I still got the above error in the log and my application got killed and restarted. It seems like the IGNORE option might not be valid? Thanks,...
I am trying to generate a threaddump for my Java application using the kill -3 <Java pid> command. This works fine if the application is started directly, but if I start it with the wrapper then the wrapper restarts the application (and no threaddump is generated): INFO|wrapper|19-12-11 22:37:46|restart process due to default exit code rule INFO|wrapper|19-12-11 22:37:46|restart internal RUNNING INFO|wrapper|19-12-11 22:37:46|stopping process with pid/timeout 14811362 45000 INFO|wrapper|19-12-11...
When I set the login userid/password for a Windows service through the Services GUI, I get a pop-up message saying that "The account has been granted the Log On As A Service right". When I set the parameters wrapper.ntservice.account and wrapper.ntservice.password in wrapper.conf and run installService.bat this user right (SeServiceLogonRight) is not getting set for the user, so the service fails to start. I think this defeats the purpose of having these parameters in the wrapper.conf, because now...
Hi Ron, The problem is not with the restart. I can restart the service manually. The problem is that it is not picking up the change in JAVA_HOME. Thanks, Peter
Hello, Is there a way to configure the Windows service, so that every time Java gets updated on the machine (or every time the JAVA_HOME environment variable changes) the service would reconfigure itself on startup to use that (both for the service itself and for the started application)? I was looking at the Service Update section of the doc, but it is not clear how exactly that would work, and whether it would work at all in this situation. Please let me know whether this is possible. Thanks, ...
Version number for 12.13 shows 12.12 on startup