我使用的是java 7.2.1,并用NetBeans构建REST Web服务。当我点击NetBeans中的测试RESTful web服务时,我正在使用Apache Tomcat服务器7.0.52和Windows7操作系统。首先,它在NetBeans中显示一个对话框,其中显示消息“the access URL through the external browser. Check the browser configuration”。并打开默认浏览器(在我的例子中是Mozilla firefox ),错误状态为404,请求的资源不可用。
我已经在新旧的Mozilla firefox浏览器上测试过了。在我的例子中,Apache tomcat服务器正在启动,当我关闭NetBeans时,它也会正常地停止Apache tomcat服务器。谢谢。
发布于 2014-03-22 19:09:02
Netbeans安装的Tomcat配置了不同于http 80和https 443标准端口的端口,因此请首先检查Netbeans Tomcat服务器中配置的端口,然后在URL中指定该端口。
https://stackoverflow.com/questions/22551984
复制相似问题