Netbeans 7.3 + Apache Tomcat 7.0.39:HttpMonitor无法启动

时间:2013-04-23 21:18:06

标签: tomcat netbeans

我刚刚将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)

1 个答案:

答案 0 :(得分:0)

问题在于Netbeans想写信给&lt; CATALINA_HOME&gt; / lib,用于存储org-netbeans-modules-schema2beans.jar和org-netbeans-modules-web-httpmonitor.jar。

我认为这是一个netbeans错误。它应该将罐子存放在&lt; CATALINA_BASE&gt; / nblib。