java Tomcat 服务器正在启动,但打开它时只显示空白页
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/30457320/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-11-02 17:09:17 来源:igfitidea点击:
Tomcat server is getting started but displaying only blank page when I open it
提问by Arpit Agrawal
I am not using any IDE with servlets.
Tomcat server is getting started but when I open it, it only displays a blank page and nothing else.
我没有使用任何带有 servlet 的 IDE。
Tomcat 服务器正在启动,但是当我打开它时,它只显示一个空白页面,没有其他任何内容。
采纳答案by RPresle
Several check have to be done:
需要做几项检查:
- ${TOMCAT_HOME}/webapps/ROOT is not empty
- ${TOMCAT_HOME}/logs/ must be checked. If any error is present, it has to be corrected.
- Check the content of the blank page. If there is any code then it is probably coming from a bug in the building process of your jsp.
- ${TOMCAT_HOME}/webapps/ROOT 不为空
- 必须检查 ${TOMCAT_HOME}/logs/。如果存在任何错误,则必须更正。
- 检查空白页的内容。如果有任何代码,那么它可能来自您的 jsp 构建过程中的错误。
If the error is on Linux please refer to this thread.
如果错误是在 Linux 上,请参阅此线程。