make sure your firewall is allowing those ports of course. also depending on the default tomcat config from the ubuntu package manager repo, it may conflict with the jetty server built into openfire.
usually the tomcat configs in most distros are located in /etc/tomcat or /usr/share/tomcat