Hello everyone! For couple a weeks now, I am trying to develop an extensible application in Wicket. The goal is simple. We have a "core" deployed tothe java web server, and then we create only "modules", which consist of some classes, html files and maybe some styles or other resources. We tried to package modules in jars, but it seems to be better when we upload them only as directories. But there is a problem I am trying to solve. If the module uses a library, which is loaded directly in webapps classpath, everything works ok. But not if I want to use a different library. For example, wicket-rome. I have tried several things. In the module's directory structure I have created a directory named "lib" and I placed the jar there. It did'nt work. Then I tried to load the library jar directly via classloader's addURL method, but id did not work either. If I try to do similar desktop application (the same libraries, the same classloader) the library loads perfectly. The difference though is, that in the desktop app I am using File(), which I cannot use in a webapp when modules are located on remote location.
I have looked at OSGi a bit, but I do not understand it (basically I do not even now how to build a project with it :) ) Does anybody have any clue? I hope I have written this clearly enough. If not, feel free to ask :) Thanks a lot for every answer! -- -danoh-
