|
From: <php...@li...> - 2008-08-26 18:21:41
|
Hello Jost,
I believe I am loading the custom libraries statically now. I don't use a
java_require or reload statement in my PHP code. From the sounds of the
email below, that is probably the best approach. However, I think I just
discovered an implication of doing that.
I made a minor change to one method in the U2 class. Before the change it
had 4 input parameters. After the change it had 3 input parameters. I
moved it to the ext directory, but no matter what I tried I kept getting a
method not found error. I assumed it was because I was sending it 3
parameters, but it still "thought" it had 4. Finally I rebooted the web
server and it worked fine.
This makes me suspect that static libraries load once on startup, and that
simply moving the jar to the ext directory does not reload them. So here
is my question. If that is the case, is there anyway short of a reboot to
force the static libraries to reload?
Thanks.
Charles Shaffer
Senior Analyst
NTN-Bower Corporation
php...@li...
Sent by: php...@li...
08/26/2008 12:06 PM
Please respond to php-java-bridge-users
To: php...@li...
cc:
Subject: Re: [Php-java-bridge-users] (no subject)
Hi,
well, the NoClassDefFound error means that an external reference is
missing (an entity which has been available during the compilation of the
class).
The bridge has two different class loading mechanisms, one is the static
loader, the other one is the dynamic loader which can load *some* java
archives at run-time (via java_require(...) or java_autoload(...)).
I said "some" because dynamic class loading doesn't really work in Java,
neither in Tomcat nor in J2EE; once the dynamically loaded classes are
referenced by system libraries, you can't unload them anymore.
Regards,
Jost Boekemeier
__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz
gegen Massenmails.
http://mail.yahoo.com
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|