From a54dd93100d5122071579c3fd4f96d1409a34e61 Mon Sep 17 00:00:00 2001 From: labkey-jeckels Date: Thu, 13 Feb 2025 09:44:12 -0800 Subject: [PATCH] Add reflection parameters to remote server startups --- server/configs/config-remote/installServiceWin.bat | 2 +- server/configs/config-remote/startCommandLine.bat | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/configs/config-remote/installServiceWin.bat b/server/configs/config-remote/installServiceWin.bat index fcfb55b766..104b0400d3 100644 --- a/server/configs/config-remote/installServiceWin.bat +++ b/server/configs/config-remote/installServiceWin.bat @@ -1,7 +1,7 @@ if "%LABKEY_ROOT%" == "" goto noLabKeyRoot if "%JAVA_HOME%" == "" goto noJavaHome -prunsrv.exe //IS//LabKeyRemoteServer --StdOutput="%LABKEY_ROOT%\logs\output.log" --StdError="%LABKEY_ROOT%\logs\output.log" --LogPath="%LABKEY_ROOT%\logs" --StartMode jvm --JavaHome "%JAVA_HOME%" --Jvm "%JAVA_HOME%\bin\server\jvm.dll" --JvmMx 1024 --Description "Allows this server to run pipeline jobs remotely for a LabKey Server instance" --DisplayName "LabKey Remote Pipeline Server" --Startup auto --Classpath "%LABKEY_ROOT%\tomcat-lib\labkeyBootstrap.jar" --StartClass org.labkey.bootstrap.RemoteServerBootstrap --StartParams="-modulesdir=%LABKEY_ROOT%\modules;-configdir=%LABKEY_ROOT%\config;-webappdir=%LABKEY_ROOT%\labkeywebapp" +prunsrv.exe //IS//LabKeyRemoteServer --StdOutput="%LABKEY_ROOT%\logs\output.log" --StdError="%LABKEY_ROOT%\logs\output.log" --LogPath="%LABKEY_ROOT%\logs" --StartMode jvm --JavaHome "%JAVA_HOME%" --Jvm "%JAVA_HOME%\bin\server\jvm.dll" --JvmMx 1024 --Description "Allows this server to run pipeline jobs remotely for a LabKey Server instance" --DisplayName "LabKey Remote Pipeline Server" --Startup auto --Classpath "%LABKEY_ROOT%\tomcat-lib\labkeyBootstrap.jar" --StartClass org.labkey.bootstrap.RemoteServerBootstrap --StartParams="-modulesdir=%LABKEY_ROOT%\modules;-configdir=%LABKEY_ROOT%\config;-webappdir=%LABKEY_ROOT%\labkeywebapp" ++JvmOptions=--add-opens=java.base/java.lang=ALL-UNNAMED ++JvmOptions=--add-opens=java.base/java.io=ALL-UNNAMED ++JvmOptions=--add-opens=java.base/java.util=ALL-UNNAMED ++JvmOptions=--add-opens=java.desktop/java.awt.font=ALL-UNNAMED ++JvmOptions=--add-opens=java.base/java.text=ALL-UNNAMED goto end :noLabKeyRoot diff --git a/server/configs/config-remote/startCommandLine.bat b/server/configs/config-remote/startCommandLine.bat index 67c0b87835..b3e39fde8c 100644 --- a/server/configs/config-remote/startCommandLine.bat +++ b/server/configs/config-remote/startCommandLine.bat @@ -1 +1 @@ -java -cp ..\..\..\build\labkeyBootstrap.jar -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 -Xmx384m org.labkey.bootstrap.RemoteServerBootstrap -modulesdir=..\..\..\build\deploy\modules -configdir=. -webappdir=..\..\..\build\deploy\labkeywebapp +java -cp ..\..\..\build\labkeyBootstrap.jar -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 -Xmx384m --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.desktop/java.awt.font=ALL-UNNAMED --add-opens=java.base/java.text=ALL-UNNAMED org.labkey.bootstrap.RemoteServerBootstrap -modulesdir=..\..\..\build\deploy\modules -configdir=. -webappdir=..\..\..\build\deploy\labkeywebapp