Building JAX-RS Application in Nuxeo

Hi,

I'm just trying to build a simple app that can handle get requests. I created an empty bundle by following http://doc.nuxeo.com/display/NXDOC/How+to+create+an+empty+bundle.

Now if I want to do something like the example at http://doc.nuxeo.com/pages/viewpage.action?pageId=950281#WebEngine(JAX-RS)-Example.1, I need to have a few things from javax.ws.* included. Where do I put the jar (jsr311-api-1.1-ea.jar) and how do I add it as a dependency?

Right now, I'm getting errors like: package javax.ws.rs does not exist

Thanks

0 votes

2 answers

1051 views

ANSWER



Seems this documentation is a bit deprecated and you can speed up your work following this.

In fact, you:

Hope this helps.

0 votes



Thanks! That worked much better. Once I setup the SDK and have a webengine project, how do I add a new jar, like mimepull.jar, to the project?
05/30/2013

Please use a new question and I will answer. :)
05/31/2013


Thanks!

I need to add the nuxeo-automation-client jar to my project. In eclipse, it doesn't show an error when I refer to classes like HttpAutomationClient in my JAX-RS application. However, during runtime, I get the following error:

java.lang.NoClassDefFoundError: org/nuxeo/ecm/automation/client/jaxrs/impl/HttpAutomationClient.

How do I add the jar to the project properly?

0 votes



Please create a new question and check the answer if fix the trouble and don't use answer to add comment. Use comment. This is important for the community.
05/31/2013