简体   繁体   English

完成多个故障排除步骤后,无法登录到Tomcat 8管理器

[英]Can't login to Tomcat 8 manager after multiple troubleshooting steps were made

I'm facing an apparently common issue: I can't manage to login in a recently installed Apache Tomcat 8. 我面临一个明显的常见问题:我无法登录最近安装的Apache Tomcat 8。

The Tomcat installation is part of a large system comprised of a database and other apps and it's not the first time I've installed it just as it isn't the first time I faced this problem. Tomcat安装是包含数据库和其他应用程序的大型系统的一部分,这不是我第一次安装它,因为这不是我第一次遇到此问题。 Being so, I did all the steps that helped me fix the problem the other times based on countless pages I found on the web and here on SO about this problem: 这样的话,我基于在网络上找到的关于此问题的无数页面,做了所有其他步骤可帮助解决该问题的步骤:

  1. Accessed the user XML file and gave all permissions , especially manager-gui, to my created login with no empty spaces between commas 访问用户XML文件,并为我创建的登录名授予所有权限 (尤其是manager-gui),逗号之间没有空格
  2. Changes in the XML file were proceeded by closing it in Notepad++ to avoid app locking the file 通过在Notepad ++中关闭XML文件来进行更改,以避免应用程序锁定文件
  3. Changes in the user XML file were preceded by shutting down the service in Windows Services and turning it up again after changes were made 在用户XML文件中进行更改之前,先关闭Windows Services中的服务,然后在进行更改后再次将其打开
  4. Login and password were set and changed multiple times to be sure it wasn't any kind of mistyped information 登录名和密码已多次设置和更改,以确保它不是任何类型错误的信息
  5. The access port in server.xml was changed to more than one different option to be sure there wasn't any port conflict with another app (unlikely since the Windows Server running the app is practically clean) server.xml中的访问端口已更改为多个选项,以确保与另一个应用程序没有任何端口冲突(这不太可能,因为运行该应用程序的Windows Server实际上是干净的)
  6. The read permissions of the user XML file were checked and are in place. 用户XML文件的读取权限已检查并就位。
  7. And of course, I reinstalled it at least once. 当然,我至少重新安装了一次。

And maybe more troubleshooting steps I can't remember right now. 也许还有更多我现在不记得的故障排除步骤。 And none of this worked. 而且这些都不起作用。

So I'm asking: which other steps could I do to try to access the Tomcat Manager (localhost:port/manager) from a web browser (Chrome/Firefox) from within the same machine it is installed? 所以我想问:我可以采取其他哪些步骤来尝试从Web浏览器(Chrome / Firefox)在安装的同一台计算机上访问Tomcat管理器(localhost:port / manager)? (no NetBeans involved) I can't think of any other solution. (不涉及NetBeans)我想不出任何其他解决方案。

Well I finally managed to access the manager after appealing to the last resort I had forgot to do: copy and paste of the entire conf folder from a Tomcat which was working to the one having the problem and even so it didn't work by itself, since I still had to change the port from 8080 to 8088 for it to finally work. 好吧,在诉诸于我忘记做的最后一件事之后,我终于设法访问了该经理:从Tomcat复制并粘贴整个conf文件夹,直到有问题的Tomcat仍然可以正常工作,因为我仍然必须将端口从8080更改为8088才能正常工作。 It seems, therefore, it was a "binary problem": the port wasn't adequate plus differneces in configuration. 因此,这似乎是一个“二进制问题”:端口不够用,加上配置上的差异。 Comparing the files, I managed to find small differences for example in the web.xml files: 比较文件后,我设法在web.xml文件中找到了一些小差异:

*Current, working*
<mime-mapping>
    <extension>woff</extension>
    <mime-type>application/x-font-woff</mime-type>
</mime-mapping>

*Previously, not working*
<mime-mapping>
    <extension>woff</extension>
    <mime-type>font/woff</mime-type>
</mime-mapping>
<mime-mapping>
    <extension>woff2</extension>
    <mime-type>font/woff2</mime-type>
</mime-mapping>

I can't understand why changes such as this one made any difference, but at least it's working. 我不明白为什么这样的更改会产生任何不同,但至少可以奏效。 Thanks for the help. 谢谢您的帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM