如何在Worklight服务器中启用JAX-RS 1.1功能

时间:2014-01-18 17:07:43

标签: eclipse jax-rs ibm-mobilefirst worklight-studio worklight-server

我正在尝试一个示例项目,该项目要求我启用JAX-RS 1.1提供的IBM worklight服务器。但是我无法在eclipse server.xml设计页面中找到该功能。请建议我如何启用它。

Unable to find Feature jax-rs 1.1 Please help!!

Screenshot provided in the tutorial

2 个答案:

答案 0 :(得分:2)

如果您签入Eclipse的这个子目录,您将看到Worklight Studio中包含的Liberty服务器不包含jax-rs 1.1功能。

/plugins/com.worklight.studio.plugin_6.1.0.00-20131219-1900/liberty/wlp/lib

没有记录。我想出来了,因为它也不包括托管bean 1.0功能,这是本周我需要的一个项目。

此处提供的是所有Liberty配置文件功能的列表:http://pic.dhe.ibm.com/infocenter/wasinfo/v8r5/index.jsp?topic=%2Fcom.ibm.websphere.wlp.nd.multiplatform.doc%2Fae%2Frwlp_feat.html

您可以按照以下说明从完整的Liberty安装中复制jax-rs 1.1功能(我还没有对此进行测试,并且在Worklight Studio内部会毫不犹豫,显然不是支持的修改):http://pic.dhe.ibm.com/infocenter/wasinfo/v8r5/index.jsp?topic=%2Fcom.ibm.websphere.wlp.nd.multiplatform.doc%2Fae%2Frwlp_feat.html

答案 1 :(得分:0)

我认为应该支持它。

Liberty Core支持包含JAX-RS的JEE Web Profile。见http://pic.dhe.ibm.com/infocenter/wasinfo/v8r5/index.jsp?topic=%2Fcom.ibm.websphere.wlp.nd.doc%2Fae%2Frwlp_feat.html

您是否尝试将<feature>jaxrs-1.1</feature>添加到server.xml文件?