...
To avoid this issue, you can define a maximum level of entity substitutions that the XML parser allows in the system. You do this using the entity expansion limit
as follows in the <EI_HOME>/bin/wso2serverintegrator.bat
file (for Windows) or the <EI_HOME>/bin/wso2serverintegrator.sh
file (for Linux/Solaris). The default entity expansion limit is 64000.
...