Search code examples
eclipsetomcateclipse-plugin

How to change port of tomcat from eclipse's tomcat plugin


I am using Eclipse Kepler and EclipseTotale's tomcat plugin. I am using Oracle XE at port 8080, and want to run Tomcat at port 9090. I have changed server.xml and changed the port at this line :

 <Connector connectionTimeout="20000" port="9090" protocol="HTTP/1.1" 
redirectPort="8443"/>

It still says the address is already in use. Also, I am a little skeptical as to whether changing server.xml will have any effect as I have selected Context Decalration Mode to be Context Files instead of server.xml

Any suggestions ?


Solution

  • It worked after changing server.xml in tomcat's home directory. The problem was that there were multiple instances of tomcat that were running. I changed the ports of other connectors too.. that may also have had an effect, though I am not sure.