Friday, October 26, 2012

Setting charset of JVM to UTF-8 for WSO2 Products

To set the charset of JVM during startup by passing file.encoding system property add the following line to bin/wso2server.sh under $JAVA_OPTS.
-Dfile.encoding=UTF-8 \
For more info, read: Supported Encodings

Tuesday, October 9, 2012

Starting OSGi console when WSO2 Carbon runs in daemon mode

In the $CARBON_HOME/repository/conf/wrapper.conf file, add the following line to the 'Java Additional Parameters' section.
wrapper.java.additional.11=-DosgiConsole=<telnet-port>

After starting Carbon with these settings, connect to the OSGi Console using telnet as follows.
telnet <ip address> <telnet-port>

To learn more about using the OSGi Console, refer: