I'm coding an application which is module based, so it loads other jar files into the classpath. One module of this application is a RestAPI. For the RestAPI I'm using Spark Java. Now my problem is, that one class is not able to be loaded. The Exception looks as following:
org.pac4j.core.exception.TechnicalException: java.lang.ClassNotFoundException: org.pac4j.core.profile.CommonProfile
I actually shaded the class into my jar.
What I tried yet:
I tried to load it manually by Class#forName. This did actually not throw an exception. I tried to load the whole jar file using an URLClassLoader. Nothing worked.
Thanks for any help