我正在用JAX-RS开发一个应用程序。这个应用在我本地的Liberty 8.5服务器上运行得很好。当我打包并将服务器推送到bluemix时失败。当我试图访问我的方法时,我得到了错误:
"NetworkError: 415不支持的媒体类型“
系统在使用空媒体类型的类中找不到任何方法。
我的web.xml如下所示:
<!-- Enable features -->
<featureManager>
<feature>jsp-2.2</feature>
<feature>localConnector-1.0</feature>
<feature>jdbc-4.0</feature>
<feature>cdi-1.0</feature>
<feature>json-1.0</feature>
<feature>jaxrs-1.1</feature>
<feature>jpa-2.0</feature>
</featureManager>我找了很多。有人也有同样的问题,说这是关于jaxrs-1.1的问题,应该更新到jaxrs-2.0,但我不知道如何更新它。这是Liberty 8.5 Server的默认设置。
有人能帮我吗?这是我第一次在stackover中问
发布于 2015-07-17 09:57:44
对不起,我英语不好。
有人提出了同样的问题,说这是关于jaxrs-1.1的问题,应该更新到jaxrs-2.0,但我不知道如何更新它。这是Liberty 8.5 Server的默认设置。
我希望这能对你有所帮助。
Using JAX-RS 2 Client API in Liberty and Bluemix Removing JAX-RS feature from Websphere Application Server 8.5
https://stackoverflow.com/questions/31467949
复制相似问题