- Ensure GlassFish server is up and running. (or use asadmin start-domain domain1 command)
- Execute asadmin create-http-listener --listenerport 8009 --listeneraddress 0.0.0.0 --defaultvs server jk-connector
- Execute asadmin set configs.config.server-config.network-config.network-listeners.network-listener.jk-connector.jk-enabled=true
- Final step is to restart GlassFish server. Thats it enjoy.