Is it sufficient to use only catalina-ws.jar to have a REST webservice in Tomcat7?

自作多情 提交于 2020-01-04 15:33:55

问题


I came across many tutorials using Jersey and Tomcat7 to implement rest web services. But I also see that tomcat provides web services support if you download catalina-ws.jar (look here). So I would like to ask if we can use only this jar in the project and call rest web services ? Has anyone used this before ?


回答1:


Jersey is JAX-RS (JSR-311) which is absolutely not the same as WebServices 1.2 (JSR-109), which is part of Java EE 5. Either install Jersey separately, or replace Tomcat by TomEE. You only get Apache CXF instead of Jersey.



来源:https://stackoverflow.com/questions/14633343/is-it-sufficient-to-use-only-catalina-ws-jar-to-have-a-rest-webservice-in-tomcat

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!