Issue: Failed to introspect Class [com.xebialabs.xldeploy.authentication.oidc.conf.OpenIdConnectConfig] from ClassLoader

Issue

When configuring Deploy with OIDC, the application throws the following error:

2021-10-04 21:36:36.416 [main] {} INFO c.x.d.ApplicationBootstrapper$ - The following profiles are
active: client-gui,command-whitelist,config-server,native,secret-complexity,server,websockets
2021-10-04 21:36:41.725 [main] {} ERROR o.s.boot.SpringApplication - Application run failed
java.lang.IllegalStateException: Failed to introspect Class [com.xebialabs.xldeploy.authentication.
oidc.conf.OpenIdConnectConfig] from ClassLoader [jdk.internal.loader.ClassLoaders$AppClassLoader@
67424e82]
at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:481)
at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:358)
at org.springframework.util.ReflectionUtils.getUniqueDeclaredMethods(ReflectionUtils.java:414)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.lambda$getTypeFor
FactoryMethod$2(AbstractAutowireCapableBeanFactory.java:747)
...
Caused by: java.lang.NoClassDefFoundError: com/xebialabs/platform/sso/oidc/exceptions/Unsupported
OidcConfigurationException
...
Caused by: java.lang.ClassNotFoundException: com.xebialabs.platform.sso.oidc.exceptions.Unsupported
OidcConfigurationException

Root Cause

xl-auth-oidc-X.X.X.jar is missing from /deploy_home/lib

Solution

Add the xl-auth-oidc-X.X.X.jar back in /deploy_home/lib

Note

  • xl-auth-oidc-X.X.X.jar is bundled with a vanilla instance
  • xld-auth-oidc-plugin-X.X.X.jar can be downloaded from the dist site

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.