BewareMyPower commented on pull request #10055:
URL: https://github.com/apache/pulsar/pull/10055#issuecomment-808710454
@eolivelli
Here's the completed exception stack.
```
Exception in thread "main" java.lang.RuntimeException:
java.lang.ClassNotFoundException:
org.glassfish.jersey.client.JerseyClientBuilder
at javax.ws.rs.client.ClientBuilder.newBuilder(ClientBuilder.java:110)
at javax.ws.rs.client.ClientBuilder.newClient(ClientBuilder.java:121)
at
org.apache.pulsar.client.impl.auth.AuthenticationSasl.start(AuthenticationSasl.java:164)
at
org.apache.pulsar.client.impl.PulsarClientImpl.<init>(PulsarClientImpl.java:146)
at
org.apache.pulsar.client.impl.PulsarClientImpl.<init>(PulsarClientImpl.java:134)
at
org.apache.pulsar.client.impl.PulsarClientImpl.<init>(PulsarClientImpl.java:130)
at
org.apache.pulsar.client.impl.ClientBuilderImpl.build(ClientBuilderImpl.java:65)
at pulsar.KerberosAuthClient.main(KerberosAuthClient.java:27)
```
From `javax.ws.rs.client.ClientBuilder.newBuilder` we can see
```java
public static ClientBuilder newBuilder() {
try {
Object delegate =
FactoryFinder.find("javax.ws.rs.client.ClientBuilder",
"org.glassfish.jersey.client.JerseyClientBuilder", ClientBuilder.class);
if (!(delegate instanceof ClientBuilder)) {
Class pClass = ClientBuilder.class;
String classnameAsResource = pClass.getName().replace('.',
'/') + ".class";
ClassLoader loader = pClass.getClassLoader();
if (loader == null) {
loader = ClassLoader.getSystemClassLoader();
}
```
It tries to load `JerseyClientBuilder` dynamically.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]