Java RESTful - "Not Found" 错误

Java RESTful - "Not Found" error

我正在尝试在 WebLogic Server 中部署 *.ear 应用程序。
所有的实现,数据源的创建都很好。但是当我访问 link 到 return json 中的 localhost 数据时,它 returns Not Found 在页面的主体上。像这样:

这仅在应用程序应 return 来自服务器的数据时发生。如果我访问一个 URL 而 return 是一个 HTML 它工作正常。

详细信息

现在我正在另一个 WebLogic Server 中实现,发生了这种情况。当我在本地计算机的 WebLogic Server 上 运行 时,它工作正常。

编辑<\B>

我的服务器日志:<Warning> <JAX-RS Integration> Cannot add Jersey Servlet for application class com.sun.jersey.api.core.PackageResourceConfig because ApplicationPath Annotation is not set on it``<Warning><Socket> Closing the socket, asw no data read from it at 0:0:0:0:0:0:0:1:62.645 during the configured idle timeout of 5 seconds

问题是我没有在我的 WebLogic 安装中部署 JerseyJAX 库。

在当前最新的 Weblogic 版本中,您不能一起部署这两个库,因为它们具有相同的名称。
通过安装旧版本解决了这个问题,部署库和我的 RESTful 服务工作正常。