Project

General

Profile

Actions

Feature #2114

open

Make ConnectorServer.bat accept java params on the commandline

Added by Petr Fišer almost 5 years ago. Updated almost 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Start date:
03/11/2020
Due date:
% Done:

0%

Estimated time:
Owner:

Description

When installing the windows service, ConnectorServer.bat should accept parameters for java truststore.
This was probably originally working but was broken with recent changes to the file (lines 175-180 of current master):

@REM"%CONNECTOR_SERVER_HOME%\bin\%ARCH%\ConnectorServerJava.exe" //IS//%SERVICE_NAME% --Install="%CONNECTOR_SERVER_HOME%\bin\%ARCH%\ConnectorServerJava.exe" --Description="ConnId Connectors Java Server" --Jvm=%JAVA_DLL% --Classpath=%CP% --JvmOptions=%JAVA_OPTS_SERVICE%%JAVA_OPTS_PARAM% --StartPath="%CONNECTOR_SERVER_HOME%" --StartMode=jvm --StartClass=%MAIN_CLASS% --StartParams="-run;%SERVER_PROPERTIES_KEY%;%SERVER_PROPERTIES%" --StopMode=jvm --StopClass=%MAIN_CLASS% --StopMethod=stop --StopParams=dummy --LogPath="%CONNECTOR_SERVER_HOME%\logs" --LogPrefix=service --StdOutput=auto --StdError=auto --LogLevel=INFO
@REM
@REM creation of windows service with trustsore
"%CONNECTOR_SERVER_HOME%\bin\%ARCH%\ConnectorServerJava.exe" //IS//%SERVICE_NAME% --Install="%CONNECTOR_SERVER_HOME%\bin\%ARCH%\ConnectorServerJava.exe" --Description="ConnId Connectors Java Server" --Jvm=%JAVA_DLL% --Classpath=%CP% --JvmOptions=%JAVA_OPTS_SERVICE%%JAVA_OPTS_PARAM%"-Djavax.net.ssl.trustStore=C:\connid-connector-server\conf\truststore.jks";"-Djavax.net.ssl.trustStorePassword=TODO_PASSWORD" --StartPath="%CONNECTOR_SERVER_HOME%" --StartMode=jvm --StartClass=%MAIN_CLASS% --StartParams="-run;%SERVER_PROPERTIES_KEY%;%SERVER_PROPERTIES%" --StopMode=jvm --StopClass=%MAIN_CLASS% --StopMethod=stop --StopParams=dummy --LogPath="%CONNECTOR_SERVER_HOME%\logs" --LogPrefix=service --StdOutput=auto --StdError=auto --LogLevel=INFO
echo Connector server successfully installed as "%SERVICE_NAME%" service
goto :EOF

We should revert those changes and test the service creation using:

ConnectorServer.bat ... some params ... -J-Djavax.net.ssl.trustStore=C:\connid-connector-server\conf\truststore.jks -J-Djavax.net.ssl.trustStorePassword=SOME_PASSWORD

If it is still not working, we should modify the .bat script.

Actions #1

Updated by Petr Fišer almost 5 years ago

  • Description updated (diff)
Actions #2

Updated by Petr Fišer almost 5 years ago

  • Target version set to cs1.4.5.1-cf1.4.3.0-bcv1.1
Actions

Also available in: Atom PDF