I'm getting ready to release a new framework that I have developed on Glassfish. where I am now though is getting it ready for cross umm container? distribution. I admitidly know nothing about distributing web libraries (kinda important for a web framework developer )
what I have is a collection of servlets and PoJos which need to be bundled in a way that let a user include them in the CP of their web app. I need to have an init servlet classloader start and have the directory of the web app that is using the framework sent to it. while also preserving the exposed servlets and servlet contexts defined in the frameworks web.xml. Whats the best way to have a user include a jar file containing the classes and servlets and maintain my frameworks Contexts as well as allowing the user to specify the init to load on startup?