From: <php...@li...> - 2007-05-29 20:44:48
|
Jost, Thank you very much for investigating into this. Thanks, sincerely, for providing and maintaining the PHP-Java-Bridge. I'm just an ordinary user who's, at times, like now, doing overwork to get his tasks done, and it's hard for me to get into details that are not complementary to my actual tasks. I'd like to apologize for that. Anyways, this: > It should occur in all Tomcat versions < 6. probably ain't exactly true - as I'm still using Tomcat 5.5, and upgrading to Ubuntu 7.04 and PHP 5.2 resolved the problems for now. However, I understand the JavaBridge JARs shouldn't be placed into folders shared by multiple Java or Tomcat applications per default. PHP-Java-Bridge is an amazing piece of software, and I'm really thankful you're providing it. Thanks again, high regards, and best of luck Robert php...@li... wrote: > Hi, > > first of all thank you very much for the bug report. > > We could reproduce the problem that, when the PHP/Java > Bridge is installed in the shared directory, as > described in our FAQ, all classes are loaded via the > same webapp classloader. > > We currently don't have a workaround for this tomcat > problem. > > However, this isn't a bug in the PHP/Java Bridge code, > so we won't fix this problem, even though it is > serious. > > > >> What happens is, webapp1 will access the property >> file of webapp2! >> > > Yes. When the JavaBridge.jar and php-servlet.jar are > loaded from the shared web folder, tomcat loads all > classes from the same web classloader. This is almost > certainly a tomcat bug. > > >> occurs is Ubuntu 6.10, PHP 5.x) the problem does >> *not* occur. >> > > It should occur in all Tomcat versions < 6. > > > >> When I run the same Java classes from a JSP, the >> right properties file >> will be accessed. >> > > JSP is different. It compiles Java source files to > Java byte code and then invokes the byte code from a > separate classloader. The PHP/Java Bridge could do the > same to work around the above problem. > > In the meantime please do not copy the JavaBridge.jar > and php-servlet.jar into the shared tomcat directory. > > > Regards, > Jost Boekemeier > > > > __________________________________ Kennt man wirklich jeden über 3 Ecken? Die Antworten gibt's bei Yahoo! Clever. www.yahoo.de/clever > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > |