从Eclipse运行时无法访问Tomcat 7 Manager应用程序 [英] Can't access Tomcat 7 Manager app when running from Eclipse

查看:168
本文介绍了从Eclipse运行时无法访问Tomcat 7 Manager应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从这里安装了Tomcat 7,我使用了 Windows服务安装程序



然而,我的旧网络应用程序工作,当我创建一个新的网络应用程序,并尝试通过 http:// localhost:8080 / WSTest / 访问它,它不工作,除非我附加索引.jsp ...



但是,最令我困扰的一件事是,即使我有一个管理员用户在conf / tomcat-users.xml:

 < user name =adminpassword =some-pwdroles =admin- gui,manager-gui/> 

奇怪的是,在我安装了Tomcat 7之后,即使Tomcat 6中的经理应用程序也不会工作



它只是显示没有内容的空白白页,甚至不要求我的凭据或任何东西。



任何人都知道这里发生了什么?



谢谢!



编辑:似乎这是一个Firefox问题,因为我可以访问Chrome上的经理应用程序。



但是,一旦我连接Eclipse并从eclipse启动Tomcat,经理应用程序再次破碎,甚至在Chrome上。这里有一个Eclipse问题。我将ROOT文件夹从Tomcat复制到Eclipse 根据建议,我甚至复制了管理员文件夹以及示例和文档文件夹。



当我在eclipse中运行我的测试网络应用程序时,我可以看到 http:// localhost:8080 / WSTest / 正确。我也可以正确地看到Tomcat主页 http:// localhost:8080 / 。但是,我无法访问Manager App http:// localhost:8080 / manager / html ,如下所示:请求的资源不可用。 em>



如果我在Eclipse中停止Tomcat并启动Windows服务,那么我可以访问Manager应用程序,但它不会显示我的测试网络应用程序列表。

解决方案

显然问题是我的Firefox安装。在使用Chrome,Safari,Opera甚至IE完成所有选项并进行测试后,所有这些都正常运行,我决定卸载Firefox,删除所有配置文件设置,然后重新安装。 新的安装工作。



p.s。提示:如果您完全卸载Firefox,不要忘记备份您的书签和密码并保存您的附加组件列表;)
书签可以直接从Firefox备份
密码可以存储附加一个称为密​​码出口商
附加组件的附件我以屏幕截图保存:D


I installed Tomcat 7 from here and I used the Windows Service Installer.

However, none of my old web-apps work, when I create a new web-app and try access it via http://localhost:8080/WSTest/ it doesn't work unless I append index.jsp...

But, the one thing that bothers me the most is that I can not open the manager app even though I have an admin user defined in conf/tomcat-users.xml:

<user name="admin" password="some-pwd" roles="admin-gui,manager-gui" />

The weird thing is that after I installed Tomcat 7 even the manager app in Tomcat 6 would not work anymore.

It simply shows the blank white page with no content, never even asks me for credentials or anything.

Anyone knows what is going on here?

Thanks!

edit: It seems that this is a Firefox issue since I was able to access the manager app on Chrome.

However, once I connected Eclipse and started Tomcat from eclipse, the manager app was again broken, even on Chrome. There is an Eclipse issue here. I did copy the ROOT folder from Tomcat to Eclipse as suggested here and I even copied the manager folder as well as examples and docs folders.

When I run my test web-app in eclipse, I can see it at http://localhost:8080/WSTest/ properly. I can also see the Tomcat home page http://localhost:8080/ properly. But, I can not access the Manager App http://localhost:8080/manager/html as it says: "The requested resource is not available."

If I stop Tomcat in Eclipse and start the Windows Service, then I can access the Manager App, but it doesn't show my test web-app in the list.

解决方案

Apparently the problem was with my Firefox installation. After exhausting all options and testing with Chrome, Safari, Opera and even IE, which all worked properly, I decided to uninstall Firefox with removing all profile settings and then re-install it again. The new installation works.

p.s. HINT: if you are uninstalling Firefox completely, don't forget to backup your bookmarks and passwords and save the list of your add-ons ;) bookmarks can be backed up directly from Firefox passwords can be stored with an add-on called Password Exporter add-ons I "save" with a screenshot :D

这篇关于从Eclipse运行时无法访问Tomcat 7 Manager应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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