Addendum :
On 27.08.2019 15:23, André Warnier (tomcat) wrote:
On 27.08.2019 14:05, Patrick Heinen wrote:
Hi everyone,
In our Apache Tomcat 8.5.31 installation, Tomcat8.exe ist listening on TCP port
12345,
and we need to change this to a different port number.
Unfortunatley, we cannot find a way to change this since it is not specified in
server.xml or Java options. Does anybody know how this port can be changed?
For full details (server.xml etc.) see:
https://serverfault.com/questions/980452/how-change-tomcat8-exe-listening-port-0-0-0-012345-to-a-different-port
Short version : run tomcat8w.exe, and examine the various tabs to see if you
find your
port 12345 somewhere there (maybe the JVM is listening for JMX or so).
Otherwise, it must
be (also) an application which tomcat is running, which opens its own port
12345).
Long version : read
https://cwiki.apache.org/confluence/display/TOMCAT/Windows#Windows-Q11
to find out what tomcat8.exe and tomcat8w.exe really are.
short version of the long version :
server.xml shows the ports on which /tomcat itself/ is listening.
But tomcat8.exe is not "tomcat". It is a wrapper program, which runs the JVM
which runs
tomcat, which runs applications. The JVM itself, and the applications, may open
ports,
without tomcat even knowing about them.
Let us know if that helps.
If you need to go dow to the tomcat applications level :
Under the tomcat top directory, there is a sub-directory "webapps" containing the
applications that run under tomcat. Each of those webapps corresponds to a sub -directory
of tomcat-dir/webapps/.
Under each of these sub-directories, there should be a sub-directory named "WEB-INF",
which contains a file "web.xml" specific to this application. If the application opens any
TCP port by itself, chances are that it is mentioned as a parameter in that web.xml file.
Another good source may be the tomcat logfiles, at the moment tomcat starts.
The logfile usually contains messages indicating when tomcat opens ports and/or starts
applications, and the applications themselves may also write there when they open a port.
(That depends of course on the application, and how helpful its logging is).
Good luck.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org