Eclipse中的Tomcat在哪里存储扩展的WAR? [英] Where does Tomcat in Eclipse store the expanded WAR?

查看:155
本文介绍了Eclipse中的Tomcat在哪里存储扩展的WAR?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我从Eclipse Indigo启动我的Web应用程序时,Tomcat 7在哪里存储Web应用程序文件夹?它不在Tomcat自己的webapp文件夹中。为什么我无法访问Tomcat的默认主页(我谈论

When I launch my web application from Eclipse Indigo, where does Tomcat 7 store web application folder? It is not located in Tomcat's own webapp folder. Why I can not access Tomcat's default home page (I talk about http://localhost:8080), if it started under Eclipse? If I start tomcat manually (thruogh the startup.bat), I can access http://localhost:8080.

解决方案

Doubleclick the Tomcat server entry in Servers view and check the Server Locations section. The path is in there and you can also configure in there if Eclipse should use the Tomcat installation instead of the workspace metadata (which is the default setting).

Note that the server must be published with no modules present to make changes. I.e. stop the server, remove all projects and publish the server.

This will also make the Tomcat homepage available.

See also:

这篇关于Eclipse中的Tomcat在哪里存储扩展的WAR?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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