From 722ed936aac01b57349e8d20b0f04dd1f659a514 Mon Sep 17 00:00:00 2001 From: BLasan Date: Fri, 11 Aug 2023 15:14:18 +0530 Subject: [PATCH] fixes: https://github.com/wso2/api-manager/issues/2063 fixes: https://github.com/wso2/api-manager/issues/2038 fixes: https://github.com/wso2/api-manager/issues/2029 --- .../product/src/main/startup-scripts/api-manager.bat | 1 + .../product/src/main/startup-scripts/api-manager.sh | 2 ++ 2 files changed, 3 insertions(+) diff --git a/modules/distribution/product/src/main/startup-scripts/api-manager.bat b/modules/distribution/product/src/main/startup-scripts/api-manager.bat index 04fc8da6b8..218bf8c72d 100755 --- a/modules/distribution/product/src/main/startup-scripts/api-manager.bat +++ b/modules/distribution/product/src/main/startup-scripts/api-manager.bat @@ -204,6 +204,7 @@ if %JAVA_VERSION% GEQ 110 set CARBON_CLASSPATH=".\lib\endorsed\*";%CARBON_CLASSP if %JAVA_VERSION% LEQ 18 set JAVA_VER_BASED_OPTS=-Djava.endorsed.dirs=".\lib\endorsed";"%JAVA_HOME%\jre\lib\endorsed";"%JAVA_HOME%\lib\endorsed" if %JAVA_VERSION% GEQ 110 set JAVA_VER_BASED_OPTS=--add-opens=java.base/sun.security.x509=ALL-UNNAMED --add-opens=java.naming/com.sun.jndi.ldap=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens java.rmi/sun.rmi.transport=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED +set JAVA_VER_BASED_OPTS=%JAVA_VER_BASED_OPTS% -Djdk.util.zip.disableZip64ExtraFieldValidation=true -Djdk.nio.zipfs.allowDotZipEntry=true set CMD_LINE_ARGS=-Xbootclasspath/a:%CARBON_XBOOTCLASSPATH% -Xms256m -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath="%CARBON_HOME%\repository\logs\heap-dump.hprof" set CMD_LINE_ARGS=%CMD_LINE_ARGS% -Dcom.sun.management.jmxremote -classpath %CARBON_CLASSPATH% %JAVA_OPTS% %JAVA_VER_BASED_OPTS% diff --git a/modules/distribution/product/src/main/startup-scripts/api-manager.sh b/modules/distribution/product/src/main/startup-scripts/api-manager.sh index 48f913573a..a5d7a17ef3 100755 --- a/modules/distribution/product/src/main/startup-scripts/api-manager.sh +++ b/modules/distribution/product/src/main/startup-scripts/api-manager.sh @@ -355,6 +355,8 @@ do -Dlog4j2.contextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector \ -Dorg.ops4j.pax.logging.logReaderEnabled=false \ -Dorg.ops4j.pax.logging.eventAdminEnabled=false \ + -Djdk.util.zip.disableZip64ExtraFieldValidation=true \ + -Djdk.nio.zipfs.allowDotZipEntry=true \ org.wso2.carbon.bootstrap.Bootstrap $* status=$? done