{{tag>category:"OEngine Server" author:"Donald Bakke" author:"Barry Stevens" author:"bshumsky"}} [[https://www.revelation.com/the-works|Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community]] ==== Install OEngineServer Issue (OEngine Server) ==== === At 03 FEB 2024 02:55:33PM Donald Bakke wrote: === OI 10.2.1 I am running into a problem getting the OEngineServer to install as a service. On a client's server when I run the InstallService.bat file, it does install the service but during the installation process this error is reported: java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 When I try to run the service I get this: [img]https://www.dropbox.com/scl/fi/sbocjwh7y6x5zbk6370em/OEngineServer-10-OpneJDK.jpg?rlkey=ommgwq32i3moh6e2pfbgu0j24&dl=1[/img] I then installed a fresh copy of OI 10.2.1 on my local machine with the OpenJDK and ran the InstallService.bat file. I got the exact same error and it installed the service. The only difference is the message I see when trying to run the service: [img]https://www.dropbox.com/scl/fi/4btpcn59b6pg1497oub6e/OEngineServer-10.jpg?rlkey=y6wb3r00kisy0lf0d9f2zt1r6&dl=1[/img] For what it is worth, I can run OEngineServer from the command prompt on both machines. Any ideas? [url=mailto:dbakke@srpcs.com]Don Bakke[/url] [url=http://www.srpcs.com]SRP Computer Solutions, Inc.[/url] ---- === At 03 FEB 2024 03:15PM Barry Stevens wrote: === OI 10.2.1 I am running into a problem getting the OEngineServer to install as a service. On a client's server when I run the InstallService.bat file, it does install the service but during the installation process this error is reported: java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 When I try to run the service I get this: [img]https://www.dropbox.com/scl/fi/sbocjwh7y6x5zbk6370em/OEngineServer-10-OpneJDK.jpg?rlkey=ommgwq32i3moh6e2pfbgu0j24&dl=1[/img] I then installed a fresh copy of OI 10.2.1 on my local machine with the OpenJDK and ran the InstallService.bat file. I got the exact same error and it installed the service. The only difference is the message I see when trying to run the service: [img]https://www.dropbox.com/scl/fi/4btpcn59b6pg1497oub6e/OEngineServer-10.jpg?rlkey=y6wb3r00kisy0lf0d9f2zt1r6&dl=1[/img] For what it is worth, I can run OEngineServer from the command prompt on both machines. Any ideas? [url=mailto:dbakke@srpcs.com]Don Bakke[/url] [url=http://www.srpcs.com]SRP Computer Solutions, Inc.[/url] Are you running the installservice.bat from the \eserver folder or the eserver\bat folder? s/b from the \eserver folder in the setenv.bat file under eserver\bat folder is the 'set java_home_dir=' the correct path? ---- === At 03 FEB 2024 04:14PM Donald Bakke wrote: === Are you running the installservice.bat from the \eserver folder or the eserver\bat folder? s/b from the \eserver folder in the setenv.bat file under eserver\bat folder is the 'set java_home_dir=' the correct path? I'm running the version from the \eserver folder. Yes, java_home_dir is set to the correct path. I looked carefully at all of the dependency files to confirm all paths looked good. I might have overlooked something, but everything looked in good order to me. [url=mailto:dbakke@srpcs.com]Don Bakke[/url] [url=http://www.srpcs.com]SRP Computer Solutions, Inc.[/url] ---- === At 05 FEB 2024 07:21AM bshumsky wrote: === Hi, Don. AFAIK, we didn't change anything in the installer for the engine server service for 10.2.1; let me get it started on a test machine (or machines) and we'll see if we encounter the same problem. What version of Windows is the system you are installing the service on? Thanks, - Bryan Shumsky [url=https://www.revelation.com]Revelation Software, Inc.[/url] ---- === At 05 FEB 2024 08:05AM bshumsky wrote: === Hi, Don. I just tried it on a Windows 11 system and it seemed to install properly. A few more details to clarify... - When you ran it on your workstation, what version of Windows are you running? - Are you using the provided java runtime, or are you using your own JRE? - When you ran the installservice.bat, did you right-click and run as administrator? (I believe you should NOT do that, as the paths are then incorrect...) Thanks, - Bryan Shumsky [url=https://www.revelation.com]Revelation Software, Inc.[/url] ---- === At 05 FEB 2024 08:55AM Donald Bakke wrote: === Hi, Don. I just tried it on a Windows 11 system and it seemed to install properly. A few more details to clarify... - When you ran it on your workstation, what version of Windows are you running? - Are you using the provided java runtime, or are you using your own JRE? - When you ran the installservice.bat, did you right-click and run as administrator? (I believe you should NOT do that, as the paths are then incorrect...) Thanks, - Bryan Shumsky [url=https://www.revelation.com]Revelation Software, Inc.[/url] Hi Bryan - - My workstation is Windows 10. I don't know the version of the client's server. I need to ask or wait until later today to connect. - When I installed OI 10.2.1 on my workstation, I asked it to install the provided java runtime. However, I already had another 64bit version installed. Maybe there is a conflict there. On the server, it was a fresh system and we only installed the provided java runtime. - In both cases we [b]ran as administrator[/b]. If I read you correct, you are saying that could present a problem? [url=mailto:dbakke@srpcs.com]Don Bakke[/url] [url=http://www.srpcs.com]SRP Computer Solutions, Inc.[/url] ---- === At 05 FEB 2024 09:27PM bshumsky wrote: === Hi, Don. Yes, as un-intuitive as it seems, you CAN'T run the installer by right-clicking and "run as administrator". When you do that, it changes the current folder, and thus all the relative paths that the .bat file uses are wrong. Try using the "uninstallservice.bat" to remove what's currently in there as a service, and then re-run the "installservice.bat" (without the "run as administrator") and see if that works any better? Thanks, - Bryan Shumsky [url=https://www.revelation.com]Revelation Software, Inc.[/url] ---- === At 05 FEB 2024 10:17PM Barry Stevens wrote: === Hi, Don. Yes, as un-intuitive as it seems, you CAN'T run the installer by right-clicking and "run as administrator". When you do that, it changes the current folder, and thus all the relative paths that the .bat file uses are wrong. Try using the "uninstallservice.bat" to remove what's currently in there as a service, and then re-run the "installservice.bat" (without the "run as administrator") and see if that works any better? Thanks, - Bryan Shumsky [url=https://www.revelation.com]Revelation Software, Inc.[/url] >>then re-run the "installservice.bat" (without the "run as administrator") Ah, that explains a lot for me as to why I have to edit the .bat files (or something like that) ---- === At 09 APR 2024 07:07PM Donald Bakke wrote: === Just an update on this issue, we were able to remove all instances of Java on the client's server and re-run the OI 10.2.1 setup so that we could get the OpenJDK installed automatically. We then ran the InstallService.bat file (being careful NOT to elevate permissions) and this has solved our problems. Thanks to all for guidance on this. The only issue we ran into was that the Environment Variables path did not get updated. This is really a convenience issue, but one we've gotten accustomed to with standard Java installations. [url=mailto:dbakke@srpcs.com]Don Bakke[/url] [url=http://www.srpcs.com]SRP Computer Solutions, Inc.[/url] ---- === At 09 APR 2024 10:10PM bshumsky wrote: === Hi, Don. Glad to hear that resolved the problem. When you install the "provided" Java runtime, the installer intentionally does NOT set up the environment variable. Since we don't know if the server might be running any other version(s) of Java (for any reason), we didn't want the one we provide to interfere or "take over" unexpectedly. Thus, when you use the provided Java runtime, both the "debug command prompt" and the "run as a service" versions are both run with explicit paths to the provided JRE contained inside the OI folder. (Note that an additional implication of this is that you cannot just "move" your OI folder to some other place in the directory tree if you're using the engine server - you must re-install the OpenInsight so that the paths are properly set in the "debug command prompt" and "run as service" batch files). Hope that helps, - Bryan Shumsky [url=https://www.revelation.com]Revelation Software, Inc.[/url] [[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=WORKS_READ&SUMMARY=1&KEY=7941FE506C288146A207308C418F8D67|View this thread on the Works forum...]]