Re: RMI client code in Struts : I WIN RESOLVED

2020-01-27 Thread zahid
Hello Struts UserServer says hello to coco On 26/01/2020 23:20, Dave Newton wrote: Handle the exceptions. On Sun, Jan 26, 2020 at 5:51 PM zahid wrote: Hi, How can make this client code work in Struts ? Please see two pieces of comparative client code , common RMIInterface interface , and

Re: RMI client code in Struts I WIN : RESOLVED

2020-01-27 Thread zahid
Hello Struts UserServer says hello to coco On 26/01/2020 23:20, Dave Newton wrote: Handle the exceptions. On Sun, Jan 26, 2020 at 5:51 PM zahid wrote: Hi, How can make this client code work in Struts ? Please see two pieces of comparative client code , common RMIInterface interface ,

Re: RMI client code in Struts : java.lang.ClassNotFoundException

2020-01-27 Thread zahid
I have got past the  security  errors . I am now here  I think it is just a java.net.MalformedURLException,java.rmi.RemoteException,java.rmi.NotBoundException, property: null]  java.rmi.UnmarshalException: error unmarshalling return; nested exception is: java.lang.ClassNotFoundException: org

Re: RMI client code in Struts Security Warning

2020-01-26 Thread zahid
Hi, Where do I need to set permissions in struts to make this works or perhaps the compile option  ? Also eclipse won't allow me to include the import java.rmi.RMISecurityManager; I have included two clients  swing client which works and MessageStore.java  struts client,  struts log and my

Re: RMI client code in Struts

2020-01-26 Thread zahid
I don't have those errors anymore public String execute() throws MalformedURLException, RemoteException, NotBoundException {         try {             messageStore = new MessageStore() ;         }     catch (MalformedURLException e) {     System.out.println(" " + e );     }  

Re: RMI client code in Struts

2020-01-26 Thread zahid
Thanks On 26/01/2020 23:20, Dave Newton wrote: Handle the exceptions. On Sun, Jan 26, 2020 at 5:51 PM zahid wrote: Hi, How can make this client code work in Struts ? Please see two pieces of comparative client code , common RMIInterface interface , and struts problem report :- package o

Re: RMI client code in Struts

2020-01-26 Thread zahid
The same  two lines of code work in  ...  public class ClientOperation look_up = (RMIInterface) Naming.lookup("//localhost/MyServer"); String response = look_up.helloTo("coco"); On 26/01/2020 23:20, Dave Newton wrote: Handle the exceptions. On Sun, Jan 26, 2020 at 5:51 PM

Re: RMI client code in Struts

2020-01-26 Thread Dave Newton
Handle the exceptions. On Sun, Jan 26, 2020 at 5:51 PM zahid wrote: > Hi, > > How can make this client code work in Struts ? > > Please see two pieces of comparative client code , common RMIInterface > interface , and struts problem report :- > > package org.apache.struts.helloworld.model; > >

RMI client code in Struts

2020-01-26 Thread zahid
Hi, How can make this client code work in Struts ? Please see two pieces of comparative client code , common RMIInterface interface  , and struts problem report :- package org.apache.struts.helloworld.model; import java.net.MalformedURLException; import java.rmi.Naming; import java.rmi.NotBo