|
From: <php...@li...> - 2010-03-26 17:04:17
|
Hi, > In my case we have many php applications on one server using different > versions of Jasper Reports Libraries. The example JavaBridge.war from the php-java-bridge_documentation.zip download contains the OSGI framework. It uses separate classloaders, similar to our deprecated java_require() feature, to allow loading different library versions at a time. But since it has the same issues, I cannot recomment it either. For example we ran into several class-loading issues while preparing the BIRT report example. > loading correct libraries. In this case can I have two JavaBridge > applications running in my Tomcat server so that the libraries are not > messed up? Yes. Tomcat separates all web applications using different class loaders. You may run into PermGenSpace OutOfMemoryErrors and some libraries should not be loaded this way; see http://tomcat.apache.org/tomcat-5.5-doc/RELEASE-NOTES.txt section "Web application reloading and static fields in shared libraries". But if you don't load too many libraries and if the library authors have payed attention [1], this will work. Regards, Jost Bökemeier [1] log4j contained such a bug: http://marc.info/?l=log4j-user&m=109578379927175&w=2 |