Resources not found in the jars in the script library, only in jars in Lotus\Notes\jvm\lib\ext

In my java code I use springs ClasspathResource but the code fails with a FileNotFoundException when the resource is in a jar that is attached to the script library. When I put the same jar under Lotus\Notes\jvm\lib\ext it works fine.Putting the file under resources in the scriptlibray does not help either.

I want to avoid putting jar files outside the notes database since

replication and roll-out to the clients does not work then, which makes

version control a lot more difficult.

Hope somebody can help me look in the right direction.