You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Based on our cipher tool script, it loads each jar within the following two locations to find "org.wso2.ciphertool.CipherTool" runtime.
<APIM_HOME>/lib/.jar
<APIM_HOME>/repository/components/plugins/.jar
Both directories contain 756 jars, and based on the logic below, each jar is loaded.
# update classpath
CARBON_CLASSPATH=""
for f in "$CARBON_HOME"/lib/*.jar
do
CARBON_CLASSPATH=$CARBON_CLASSPATH:$f
done
for h in "$CARBON_HOME"/repository/components/plugins/*.jar
do
CARBON_CLASSPATH=$CARBON_CLASSPATH:$h
done
CARBON_CLASSPATH=$CARBON_CLASSPATH:$CLASSPATH
Therefore, when executing the below command, the customer observed the "Argument list too long" error.
760
/******/wso2am-4.2.0/bin/ciphertool.sh: line 127: //bin/java: Argument list too long
761
Cleaning up project directory and file based variables
00:00
762
ERROR: Job failed: exit status 1
Reason
The "CARBON_CLASSPATH" variable value becomes too long because we are appending each jar.
Solution
# Update classpath using folder-based approach
CARBON_CLASSPATH="$CARBON_HOME/lib/*:$CARBON_HOME/repository/components/plugins/*:$CLASSPATH"
Steps to Reproduce
Perform cipher encryption in a VM with limited processing capability to handle arguments."
Version
APIM 4.3.0, APIM 4.2.0
Environment Details (with versions)
No response
The text was updated successfully, but these errors were encountered:
Description
Based on our cipher tool script, it loads each jar within the following two locations to find "org.wso2.ciphertool.CipherTool" runtime.
<APIM_HOME>/lib/.jar
<APIM_HOME>/repository/components/plugins/.jar
Both directories contain 756 jars, and based on the logic below, each jar is loaded.
Therefore, when executing the below command, the customer observed the "Argument list too long" error.
Command:
Reason
The "CARBON_CLASSPATH" variable value becomes too long because we are appending each jar.
Solution
Steps to Reproduce
Perform cipher encryption in a VM with limited processing capability to handle arguments."
Version
APIM 4.3.0, APIM 4.2.0
Environment Details (with versions)
No response
The text was updated successfully, but these errors were encountered: