I have a jar file that I want to put in the shared lib of my application server (WebLogic). The jar contains some classes that are implementing interfaces that are located inside of the war deployment. And the deployment has a Spring singleton that initializes the class that is contained in the shared jar.
So what I guess happens is that class is not being able to load because interfaces are not loaded yet (they are in the deployment), and when the classloader tries to load that class it probably gets some compilation error (I don't see it anywhere) and doesn't load it, and when the deployment tries to instantiate something that hasn't been loaded (shared jar) - it errors out.
So the question is what do I do here? How do I configure all this to work? I really don't want to duplicate the jar that contains all the interfaces in the shared folder. (it is required to be one whole .war file).
Thanks.
P.S. unfortunately I don't have any errors/exception while classloading of the domain lib (shared) folder. I have only java.lang.NoClassDefFoundError when I try to instantiate it.