title: Hi. I got tomcat error HTTP status report 404 - not found
body: <p>I'm bioinformatian and  I want to install one web-based program called GNOMEX which is LIMS(Laboratory Information Management System). This is my first time to using tomcat and JAVA. So it would be really helpful if you guys help me :) ...</p>
  
  <p>It is using Tomcat 7. I set homepath for catalina. And when I can see tomcat page in localhost:8080 after I type sh <code>start.sh</code>.</p>
  
  <p>I want to access to <a href="http://www.localhost:8080/gnomex/gnomexFlex.jsp" rel="nofollow noreferrer">http://www.localhost:8080/gnomex/gnomexFlex.jsp</a>
  but I got error message.</p>
  
  <blockquote>
    <p>HTTP Status 404 – Not Found</p>
    
    <p>Type Status Report</p>
    
    <p>Message /gnomex/gnomexFlex.jsp</p>
    
    <p>Description The origin server did not find a current representation
    for the target resource or is not willing to disclose that one exists.</p>
  </blockquote>
  
  <p>what did I check</p>
  
  <ol>
  <li>I followed every step in the installation guide.</li>
  <li>I checked <code>$CATALINA_PATH</code></li>
  <li>I checked root folder is webapps in <code>server.xml</code></li>
  <li>I checked I add <code>gnomex.war</code> in webapps ( i heard this is kind of container )</li>
  <li>I checked there is a file gnomexFlex.jsp in webapps/gnomex/</li>
  </ol>
  
  <p>i don't know how to find the problems....so i looked into logs. let's see what is written. I guess there are clues.  :( please help me. I spend my week to install this, and spend another week to figure this out... thanks.</p>
  
  <pre><code>Nov 08, 2018 12:29:38 AM org.apache.catalina.startup.HostConfig deployWAR SEVERE: Error deploying web application archive /home/eunhae/apache-tomcat-7.0.91/webapps/gnomex.war java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/gnomex]]
          at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1022)
          at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:994)
          at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
          at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1127)
          at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:2021)
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          at java.lang.Thread.run(Thread.java:748)
  </code></pre>
  
  <hr>
  
  <p>logs</p>
  
  <pre><code>Nov 08, 2018 12:17:20 AM org.apache.catalina.core.StandardService initInternal
  SEVERE: Failed to initialize connector [Connector[HTTP/1.1-8080]]
  org.apache.catalina.LifecycleException: Failed to initialize component [Connector[HTTP/1.1-8080]]
          at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
          at org.apache.catalina.core.StandardService.initInternal(StandardService.java:560)
          at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
          at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:840)
          at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
          at org.apache.catalina.startup.Catalina.load(Catalina.java:654)
          at org.apache.catalina.startup.Catalina.load(Catalina.java:679)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:498)
          at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:253)
          at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:427)
  Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failed
          at org.apache.catalina.connector.Connector.initInternal(Connector.java:980)
          at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
          ... 12 more
  Caused by: java.net.BindException: Address already in use (Bind failed) &lt;null&gt;:8080
          at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:413)
          at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:728)
          at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:452)
          at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)
          at org.apache.catalina.connector.Connector.initInternal(Connector.java:978)
          ... 13 more
  Caused by: java.net.BindException: Address already in use (Bind failed)
          at java.net.PlainSocketImpl.socketBind(Native Method)
          at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
          at java.net.ServerSocket.bind(ServerSocket.java:375)
          at java.net.ServerSocket.&lt;init&gt;(ServerSocket.java:237)
          at java.net.ServerSocket.&lt;init&gt;(ServerSocket.java:181)
          at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49)
          at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:400)
  
  
  Nov 08, 2018 12:17:20 AM org.apache.coyote.AbstractProtocol init
  INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
  Nov 08, 2018 12:17:20 AM org.apache.coyote.AbstractProtocol init
  SEVERE: Failed to initialize end point associated with ProtocolHandler ["ajp-bio-8009"]
  java.net.BindException: Address already in use (Bind failed) &lt;null&gt;:8009
          at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:413)
          at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:728)
          at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:452)
          at org.apache.catalina.connector.Connector.initInternal(Connector.java:978)
          at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
          at org.apache.catalina.core.StandardService.initInternal(StandardService.java:560)
          at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
          at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:840)
          at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
          at org.apache.catalina.startup.Catalina.load(Catalina.java:654)
          at org.apache.catalina.startup.Catalina.load(Catalina.java:679)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:498)
          at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:253)
          at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:427)
  Caused by: java.net.BindException: Address already in use (Bind failed)
          at java.net.PlainSocketImpl.socketBind(Native Method)
          at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
          at java.net.ServerSocket.bind(ServerSocket.java:375)
          at java.net.ServerSocket.&lt;init&gt;(ServerSocket.java:237)
          at java.net.ServerSocket.&lt;init&gt;(ServerSocket.java:181)
          at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49)
          at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:400)
  
  Nov 08, 2018 12:17:20 AM org.apache.catalina.core.StandardEngine startInternal
  INFO: Starting Servlet Engine: Apache Tomcat/7.0.91
  Nov 08, 2018 12:17:24 AM org.apache.catalina.core.ContainerBase startInternal
  SEVERE: A child container failed during start
  java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
          at java.util.concurrent.FutureTask.report(FutureTask.java:122)
          at java.util.concurrent.FutureTask.get(FutureTask.java:192)
          at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1243)
          at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:819)
          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
          at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1707)
          at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1697)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          at java.lang.Thread.run(Thread.java:748)
  Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)
          ... 6 more
  Caused by: java.lang.NoClassDefFoundError: Lorg/apache/log4j/Logger;
          at java.lang.Class.getDeclaredFields0(Native Method)
          at java.lang.Class.privateGetDeclaredFields(Class.java:2583)
          at java.lang.Class.getDeclaredFields(Class.java:1916)
          at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:106)
          at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:270)
          at org.apache.catalina.startup.WebAnnotationSet.loadApplicationServletAnnotations(WebAnnotationSet.java:138)
          at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:70)
          at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:417)
          at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:881)
          at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:388)
          at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
          at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
          at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5566)
          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
          ... 6 more
  Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger
          at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1928)
          at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1771)
          ... 20 more
  Nov 08, 2018 12:17:24 AM org.apache.catalina.core.ContainerBase startInternal
  SEVERE: A child container failed during start
  java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
          at java.util.concurrent.FutureTask.report(FutureTask.java:122)
          at java.util.concurrent.FutureTask.get(FutureTask.java:192)
          at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1243)
          at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:300)
          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
          at org.apache.catalina.core.StandardService.startInternal(StandardService.java:444)
          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
          at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:758)
          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
          at org.apache.catalina.startup.Catalina.start(Catalina.java:705)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:498)
          at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
          at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:428)
  Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)
          at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1707)
          at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1697)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          at java.lang.Thread.run(Thread.java:748)
  Caused by: org.apache.catalina.LifecycleException: A child container failed during start
          at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1254)
          at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:819)
          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
          ... 6 more
  Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
          at java.util.concurrent.FutureTask.report(FutureTask.java:122)
          at java.util.concurrent.FutureTask.get(FutureTask.java:192)
          at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1243)
          ... 8 more
  Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)
          ... 6 more
  Caused by: java.lang.NoClassDefFoundError: Lorg/apache/log4j/Logger;
          at java.lang.Class.getDeclaredFields0(Native Method)
          at java.lang.Class.privateGetDeclaredFields(Class.java:2583)
          at java.lang.Class.getDeclaredFields(Class.java:1916)
          at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:106)
          at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:270)
          at org.apache.catalina.startup.WebAnnotationSet.loadApplicationServletAnnotations(WebAnnotationSet.java:138)
          at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:70)
          at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:417)
          at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:881)
          at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:388)
          at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
          at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
          at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5566)
          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
          ... 6 more
  Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger
          at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1928)
          at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1771)
          ... 20 more
  
  Nov 08, 2018 12:17:24 AM org.apache.coyote.AbstractProtocol pause
  INFO: Pausing ProtocolHandler ["http-bio-8080"]
  Nov 08, 2018 12:17:24 AM org.apache.coyote.AbstractProtocol pause
  INFO: Pausing ProtocolHandler ["ajp-bio-8009"]
  Nov 08, 2018 12:17:24 AM org.apache.catalina.core.StandardService stopInternal
  INFO: Stopping service Catalina
  Nov 08, 2018 12:17:24 AM org.apache.coyote.AbstractProtocol stop
  INFO: Stopping ProtocolHandler ["http-bio-8080"]
  Nov 08, 2018 12:17:24 AM org.apache.coyote.AbstractProtocol destroy
  INFO: Destroying ProtocolHandler ["http-bio-8080"]
  Nov 08, 2018 12:17:24 AM org.apache.coyote.AbstractProtocol stop
  INFO: Stopping ProtocolHandler ["ajp-bio-8009"]
  Nov 08, 2018 12:17:24 AM org.apache.coyote.AbstractProtocol destroy
  INFO: Destroying ProtocolHandler ["ajp-bio-8009"]
  Nov 08, 2018 12:17:24 AM org.apache.catalina.deploy.NamingResources cleanUp
  WARNING: Failed to retrieve JNDI naming context for container [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]] so no cleanup was performed for that container
  javax.naming.NamingException: No naming context bound to this class loader
          at org.apache.naming.ContextBindings.getClassLoader(ContextBindings.java:350)
          at org.apache.catalina.deploy.NamingResources.cleanUp(NamingResources.java:1011)
          at org.apache.catalina.deploy.NamingResources.stopInternal(NamingResources.java:994)
          at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:221)
          at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5894)
          at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:221)
          at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:259)
          at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1149)
          at org.apache.catalina.core.ContainerBase.destroyInternal(ContainerBase.java:1364)
          at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:292)
          at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1149)
          at org.apache.catalina.core.ContainerBase.destroyInternal(ContainerBase.java:1364)
          at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:292)
          at org.apache.catalina.core.StandardService.destroyInternal(StandardService.java:594)
          at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:292)
          at org.apache.catalina.core.StandardServer.destroyInternal(StandardServer.java:848)
          at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:292)
          at org.apache.catalina.startup.Catalina.start(Catalina.java:709)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:498)
          at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
          at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:428)
  </code></pre>
  
  <p>server.xml</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='utf-8'?&gt;
  &lt;!--
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
    this work for additional information regarding copyright ownership.
  
    The ASF licenses this file to You under the Apache License, Version 2.0
    (the "License"); you may not use this file except in compliance with
    the License.  You may obtain a copy of the License at
  
        http://www.apache.org/licenses/LICENSE-2.0
  
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
  --&gt;
  &lt;!-- Note:  A "Server" is not itself a "Container", so you may not
       define subcomponents such as "Valves" at this level.
       Documentation at /docs/config/server.html
   --&gt;
  &lt;Server port="8005" shutdown="SHUTDOWN"&gt;
    &lt;Listener className="org.apache.catalina.startup.VersionLoggerListener" /&gt;
    &lt;!-- Security listener. Documentation at /docs/config/listeners.html
    &lt;Listener className="org.apache.catalina.security.SecurityListener" /&gt;
    --&gt;
    &lt;!--APR library loader. Documentation at /docs/apr.html --&gt;
    &lt;Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" /&gt;
    &lt;!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html --&gt;
    &lt;Listener className="org.apache.catalina.core.JasperListener" /&gt;
    &lt;!-- Prevent memory leaks due to use of particular java/javax APIs--&gt;
    &lt;Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" /&gt;
    &lt;Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" /&gt;
    &lt;Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" /&gt;
  
    &lt;!-- Global JNDI resources
         Documentation at /docs/jndi-resources-howto.html
    --&gt;
    &lt;GlobalNamingResources&gt;
      &lt;!-- Editable user database that can also be used by
           UserDatabaseRealm to authenticate users
      --&gt;
      &lt;Resource name="UserDatabase" auth="Container"
                type="org.apache.catalina.UserDatabase"
                description="User database that can be updated and saved"
                factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
                pathname="conf/tomcat-users.xml" /&gt;
    &lt;/GlobalNamingResources&gt;
  
    &lt;!-- A "Service" is a collection of one or more "Connectors" that share
         a single "Container" Note:  A "Service" is not itself a "Container",
         so you may not define subcomponents such as "Valves" at this level.
         Documentation at /docs/config/service.html
     --&gt;
    &lt;Service name="Catalina"&gt;
  
      &lt;!--The connectors can use a shared executor, you can define one or more named thread pools--&gt;
      &lt;!--
      &lt;Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
          maxThreads="150" minSpareThreads="4"/&gt;
      --&gt;
  
  
      &lt;!-- A "Connector" represents an endpoint by which requests are received
           and responses are returned. Documentation at :
           Java HTTP Connector: /docs/config/http.html (blocking &amp; non-blocking)
           Java AJP  Connector: /docs/config/ajp.html
           APR (HTTP/AJP) Connector: /docs/apr.html
           Define a non-SSL HTTP/1.1 Connector on port 8080
      --&gt;
      &lt;Connector port="8080" protocol="HTTP/1.1"
                 connectionTimeout="20000"
                 redirectPort="8443" /&gt;
      &lt;!-- A "Connector" using the shared thread pool--&gt;
  
     &lt;Connector executor="tomcatThreadPool"
                 port="8080" protocol="HTTP/1.1"
                 connectionTimeout="20000"
                 redirectPort="8443" /&gt;
      --&gt;
      &lt;!-- Define a SSL HTTP/1.1 Connector on port 8443
           This connector uses the BIO implementation that requires the JSSE
           style configuration. When using the APR/native implementation, the
           OpenSSL style configuration is required as described in the APR/native
           documentation --&gt;
      &lt;!--
      &lt;Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol"
                 maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
                 clientAuth="false" sslProtocol="TLS" /&gt;
      --&gt;
  
      &lt;!-- Define an AJP 1.3 Connector on port 8009 --&gt;
      &lt;Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /&gt;
  
  
      &lt;!-- An Engine represents the entry point (within Catalina) that processes
           every request.  The Engine implementation for Tomcat stand alone
           analyzes the HTTP headers included with the request, and passes them
           on to the appropriate Host (virtual host).
           Documentation at /docs/config/engine.html --&gt;
  
      &lt;!-- You should set jvmRoute to support load-balancing via AJP ie :
      &lt;Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1"&gt;
      --&gt;
      &lt;Engine name="Catalina" defaultHost="localhost"&gt;
  
        &lt;!--For clustering, please take a look at documentation at:
            /docs/cluster-howto.html  (simple how to)
            /docs/config/cluster.html (reference documentation) --&gt;
        &lt;!--
        &lt;Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/&gt;
        --&gt;
  
        &lt;!-- Use the LockOutRealm to prevent attempts to guess user passwords
             via a brute-force attack --&gt;
        &lt;Realm className="org.apache.catalina.realm.LockOutRealm"&gt;
          &lt;!-- This Realm uses the UserDatabase configured in the global JNDI
               resources under the key "UserDatabase".  Any edits
               that are performed against this UserDatabase are immediately
               available for use by the Realm.  --&gt;
          &lt;Realm className="org.apache.catalina.realm.UserDatabaseRealm"
                 resourceName="UserDatabase"/&gt;
        &lt;/Realm&gt;
  
        &lt;Host name="localhost"  appBase="webapps"
                unpackWARs="true" autoDeploy="true"&gt;
  
          &lt;!-- SingleSignOn valve, share authentication between web applications
               Documentation at: /docs/config/valve.html --&gt;
          &lt;!--
          &lt;Valve className="org.apache.catalina.authenticator.SingleSignOn" /&gt;
          --&gt;
  
          &lt;!-- Access log processes all example.
               Documentation at: /docs/config/valve.html
               Note: The pattern used is equivalent to using pattern="common" --&gt;
          &lt;Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
                 prefix="localhost_access_log." suffix=".txt"
                 pattern="%h %l %u %t &amp;quot;%r&amp;quot; %s %b" /&gt;
  
        &lt;/Host&gt;
      &lt;/Engine&gt;
    &lt;/Service&gt;
  &lt;/Server&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/gY5XC.png" rel="nofollow noreferrer"></a></p>
  
  <p><a href="http://hci-bio-demo.hci.utah.edu/gnomexDocumentation/wordpress/?page_id=980" rel="nofollow noreferrer">GNOMEX installation guide</a></p>