Tomcat在linux服务器上启动但无法访问java应用程序URL,而是显示了tomcat启动页面 [英] Tomcat started in linux server but unable to access the java application url , instead showing up tomcat splash page

查看:573
本文介绍了Tomcat在linux服务器上启动但无法访问java应用程序URL,而是显示了tomcat启动页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个java应用程序是用java 5开发的。作为升级的一部分,我们将它转​​换为java 8应用程序(为了实现这一点,我做了一个与java 8兼容的ANT构建并创建了一个war文件)。我将此war文件粘贴到tomcat 8.5的webapps文件夹中,该文件夹存在于linux 3.10服务器中。 Tomcat成功启动,战争文件被分解成文件夹。但是当我尝试访问应用程序URL时,它正在显示Tomcat启动页面。我无法看到申请登录/欢迎页面。



有谁可以帮我这个?



我尝试过:



我尝试了本网站的建议:href =https://wiki.apache。 org / tomcat / HowTo#How_do_I_override_the_default_home_page_loaded_by_Tomcat.3F

但是没有运气!

There is a java application which was developed in java 5. As part of upgradation we are converting this to java 8 application( to achieve this, I did an ANT build which is compatible to java 8 and created a war file). I pasted this war file to the webapps folder of tomcat 8.5 which is present in a linux 3.10 server. Tomcat was successfully started and the war files were exploded into folder. But when I am trying to access the application URL , it is displaying the Tomcat splash page. I am not able to see the application login/welcome page.

Could anyone help me on this?

What I have tried:

I tried whatever is suggested in this website : href="https://wiki.apache.org/tomcat/HowTo#How_do_I_override_the_default_home_page_loaded_by_Tomcat.3F
But no luck!

推荐答案

在启动tomcat之前确保没有其他应用程序使用端口8080。如果那不是问题,请粘贴tomcat日志。



如果要更改tomcat的默认端口,请转到tomcat文件夹并打开conf文件夹,在其中可以看到服务器.xml。在该文件中,您可以看到类似< Connector port =。更改端口值并启动tomcat。
Make sure no other application using port 8080 before starting tomcat. If that's not the problem please paste tomcat log.

If you want to change tomcat's default port, go to tomcat folder and open conf folder, in which you can see server.xml. In that file you can see something like <Connector port= . Change the port value and start tomcat.


这篇关于Tomcat在linux服务器上启动但无法访问java应用程序URL,而是显示了tomcat启动页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆