|
From: <php...@li...> - 2007-05-29 10:06:52
|
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
Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem neuen Yahoo! Mail. www.yahoo.de/mail
|