Java RESTful - " Not Found"错误

时间:2016-03-16 14:15:47

标签: java rest weblogic

我正在尝试在WebLogic Server中部署* .ear应用程序 所有的实现,DataSource创建都很好。但是,当我访问该链接以返回localhost中的json数据时,它会在页面正文中返回Not Found。像这样:

enter image description here

仅当应用程序应从服务器返回数据时才会发生这种情况。如果我访问返回HTML的网址,则可以正常使用。

enter image description here

详细信息发生这种情况现在我正在另一个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

1 个答案:

答案 0 :(得分:0)

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

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

相关问题