title: Tomcat v9.0 Server at localhost [Started,Synchronized] but the eclipse browser is not opening
body: <ol>
  <li>I have installed Eclipse <strong>Oxygen</strong> ( Version: Oxygen Release Milestone 6<br>
  (4.7.0 M6))</li>
  <li><p>I have installed Apache Tomcat v9.0 .  </p></li>
  <li><p>I have installed java jdk and jre1.8.0_131 and have set classpath.</p></li>
  </ol>
  
  <p>First I installed <strong>JST Adapters and Extensions</strong> then I was able to add Apache Tomcat server.</p>
  
  <p>The server says started synchronized but doesn't open Eclipse browser.<a href="https://i.stack.imgur.com/K1OWa.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/K1OWa.jpg" alt="enter image description here"></a></p>
  
  <p>When I again click on the green run button it says the following:</p>
  
  <blockquote>
    <p>Several ports (8005, 8080, 8009) required by Tomcat v9.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).</p>
  </blockquote>
  
  <p>My Tomcat server is running as shown:
  <a href="https://i.stack.imgur.com/lpqhZ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lpqhZ.jpg" alt="enter image description here"></a></p>
  
  <p>I added Apache Tomcat v9.0 by <strong>Window->Preferences->Server->Runtime Environments</strong> then clicked on <strong>Add</strong> then selected <strong>Apache Tomcat v9.0</strong> then clicked <strong>Next</strong> then browsed the path to <strong>C:\Program Files\Apache Software Foundation\Tomcat 9.0</strong> and selected <strong>jre1.8.0_131</strong> then clicked on <strong>finish</strong><a href="https://i.stack.imgur.com/6YGgj.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6YGgj.jpg" alt="enter image description here"></a></p>
  
  <p>I also tried to change port numbers previously but it didn't help.
  Then following an answer on stackoverflow I did the following :
  i clicked on <strong>Window->Show View->Other->Server->Servers</strong> then clicked <strong>OK</strong>
  Then <strong>servers</strong> Tab appeared .I opened <strong>Tomcat v9.0 Server at localhost</strong> .
  Then I opened <strong>Open launch configuration</strong> ,then selected <strong>tomcat-juli.jar</strong> from Tomcat's <strong>bin</strong> folder and clicked <strong>OK</strong>.
  <a href="https://i.stack.imgur.com/9crur.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9crur.jpg" alt="enter image description here"></a></p>
  
  <p>When I run server this appears in console tab:</p>
  
  <pre><code>May 15, 2017 2:51:05 AM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Server version:        Apache Tomcat/9.0.0.M21
  May 15, 2017 2:51:05 AM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Server built:          May 4 2017 22:42:36 UTC
  May 15, 2017 2:51:05 AM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Server number:         9.0.0.0
  May 15, 2017 2:51:05 AM org.apache.catalina.startup.VersionLoggerListener log
  INFO: OS Name:               Windows 10
  May 15, 2017 2:51:05 AM org.apache.catalina.startup.VersionLoggerListener log
  INFO: OS Version:            10.0
  May 15, 2017 2:51:05 AM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Architecture:          amd64
  May 15, 2017 2:51:05 AM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Java Home:             C:\Program Files\Java\jre1.8.0_131
  May 15, 2017 2:51:05 AM org.apache.catalina.startup.VersionLoggerListener log
  INFO: JVM Version:           1.8.0_131-b11
  May 15, 2017 2:51:05 AM org.apache.catalina.startup.VersionLoggerListener log
  INFO: JVM Vendor:            Oracle Corporation
  May 15, 2017 2:51:05 AM org.apache.catalina.startup.VersionLoggerListener log
  INFO: CATALINA_BASE:         C:\Users\aakri\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
  May 15, 2017 2:51:05 AM org.apache.catalina.startup.VersionLoggerListener log
  INFO: CATALINA_HOME:         C:\Program Files\Apache Software Foundation\Tomcat 9.0
  May 15, 2017 2:51:05 AM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Command line argument: -Dcatalina.base=C:\Users\aakri\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
  May 15, 2017 2:51:05 AM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Command line argument: -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 9.0
  May 15, 2017 2:51:05 AM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Command line argument: -Dwtp.deploy=C:\Users\aakri\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
  May 15, 2017 2:51:05 AM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Command line argument: -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 9.0\endorsed
  May 15, 2017 2:51:05 AM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Command line argument: -Dfile.encoding=Cp1252
  May 15, 2017 2:51:05 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
  INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:\Program Files\Java\jre1.8.0_131\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jre1.8.0_131/bin/server;C:/Program Files/Java/jre1.8.0_131/bin;C:/Program Files/Java/jre1.8.0_131/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Java\jdk1.8.0_131\bin;C:\eclipse;;.]
  May 15, 2017 2:51:05 AM org.apache.coyote.AbstractProtocol init
  INFO: Initializing ProtocolHandler ["http-nio-8080"]
  May 15, 2017 2:51:05 AM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
  INFO: Using a shared selector for servlet write/read
  May 15, 2017 2:51:05 AM org.apache.coyote.AbstractProtocol init
  INFO: Initializing ProtocolHandler ["ajp-nio-8009"]
  May 15, 2017 2:51:05 AM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
  INFO: Using a shared selector for servlet write/read
  May 15, 2017 2:51:05 AM org.apache.catalina.startup.Catalina load
  INFO: Initialization processed in 1339 ms
  May 15, 2017 2:51:05 AM org.apache.catalina.core.StandardService startInternal
  INFO: Starting service [Catalina]
  May 15, 2017 2:51:05 AM org.apache.catalina.core.StandardEngine startInternal
  INFO: Starting Servlet Engine: Apache Tomcat/9.0.0.M21
  May 15, 2017 2:51:06 AM org.apache.coyote.AbstractProtocol start
  INFO: Starting ProtocolHandler ["http-nio-8080"]
  May 15, 2017 2:51:06 AM org.apache.coyote.AbstractProtocol start
  INFO: Starting ProtocolHandler ["ajp-nio-8009"]
  May 15, 2017 2:51:06 AM org.apache.catalina.startup.Catalina start
  INFO: Server startup in 951 ms
  </code></pre>
  
  <p>edit:
  i tried to reach <a href="http://localhost:8080/UserHome" rel="nofollow noreferrer">http://localhost:8080/UserHome</a>:<a href="https://i.stack.imgur.com/4h4RH.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4h4RH.jpg" alt="enter image description here"></a></p>
  
  <p>edit 2:I could not <strong>deploy assembly</strong> of the <strong>jar files</strong> and <strong>servlet api</strong> using the above mentioned versions of eclipse so I changed eclipse current version to Version: <strong>Oxygen Release Milestone 5 (4.7.0 M5)</strong> also i changed the tomcat v9 to <strong>v8.5</strong>.<strong>Then successfully assembly was deployed and now both are running fine.</strong> </p>