InteliJ 10 + Tomcat 7:无法访问localhost:8080 / manager / status [英] InteliJ 10 + Tomcat 7: Unable to access localhost:8080/manager/status

查看:295
本文介绍了InteliJ 10 + Tomcat 7:无法访问localhost:8080 / manager / status的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前有一个InteliJ10 + Tomcat 7 + Hibernate + Oracle的设置。我通常通过InteliJ和调试器进行开发和测试。

Currently have a setup of InteliJ10 + Tomcat 7 + Hibernate + Oracle. I normally do my development and testing through InteliJ and the debugger.

我正在尝试导航到 http:// localhost:8080 / manager / status

但是,我收到错误消息:401 Unauthorized。我按照页面上的说明去解决创建manager-gui角色的问题。我已经尝试按照指示将其添加到conf / tmocat-users.xml文件中,并尝试再次在调试中运行我的应用程序。

However, I'm getting the error message: 401 Unauthorized. I followed the instructions on the page and went to resolve the issue of creating a role of "manager-gui". I've tried adding this to the conf/tmocat-users.xml file as instructed and tried to once again run my application in debug.

但是,我仍然无法访问该页面。在InteliJ中查看我的Tomcat日志输出我看到以下内容:

However, I still cannot access the page. Looking at my Tomcat Log Output in InteliJ I'm seeing the following:

org.apache.catalina.realm.JAASRealm authenticate
SEVER: Unexpected error
java.lang.SecurityException: Unable to locate a login configuration
...

现在我想这意味着我需要为我的vm参数添加一些参数,以便在调试时启动服务器或进入我的调试环境变量并在那里添加一些内容来附加JAVA_OPTS &安培;&安培; CATALINA_OPTS。

Now I'd imagine this means I need to add some arguments to either my vm parameters for when I start up the server in debug OR go into my Debug Environment Variables and add something there to append JAVA_OPTS && CATALINA_OPTS.

问题在哪里?任何帮助都会很棒。

The question is where? Any help would be great.

推荐答案

请注意,IDEA会在%SYSTEM% \ Tomcat \%CONFIGURATION%\ conf 目录。

Please note that IDEA makes a copy of your Tomcat configuration under %SYSTEM%\Tomcat\%CONFIGURATION%\conf directory.

您需要在对原始Tomcat配置进行更改后重新启动服务器,修改后的 tomcat-users.xml 副本应该重新启动后,在临时 CATALINA_BASE 目录中可用。

You need to restart the server after making the changes to the original Tomcat configuration, modified tomcat-users.xml copy should be available in the temp CATALINA_BASE directory after restart.

我已经确认它工作正常。要检查的另一件事是没有注释带有< user ... 的行。使用一些带有语法突出显示的编辑器,以确保您的用户在注释块之外定义:

I've verified that it works fine. Another thing to check is that the line with <user... is not commented. Use some editor with the syntax highlighting to ensure that your user is defined outside of the comment block:

这篇关于InteliJ 10 + Tomcat 7:无法访问localhost:8080 / manager / status的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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