我刚刚将 Tomcat 7.0.39 添加到我的(Windows)系统中。创建了一个 catalina_base 目录并用文件填充它。然后在 netbeans 中配置服务器,将其指向正确的 catalina_home 和 catalina_base 目录。Netbeans 可以正常启动服务器,但无法启用 HttpMonitor。当我尝试启动 tomcat 时,选中“启用 Http Monitor”会导致以下错误。
Tomcat 7.0.27 工作正常,配置看起来一样,权限看起来一样。
NetBeans: Deploying on Apache Tomcat 7.0.39
profile mode: false
debug mode: false
force redeploy: true
Operation failed, error occurred when setting up the HTTP Monitor support. The HTTP Monitor has been disabled, you can try to restart the operation now. If you would like to enable the HTTP Monitor again, make sure you have write permissions to <CATALINA_BASE>/conf/web.xml file and <CATALINA_HOME>/lib directory and check the "Enable HTTP Monitor" checkbox in the Tomcat properties.
Deployment error: Operation failed, error occurred when setting up the HTTP Monitor support. The HTTP Monitor has been disabled, you can try to restart the operation now. If you would like to enable the HTTP Monitor again, make sure you have write permissions to <CATALINA_BASE>/conf/web.xml file and <CATALINA_HOME>/lib directory and check the "Enable HTTP Monitor" checkbox in the Tomcat properties.
See the server log for details.
at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:230)
at org.netbeans.modules.maven.j2ee.ExecutionChecker.performDeploy(ExecutionChecker.java:178)
at org.netbeans.modules.maven.j2ee.ExecutionChecker.executionResult(ExecutionChecker.java:130)
at org.netbeans.modules.maven.execute.MavenCommandLineExecutor.run(MavenCommandLineExecutor.java:212)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)