> asaf.lahav wrote: >The problem is that I cannot guarantee that web applications running under >the embedded tomcat won't hold any duplicate jars.
Then write your own ClassLoader to handle your unique situation. Your ClassLoader will need to enforce that the classes are loaded from the same jar file (and, perhaps not so obvious, but equally important....the same ClassLoader).