In my Web service I use eclipse, java 1.5, spring. now I want to use jersey for REST and downloaded the jersey as a bundle jar from this address:
http://jersey.java.net/nonav/documentation/latest/chapter_deps.html
How can I add this jar to my project and start using the JAX-rs annotations, I added to buildpath but seems like does not work.
Also is it necessary or a good idea to create JAXB annotated classes of my resource classes and using them with JERSEY?
Make sure you have jsr-311 jar on your classpath. For example you can download it from here.
Jersey supports JAXB out-of-the-box. It doesn't mean you have to use JAXB. If you need to serialize data to/from xml, using JAXB with Jersey is the most convenient.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With