|
From: <php...@li...> - 2007-05-24 10:27:30
|
The problem has been solved by upgrading Ubuntu from 6.10 to 7.04, and
PHP from 5.1.6 to 5.2.1.
Thanks
php...@li... wrote:
> 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
>
> -------------------------------------------------------------------------
> 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
>
>
|