Contact: Web / Voice / Email / Tips
Simple Thoughts Blog - Java and Web Technologies

Simple solutions for complex problems.

 

How To Resolve Tomcat - Openfire Port Conflict

November 13th, 2007 by Angsuman Chakraborty

OpenFire Admin Console Bind SettingsOpenfire (Jabber/XMPP server) by default binds on port 8080 which is also used by Tomcat. This causes Tomcat to fail when openfire is started before it. The solution, as always, is simple.

You can either change the port of Openfire or Tomcat. Alternatively you can bind them on different IP addresses in machines with multiple interfaces or use 127.0.0.1 for one and the IP address associated with the ethernet card for another. Here are the steps to change the port (simplest solution):

How to change Openfire default http port (8080)

1. To configure openfire browse to http://localhost:9090/.

2. Login with the password you had previously provided.
Note: Look here to recover openfire admin password.

3. Click on Http Binding to either disable it or use a different port like 7070.

4. Now stop and start openfire (openfire/bin/openfire stop && openfire/bin/openfire start) to use the new port.

How to change Tomcat default port (8080)

1. Open server.xml and search for a line starting with: <Connector port="8080" maxHttpHeaderSize=…

2. Change the port value (default 8080) to a port number of your choice

3. Restart tomcat (/sbin/service tomcat5 restart).

I prefer changing the port of Openfire.

Notes:
1. Tomcat is reference implementation of Servlet & JSP specification and is one of the most popular JSP & Servlet container
2. Openfire is a popular Jabber (XMPP protocol) server (Openfire usage notes).


Filed under Enterprise Software, Headline News, How To, J2EE, JSP, Jabber, Java Software, Linux, Linux Migration, Open Source Software, Programming, Tomcat, Web, Web Services | | RSS 2.0 | Trackback this Article | Email this Article

You may also like to read

»How To Connect To OpenFire XMPP Server From Gaim / Pidgin
»JSP / Servlet - PHP Integration Options
»How To Recover Openfire admin Password
»Eclipse 3.1 + Tomcat 5.5 Integration Solution
»Tomcat 5.5 with Apache 2.0 Integration in 5 Simple Steps
»Mystery of Vanishing Sysdeo Tomcat Plugin for Eclipse
»Simple Hack To Protect SSH Against Brute-Force Hacking Attempts
»How To Forward Local Host & Port via SSH Client To Remote SSH Server
»What Java Needs Most To Be The Preferred Web 2.0 Language
»Ghost DNS Lookup Puzzle on NIS Clients
»How To: Server Socket Hijacking in Java
»How To Register / Resolve Your Domain Name Servers
»Java Firewall Project
»How to run javac 1.5 (or beyond) compiler for JSP compilation in Tomcat 5.5 with generics enabled (and other Java 1.5 only features like autoboxing)
»J2EE Performance Improvement 3X on Linux

No Responses to “How To Resolve Tomcat - Openfire Port Conflict”

  1. Brian Says:

    Openfire may still conflict with tomcat after disabling/moving the administration console. ..to continue the above fix:

    Click on “http binding” under “server settings”
    Either disable or move the http / https ports for http binding.

    ..This affects both 8080 and 8483, which may both conflict with tomcat.

Looking forward to hear your thoughts.



Please enter the code shown below ( to verify that you are human ) before you click Submit Comment.

No. 1 method to ethically increase your blog traffic and reach.

Translate

Translate to EnglishÜbersetzen Sie zum Deutsch/GermanPřeložit do Čech/CzechOversætte hen til Dansk/DanishKääntää jotta Finnish/FinnishLefordít -hoz Magyar/HungarianÞýða til Íslenska/IcelandicTraducir a Latinoamericano Español/Latin American Spanishtagapagsalin sa Filipino/FilipinoTłumaczyć wobec Polski/PolishA traduce la spre Român/RomanianPrevesti za Srpski/Serbiantolmačiti v slovenski/SlovenianÖversätta till Svensk/SwedishChyfieitha at Cymraeg/Welshtercüme etmek -e doğru Türk/TurkishPrevesti to Hrvatski/CroatianПревеждам към Българин/BulgarianTraduzca al Español/SpanishTraduisez au Français/FrenchTraduca ad Italiano/ItalianTraduza ao Português/Portuguese日本語に翻訳しなさい /Japanese한국어에게 번역하십시오/Korean中文翻译/Chinese Simplifiedترجمة الى العربية/ArabicVertaal aan het Nederlands/DutchΜεταφράστε στα ελληνικά/GreekПереведите к русскому/RussianOversetter til Norsk/Norwegian中文翻译/Chinese TraditionalTraduzir a Língua portuguesa brasileira/Brazilian PortugueseReddo ut Latin/Latin

Taragana Network

»Ctrl-S
»Enterprise Blog
»Free Book on Eye Care by Natural Therapy
»Health Care Blog
»Hot Computer Jobs Blog
»Pet Care & Grooming News and Tips
»Phil Law Blog
»Taragana - Software Outsourcing
»The Angsuman Chakraborty Blog
»The Diabetes Cure Blog
»The Eye Treatment Blog
»The Stem Cell Blog
»Weblog Hosting Blog
"The only thing that interferes with my learning is my education." - Albert Einstein