SHIFT

--- Sjoerd Hooft's InFormation Technology ---

User Tools

Site Tools


Sidebar

Recently Changed Pages:

View All Pages


View All Tags


LinkedIn




WIKI Disclaimer: As with most other things on the Internet, the content on this wiki is not supported. It was contributed by me and is published “as is”. It has worked for me, and might work for you.
Also note that any view or statement expressed anywhere on this site are strictly mine and not the opinions or views of my employer.


Pages with comments

View All Comments

tomcatdata

Tomcat Data

Tomcat Users

Tomcat users are defined in the tomcat-users.xml, which is located in the TOMCAT_HOME/conf directory:

  • cat tomcat-users.xml
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
  <role rolename="tomcat"/>
  <role rolename="manager"/>
  <user username="admin" password="password" roles="tomcat,manager"/>
</tomcat-users>

Tomcat Version

Check the TOMCAT_HOME/logs/catalina.out logfile for the section below:

  • less catalina.out
May 27, 2009 10:01:42 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
May 27, 2009 10:01:42 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 742 ms
May 27, 2009 10:01:42 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
May 27, 2009 10:01:42 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.26
May 27, 2009 10:01:42 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
May 27, 2009 10:03:00 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
May 27, 2009 10:03:01 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
May 27, 2009 10:03:01 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 79086 ms

You can see the version is 5.5.26

Tomcat Ports

Ports are configured in the TOMCAT_HOME/conf/server.xml file:

  • less server.xml
<!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
    <Connector port="8080" maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" redirectPort="8443" acceptCount="100"
               connectionTimeout="20000" disableUploadTimeout="true" />
You could leave a comment if you were logged in.
tomcatdata.txt · Last modified: 2021/09/24 00:25 (external edit)