From: <php...@li...> - 2007-05-23 16:49:22
|
Hi. Since this is my first posting at this mailing list, I'd like to thank you for providing and maintaing the PHP-Java-Bridge. I'm using PHP-Java-Bridge version 4.0.1 (PHP 5.x & 5.2.1, Sun Java 1.5.x, Tomcat 5.5.x, Ubuntu 6.10 & 7.04). There are Tomcat webapps which are almost identical -- one Java properties file differs, running under the same instance of Tomcat. Now, a PHP file in webapp1instantiates a new Java class of mine, which in turn calls a static Java class of mine, which again reads that properties file: ResourceBundle.getBundle("myProps").getString(key); myProps is WEB-INF/classes/myProps.properties. What happens is, webapp1 will access the property file of webapp2! If webapp2 is undeployed, webapp1 will use its own property file again. I've confirmed this behavior on a clean installation/copy of Tomcat (the same effects, but here, webapp2 will use webapp1's properties file). On another computer (Ubuntu 7.04, PHP 5.2.1) (the one where the problem occurs is Ubuntu 6.10, PHP 5.x) the problem does *not* occur. The Java classes involved (but JavaBridge.jar, which is in the $CLASSPATH) are all in WEB-INF/classes, only. When I run the same Java classes from a JSP, the right properties file will be accessed. Any ideas? Thanks Robert |