如何将JAX-RS添加到现有项目中 [英] How to add JAX-RS to an existing project

查看:125
本文介绍了如何将JAX-RS添加到现有项目中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Java EE,Java 1.7,glassfish 3和Eclipse Indigo。我有一个我在本教程中构建的现有Web项目: http://www.tech-juice.org/2012/05/13/hello-world-with-jsf-2-0 -glassfish -3-行家 - svn的和 - 蚀/#评论-10560 。现在,我想向项目添加RESTful Web服务。我转到Project - > properties,Project Facets并检查JAX-RS。然后,我单击需要进一步配置的链接。我给了一个servlet类名。我现在被告知必须至少选择一个用户库。

I am using Java EE, Java 1.7, glassfish 3 and Eclipse Indigo. I have an existing web project that I built from this tutorial: http://www.tech-juice.org/2012/05/13/hello-world-with-jsf-2-0-glassfish-3-maven-svn-and-eclipse/#comment-10560. Now, I want to add RESTful web services to the project. I go to Project -> properties, Project Facets and check JAX-RS. I then click the link that says "Further configuration needed". I give a servlet class name. I am now told that "At least one user library must be selected."

这是什么意思?

我看了,但是,没有看到有关将JAX-RS添加到现有项目的教程。

I have looked, but, not seen a tutorial on adding JAX-RS to an existing project.

谢谢,
Scott

Thanks, Scott

推荐答案

禁用实施库选择应该可行。我相信库配置项存在,以防您不想使用默认实现。

Disabling implementation library selection should just work. I believe the library configuration item exists in case you do not want to use the default implementation.

这篇关于如何将JAX-RS添加到现有项目中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆