tomcat启动后,http://localhost:8080无法正常显示
来源:互联网 发布:名片app软件 编辑:程序博客网 时间:2024/05/16 10:52
问题描述:在java中可以成功启动tomcat,且正常显示项目内容,但在网页中输入http://localhost:8080无法正常显示。
以下是http://localhost:8080正常显示的页面
原因
eclipse将tomcat的项目发布目录重定向了,导致无法正常访问。同时在tomcat安装目录下的webapp目录里面找不到我的项目文件。
解决方法:
1、双击eclipse中的server,可以看到下面的编辑界面。
可以看到,我们默认选择的是Use workspace metadata(does not modify)Tomcat installation,我们需要将选项改为第二个Use Tomcat installation(takes control of Tomcat installation)但是此时是灰色,无法修改。我们需要将里面的项目全部移除才能编辑。
2、选中server,右击,打开add and remove界面
3、选择右边的项目点击Remove,将所有项目移除之后点击finish。
此时我们可以看到刚刚的界面已经可以编辑了。
4、将Server Locations选择为第二个,Use Tomcat installation(takes control of Tomcat installation),同时将Deploy path改为webapps,也就是tomcat的安装目录作为默认的项目发布目录。
5、修改后关闭页面,重启tomcat服务,http://localhost:8080就能正常访问了。
1 0
- tomcat启动后,http://localhost:8080无法正常显示
- tomcat正常启动后http://localhost:8080/报错404
- tomcat正常启动后http://localhost:8080/报错404
- tomcat正常启动后http://localhost:8080/报错404
- tomcat正常启动后http://localhost:8080/报错404
- 下载tomcat9并正常启动后,浏览器无法显示localhost:8080对应网页
- 在Galileo Eclipse中启动Tomcat后,http://localhost:8080/无法访问,但是独立启动Tomcat却完全正常的解决办法
- tomcat启动正常,但无法访问http://localhost:8080
- tomcat启动正常,http://localhost:8080访问不了
- tomcat能正常启动,但是不能访问http://localhost:8080
- tomcat可以正常启动,但是输入localhost无法正常显示的问题解决
- 启动tomcat和myeclipse后,http://localhost:8080无法访问
- 在Eclipse中启动Tomcat后,http://localhost:8080/无法访问
- Eclipse中启动Tomcat后,http://localhost:8080/无法访问
- 启动tomcat后访问页面http://localhost:8080/报错
- Eclipse中启动Tomcat后,http://localhost:8080/无法访问
- Eclipse中启动Tomcat后,http://localhost:8080/无法访问
- myeclipse里tomcat启动后,输入http://localhost:8080/打不开
- Java链表之基础应用
- day60_springMVC
- NYOJ-274 正三角形外接圆面积
- 国内composer源(解决composer慢的方法)
- 基础知识—数据类型-第一个C++程序
- tomcat启动后,http://localhost:8080无法正常显示
- HDU 1867 A + B for you again(KMP)
- Spark RDD 创建
- maven下spring ClassPathXmlApplicationContext找不到xml配置文件的问题
- 算法导论(Exercise 4.1-2)
- 开通博客啦
- 侧边栏高度自适应左边内容
- 关于HttpClientGet的具体用法
- 计算机知识回顾:海明码