From: Mikael G. <mi...@oe...> - 2005-10-21 08:05:52
|
Hello Jost. Thanks for quick reply. The bridge is really good stuff, hopefully I can get i working for this app as well... Jost Boekemeier wrote: >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? > > Actually I do require jpos for my classes - in ServerRemote the import where hidden by eclipse - they actually look like: package se.certitrade; import java.rmi.Remote; import java.rmi.RemoteException; import org.jpos.iso.ISOMsg; public interface ServerRemote extends Remote { . . Sorry about that. The server side also requires jpos ISOMsg and all other used jpos classes (all from the same version of jpos). >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? > > Nope, sorry made no difference, maybe something I've missed or don't understand here?........... Regards /Mikael |