You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to use the Conjur client I am receiving the following exception:
java.lang.RuntimeException: java.lang.ClassNotFoundException: Class 'org.glassfish.jersey.client.JerseyClientBuilder' was not found
at javax.ws.rs.client.ClientBuilder.newBuilder(ClientBuilder.java:103)
at com.cyberark.conjur.api.clients.ResourceClient.init(ResourceClient.java:81)
at com.cyberark.conjur.api.clients.ResourceClient.<init>(ResourceClient.java:35)
at com.cyberark.conjur.api.Variables.<init>(Variables.java:17)
at com.cyberark.conjur.api.Conjur.<init>(Conjur.java:81)
at com.cyberark.conjur.api.Conjur.<init>(Conjur.java:43)
at com.cyberark.ConjurBuildStartContextProcessor.updateParameters(ConjurBuildStartContextProcessor.java:127)
at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.prepareRunners(RunningBuildImpl.java:265)
at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.createAgentBuild(RunningBuildImpl.java:412)
at jetbrains.buildServer.serverSide.impl.BuildStarter.startBuild(BuildStarter.java:146)
at jetbrains.buildServer.serverSide.impl.BuildStarter.lambda$null$0(BuildStarter.java:73)
at jetbrains.buildServer.util.NamedThreadFactory.executeWithNewThreadName(NamedThreadFactory.java:76)
at jetbrains.buildServer.serverSide.impl.BuildStarter.lambda$startBuildAsync$1(BuildStarter.java:88)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.ClassNotFoundException: Class 'org.glassfish.jersey.client.JerseyClientBuilder' was not found
at jetbrains.buildServer.plugins.classLoaders.TeamCityClassLoader.doLoadClass(TeamCityClassLoader.java:85)
at jetbrains.buildServer.plugins.classLoaders.TeamCityClassLoader.loadClass(TeamCityClassLoader.java:40)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:315)
at javax.ws.rs.client.FactoryFinder.newInstance(FactoryFinder.java:113)
at javax.ws.rs.client.FactoryFinder.find(FactoryFinder.java:206)
at javax.ws.rs.client.ClientBuilder.newBuilder(ClientBuilder.java:86)
... 17 more
Steps to Reproduce
My code that is throwing this error:
Conjurconjur = newConjur(authnLogin, apiKey, getSSLContext(certFile));
Stringvalue = conjur.variables().retrieveSecret("db/postgres/username");
System.out.println("THIS IS THE VALUE: " + value);
Expected Results
Retrieve a secret successfuly.
Actual Results (including error logs, if applicable)
java.lang.LinkageError: ClassCastException: attempting to castjar:file:/data/teamcity_server/datadir/system/caches/plugins.unpacked/teamcity/server/javax.ws.rs-api-2.0.jar!/javax/ws/rs/client/ClientBuilder.class to jar:file:/data/teamcity_server/datadir/system/caches/plugins.unpacked/teamcity/server/javax.ws.rs-api-2.0.jar!/javax/ws/rs/client/ClientBuilder.class
at javax.ws.rs.client.ClientBuilder.newBuilder(ClientBuilder.java:97)
at com.cyberark.conjur.api.clients.ResourceClient.init(ResourceClient.java:81)
at com.cyberark.conjur.api.clients.ResourceClient.<init>(ResourceClient.java:35)
at com.cyberark.conjur.api.Variables.<init>(Variables.java:17)
at com.cyberark.conjur.api.Conjur.<init>(Conjur.java:81)
at com.cyberark.conjur.api.Conjur.<init>(Conjur.java:43)
at com.cyberark.ConjurBuildStartContextProcessor.updateParameters(ConjurBuildStartContextProcessor.java:127)
at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.prepareRunners(RunningBuildImpl.java:265)
at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.createAgentBuild(RunningBuildImpl.java:412)
at jetbrains.buildServer.serverSide.impl.BuildStarter.startBuild(BuildStarter.java:146)
at jetbrains.buildServer.serverSide.impl.BuildStarter.lambda$null$0(BuildStarter.java:73)
at jetbrains.buildServer.util.NamedThreadFactory.executeWithNewThreadName(NamedThreadFactory.java:76)
at jetbrains.buildServer.serverSide.impl.BuildStarter.lambda$startBuildAsync$1(BuildStarter.java:88)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
[2020-11-12 21:30:06,206] WARN [0@72272817"; Normal executor 3] - jetbrains.buildServer.SERVER - Error while starting build {id=2001}
I also decided to include the following dependency but the exception still occurs:
Summary
When attempting to use the Conjur client I am receiving the following exception:
Steps to Reproduce
My code that is throwing this error:
Expected Results
Retrieve a secret successfuly.
Actual Results (including error logs, if applicable)
java.lang.RuntimeException: java.lang.ClassNotFoundException
Reproducible
Version/Tag number
3.0.2
Environment setup
Running inside of container to container. Local dev environment
Additional Information
The text was updated successfully, but these errors were encountered: