[英]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: 这样的话,我基于在网络上找到的关于此问题的无数页面,做了所有其他步骤可帮助解决该问题的步骤:
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.