RESTEasy 客户端可以独立工作,但在 Tomcat 中失败

发布于 2024-09-16 10:50:36 字数 348 浏览 5 评论 0原文

我有一个使用 JBoss/RESTeasy 构建的 Web 服务的客户端界面。当从独立应用程序调用 Web 服务调用时,它们工作正常,但是一旦我将它们放入在 Tomcat 容器(在同一台计算机上)中运行的 Web 应用程序中,它们就开始表现得很奇怪。有些调用返回空结果,而另一些调用则因以下异常而失败:

org.jboss.resteasy.client.ClientResponseFailure:返回错误状态 404 Not Found

知道可能发生了什么吗?这可能是库冲突的结果吗?所有必需的客户端库都位于 web 应用程序的 WEB-INF/lib 目录中。

I have with me the client interface for a web service that was built using JBoss/RESTeasy. The web service calls work fine when they are invoked from a stand-alone app, but as soon as I put them into a webapp running in a Tomcat container (on the same machine), they start behaving weirdly. Some of the calls return empty results while some others simply fail with this exception:

org.jboss.resteasy.client.ClientResponseFailure: Error status 404 Not Found returned

Any idea of what might be going on? Could this be a result of a library conflict? All the required client libraries are in the WEB-INF/lib directory of the webapp.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

甲如呢乙后呢 2024-09-23 10:50:36

看来您的服务没有正确部署。查看您的 catalina.out 或其他一些日志以了解更多详细信息。

Seems that your services are not deployed properly. Take a look at your catalina.out or some other logs for more details.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文