0

我正在尝试根据他们的文档设置 JavaMelody 。一切都在我的开发机器上运行,但一旦部署到测试环境,我得到“404 Not Found。请求的 URL /monitoring 在此服务器上找不到。”

我在本地机器上访问 JavaMelody http://localhost:8080/monitoring,并在测试中访问http://myapp/monitoring。myapp 是 Tomcat 上的 ROOT 应用程序。

这是 web.xml 文件的相关摘录

<filter>
    <filter-name>monitoring</filter-name>
    <filter-class>net.bull.javamelody.MonitoringFilter</filter-class>
</filter>
<filter-mapping>
    <filter-name>monitoring</filter-name>
    <url-pattern>/*</url-pattern>
</filter-mapping>
<listener>
    <listener-class>net.bull.javamelody.SessionListener</listener-class>
</listener>
4

1 回答 1

0

它是否仍然是测试环境中的 ROOT 应用程序?如果是,应该是 http:///monitoring

于 2013-07-24T07:46:09.507 回答