-
Notifications
You must be signed in to change notification settings - Fork 241
Error establiching connection with consul server #56
Comments
Hi |
For the Immutable* classes you need to setup your IDE to process the annotations - see http://immutables.github.io/apt.html for more info. (Note I also had to manually mark the 'generated-sources' folder as a "generated source root" in intellij) @rickfast unless you are thinking of removing these i can add some instructions to the README about it |
Also, @GLE81, I tried replicating your error with a minimal setup and it worked fine, so I think Rick is correct about the source of your original issue. |
I haven't played with 0.9.8 yet, but a coworker had issues. We should add a Development section on the README. |
@GLE81 you should have If you're using Gradle, you can inspect version clashes with ./gradlew dependencyInsight --dependency=javax.ws.rs-api which will show if there's two versions on the classpath. |
I can write something up today for it |
Hi, I tried with version 0.9.7 and dependency javax.ws.rs:javax.ws.rs-api:2.0.1 and it still doesn't work. I'm continuing looking if I can find the problem anyway here is my pom.xml. 4.0.9.RELEASE 1.2.17 1.7 SpringRestSecurityOauth 3.2.5.RELEASE junit junit 4.11 test org.mortbay.jetty jsp-2.1 6.0.0 org.apache.commons commons-io 1.3.2 log4j log4j ${log4j.version} org.springframework spring-web ${spring.version} org.springframework spring-webmvc ${spring.version} org.springframework spring-beans ${spring.version} org.springframework spring-test ${spring.version} test org.springframework.security spring-security-web ${spring.security.version} org.springframework.security spring-security-config ${spring.security.version} org.springframework.security.oauth spring-security-oauth2 2.0.7.RELEASE com.google.code.gson gson 2.2.2 org.codehaus.jackson jackson-mapper-asl 1.9.10 commons-httpclient commons-httpclient 3.1 org.springframework spring-context-support ${spring.version} javax.servlet javax.servlet-api 3.0.1 provided com.indra.security.oauth2 springSecurityOauth2Client 0.1 com.orbitz.consul consul-client 0.9.7 org.apache.cxf cxf-rt-rs-client 3.0.3 org.apache.cxf cxf-rt-transports-http-hc 3.0.3 javax.ws.rs javax.ws.rs-api 2.0.1 ${pom.artifactId} maven-compiler-plugin
|
OK. I just imported the 0.9.7 source code in my workspace and now is working, I'm going to continue testing to find what happened when I use the library. |
@GLE81, I'm not sure that's a good solution - likely it's altering the classpath in your dev environment, but it could be that the issue still occurs when you build for alternate environments. I recommend that you run mvn dependency:tree from the command line - that will list all your dependencies, and their dependencies in turn to see which one is pulling in the conflicting javax.ws.rs-api version. You could also then try experimenting with excluding the conflicting dependency. |
@GLE81 is this still an issue? If not, I'm going to close this issue. Thanks |
Hi,
I'm trying to integrate consul-client in my webapplication. I'm executing a test where everytime that the library try to connect to the consul server retrieve the following error "java.lang.NoSuchMethodError: javax.ws.rs.core.Response.close()V" in the line 79 of agentClient. I tried to debug or fix this error but every source code I download doesn't compile, it has errors of no class found like ImmutableCheck and ImmutableRegistration that aren't in the project.
I don't know if I forget something or if I have something wrong.
I'm using Spring 4.0.7.RELEASE.
The text was updated successfully, but these errors were encountered: