Re: [Aglets-users] BROBLEM IN: using JAR file as CODE BASE
Status: Beta
Brought to you by:
cat4hire
From: Kawthar M. <ka_...@ya...> - 2006-11-10 01:31:10
|
Salam-Hi, Thank you very much it works alhamdolelah.. There was another problem, which is that I specify package path in the sister and the brother were I shouldnt specify any package. once i remove the packages from them it works. issam hmida <hmi...@gm...> wrote: ok, i will do efforts; well, i think the problem is because your url is invalid ; the url must be like : atp://<your_host_name>:<port> (example : atp://localhost:4434) àr (atp://192.168.0.120:4434). so, may be you must change the way sister will take with him brother, you can look at this link : http://www.ryerson.ca/~dgrimsha/courses/cps720/ (see the chapter of aglet) it hilighted a number of design pattern i hope you inderstand my english . good luck 2006/11/9, Kawthar Moria <ka_...@ya...>: i cant understand French , could u translate issam hmida <hmi...@gm...> wrote: salam , HI je vais ecrire en français ton URL esterronée l'URL doit etre sous cette forme : atp://<adresse_de_ta_machine>:<port> donc il est peut etre exigée que tu possède autrement pour que sister prend brother avec lui. Cordialement 2006/11/8, Kawthar Moria <ka_...@ya...>: Hi J , I am a student working in my master theses, my is: Suppose I have 3 agent classes: mother, sister and brother. Mother.class will make the sister.class that use the brother.class . The sister class should dispatch to another machine and should take the brother class with it.For that I place the sister and the brother classes inside All.jar file and put the address in the code base: URL loc = new URL("file://C:/Aglet/public/examples/MyExamples/All.jar"); AgletProxy proxy1=getAgletContext().createAglet(loc,"DisChild3",null); When I run it under the aglet the sister class is not created and I get this msg, could anyone tell me what is the problem J: /Aglet/public/examples/MyExamples /All.jar /Aglet/public/examples/MyExamples/ java.net.UnknownHostException: C at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177) at java.net.Socket.connect(Socket.java:507) at java.net.Socket.connect(Socket.java:457) at sun.net.NetworkClient.doConnect(NetworkClient.java:157) at sun.net.NetworkClient.openServer(NetworkClient.java:118) at sun.net.ftp.FtpClient.openServer(FtpClient.java:488) at sun.net.ftp.FtpClient.openServer(FtpClient.java:475) at sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.ja va:270) at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnec tion.java:352) at java.net.URL.openStream(URL.java:1007) at com.ibm.aglets.tahiti.JarAgletClassLoader.<init>(Unknown Source) at com.ibm.aglets.tahiti.ResourceManagerFactory.createClassLoader(Unknow n Source) at com.ibm.aglets.tahiti.ResourceManagerFactory.createResourceManager(Un known Source) at com.ibm.aglets.AgletContextImpl.createResourceManager(Unknown Source) at com.ibm.aglets.LocalAgletRef.createResourceManager(Unknown Source) at com.ibm.aglets.AgletContextImpl.createAglet(Unknown Source) at com.ibm.aglets.AgletContextImpl.createAglet(Unknown Source) at examples.MyExamples.JarDis.Main.run(Main.java:15) at com.ibm.aglets.SystemMessage.handle(Unknown Source) at com.ibm.aglets.AgletThread.run(Unknown Source) null Best regards, Mrs. Kawthar Moria --------------------------------- Check out the all-new Yahoo! Mail - Fire up a more powerful email and get things done faster. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Aglets-users mailing list Agl...@li... https://lists.sourceforge.net/lists/listinfo/aglets-users ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642_______________________________________________ Aglets-users mailing list Agl...@li... https://lists.sourceforge.net/lists/listinfo/aglets-users Best regards, Mrs. Kawthar Moria --------------------------------- Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Aglets-users mailing list Agl...@li... https://lists.sourceforge.net/lists/listinfo/aglets-users ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642_______________________________________________ Aglets-users mailing list Agl...@li... https://lists.sourceforge.net/lists/listinfo/aglets-users Best regards, Mrs. Kawthar Moria --------------------------------- Check out the all-new Yahoo! Mail beta - Fire up a more powerful email and get things done faster. |