title: Jenkins login issue with Tomcat server "Invalid login information. Please try again"
body: <p>I set up the <code>Jenkins</code> in my Windows machine (OS-Windows 10). I completed the setup and run the Jenkins and tested in the browser by hitting the <code>http://localhost:8080</code> (As the default port is 8080). So the standalone instance of Jenkins works fine with port number 8080. But when I try it with Tomcat server, I'm unable to login itself. Though It launches the Jenkins login page. Below is how I have tried so far- </p>
  
  <p>1) I installed Jenkins and tested in the browser with <code>http://localhost:8080</code>. It runs fine. I can login with the default admin credentials.</p>
  
  <p>2) I shutdown the Jenkins service by running the command <code>jenkins.exe stop</code>. Since <code>Tomcat</code> server does also run on the same port.</p>
  
  <p><a href="https://i.stack.imgur.com/cMY4F.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cMY4F.jpg" alt="enter image description here"></a></p>
  
  <p>3) I installed <code>Tomcat</code> and hits the url <code>http://localhost:8080</code>. I can see the server's home screen.</p>
  
  <p>4) I copied the <code>jenkins.war</code> file from the directory <code>C:\Program Files (x86)\Jenkins</code> and deployed in <code>webapp</code> folder of <code>Tomcat</code> server. It says that <code>Jenkins</code> is up and running.</p>
  
  <p><a href="https://i.stack.imgur.com/bBFBg.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bBFBg.jpg" alt="enter image description here"></a></p>
  
  <p>5) Now in the browser, when I hit the url <code>http://localhost:8080/jenkins</code>, I can see the Jenkins's login screen. I entered the same credential which were provided by Jenkins only(The default credentials- <code>Username:admin</code> and <code>Password:fcb77f29d0e34cabab385b74709e5f3c</code> from the file <code>initialAdminPassword</code>).</p>
  
  <p><a href="https://i.stack.imgur.com/o9L9o.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/o9L9o.jpg" alt="enter image description here"></a></p>
  
  <p>Now my query comes here. I can see the Jenkins login screen in both the cases (Jenkins Standalone instance and Jenkins with Tomcat). I enter the above credentials in both the cases, but the default credentials work with Jenkins Standalone only not with Tomcat.</p>
  
  <p><a href="https://i.stack.imgur.com/8KQZW.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8KQZW.jpg" alt="enter image description here"></a></p>
  
  <p>What am I missing or what am I not aware of?</p>