[Resteasy-users] SE Clients and providers
Hi, I'm using a simple SE client w/ RestEasy to talk to multiple systems. One system exposes its APIs using Jackson1 annotations and the other uses Jackson2 annotations. I create two distinct clients for each of them, one registering the jackson provider and the other registering the jackson2 provider. When clients on the second one run, they are getting the jackson provider instead of the jackson2 provider. I've confirmed through log output that client.register(provider); Is only called with the appropriate providers. Yet the call stacks are showing the Jackson 1 provider when I'm expecting to use the Jackson2 provider. Is there any way I can force Resteasy to use the Jackson2 provider other than client.register? Thanks, John -- Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/___ Resteasy-users mailing list Resteasy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/resteasy-users
Re: [Resteasy-users] SE Clients and providers
Hmmm ok weird one. I had a missing classpath dependency. However, even with that fixed no luck. I took a copy of ResteasyJackson2Provider and changed the produces/consumes to be "application/json" instead of "application/*+json" and it worked fine. John On Mon Jan 26 2015 at 12:37:22 PM John D. Ament wrote: > Hi, > > I'm using a simple SE client w/ RestEasy to talk to multiple systems. > > One system exposes its APIs using Jackson1 annotations and the other uses > Jackson2 annotations. > > I create two distinct clients for each of them, one registering the > jackson provider and the other registering the jackson2 provider. > > When clients on the second one run, they are getting the jackson provider > instead of the jackson2 provider. > > I've confirmed through log output that > > client.register(provider); > > Is only called with the appropriate providers. Yet the call stacks are > showing the Jackson 1 provider when I'm expecting to use the Jackson2 > provider. Is there any way I can force Resteasy to use the Jackson2 > provider other than client.register? > > Thanks, > > John > -- Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/___ Resteasy-users mailing list Resteasy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/resteasy-users
Re: [Resteasy-users] Gradle not downloading resteasy dependency
I am trying to get "resteasy-jaxrs-3.0.9.Final.jar" into my application as a dependency with gradle via Artifactory, however gradle doesn't download it. As you can see below if I download directly from MavenCentral it works as I would expect, if I go via Artifactory it skips resteasy-jaxrs-3.0.9.Final.jar. What am I missing? build.gradle: apply plugin:'java' repositories { mavenLocal() mavenCentral() // maven { // url "http://artifactory:8081/artifactory/repo1/"; // url "http://artifactory:8081/artifactory/libs-release/"; // } } dependencies{ compile 'org.jboss.resteasy:resteasy-jaxrs:3.0.9.Final' } output of gradle dependancies: 1. Direct from mavenCentral(): * commons-codec-1.6.jar * commons-io-2.1.jar * commons-logging-1.1.1.jar * activation-1.1.jar * jcip-annotations-1.0.jar * httpclient-4.2.6.jar * httpcore-4.2.5.jar * jaxrs-api-3.0.9.Final.jar * jboss-annotations-api_1.1_spec-1.0.1.Final.jar * resteasy-jaxrs-3.0.9.Final.jar 2. via Artifactory - is the same as above except: * resteasy-jaxrs-3.0.9.Final.jar - this is missing I've not encountered any other issues with Artificatory so I'm a bit surprised by this one. (I've also posted this question on http://stackoverflow.com/questions/28080719/gradle-not-getting-resteasy-dependency, this also includes a screenshot of Artifactory) The information contained in this email message is intended only for the addressee and is not necessarily the official view or communication of the New Zealand Customs Service. This email may contain information that is confidential or legally privileged. If you have received it by mistake, please: (a) reply promptly to that effect, and remove this email and the reply from your system; and (b) do not act on this email in any other way. -- Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/___ Resteasy-users mailing list Resteasy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/resteasy-users