Tomcat: Setting port in server.xml does not work

Viewed 28

I've been running a web app on Eclipse/IntelliJ via Tomcat with the server instance set to port 8080. Running the app using the .war file via startup.bat is running it on 8095 instead (by default). However, I want the .war to run on 8080 as well.

I went to conf/server.xml and changed the Connector to port 8080. However, now the app doesn't run - it hangs on making a request to the localhost and never manages to make it.

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

Could someone with more experience in web apps suggest what might be blocking it from running on 8080 from the war file?

0 Answers
Related