|
From: Jost B. <jos...@ya...> - 2005-10-20 17:20:52
|
Hi Mikael,
> java_require("$here/jpos-1.4.6.jar");
> java_require("$here/myClasses.jar");
[...]
> The myServerRemote java looks like:
> sendTransaction(ISOMsg msg)
[...]
> The rmi call passes an ISOMsg object that is part of
> the jpos-1.4.6.jar
[...]
> Unresolved external reference:
java.lang.NoClassDefFoundError: org/jpos/iso/ISOMsg
[...] happens when the lookup method in the php-file
is run
as I understand the above problem ISOMsg is not
available to your classes because you haven't required
it (you have required it for the bridge, but not for
your classes).
This behaviour is intentional, please see the
tests.php4/NoClassDefFound tests. For example the
server part could easily require a different version
of jpos or it could only require the stub classes.
Isn't it possible to require jpos for your classes,
too?
Does
# reset the classloader once
echo '<?php java_reset(); ?>' |/usr/bin/php
<?php
[...]
java_require("jpos-1.4.6.jar");
java_require("myClasses.jar;jpos-p.x.y.jar");
[...]
?>
solve the problem?
If so, this means that the PHP/Java Bridge
documentation is broken. I think I need a hint how to
reformulate the sentence "all interconnected classes
must be loaded by the same classloader".
Regards,
Jost Boekemeier
___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
|