Problem : Openfire server does not listen to port 5222.
Symptoms :
- netstat -tulpn | grep LISTEN
- – will not show ports 5222 or 5223.
- tail -1000 /opt/openfire/logs/stderror.log
- Will show these entries –
- Error starting 5222: null
Error starting 5223: null
Error starting 5275: null
Error starting 5276: null
Error starting 5262: null
Error starting 5263: null
- Error starting 5222: null
- Will show these entries –
Reason : Unknown – but related to OpenJDK.
Fix : Run OpenFire on Oracle JDK (v8 worked, didn’t test on v9)

Sreekumar (KJ) has been a hobby programmer from school days. Codemarvels is his personal blog from the year 2010, where he writes about technology, philosophy, society and a bit about physics.
He now runs a conversational AI company – DheeYantra – focusing his efforts to help businesses improve operational efficiency using digital employees powered by AI.
