java.rmi.UnmarshalException: erreur unmarshalling arguments; nested exception: java.lang.ClassNotFoundException: ServicesTableau

J'ai besoin de votre aide autour de JAVA RMI, j'ai développé un programme d'échantillonnage utilisée pour trier le tableau. mais j'ai eu cette exception:

Erreur RemoteException occurred in server thread; nested exception is: 
    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
    java.lang.ClassNotFoundException: ServicesTableau

et c'est mon code source du Serveur :

public class Serveur {
    public static void main(String args[]) {

        try {

            System.out.println("Server start ...");
            ServicesTableauImpl od = new ServicesTableauImpl();
            String url = "rmi://" + args[0] + "/ServicesTableauImpl";
            System.out.println("Passe");
            Naming.rebind(url, od);
            System.out.println("Attente d'invocations de client /CTRL-C pour stopper");
        } catch (Exception e) {
            System.out.println("Erreur " + e.getMessage());
        }
    /*
    catch(java.net.MalformatedURLException e){
    System.out.println("Mauvais nom de serveur");
    System.exit(1);
    }
    catch(RemoteException e){
    System.out.println("Pas de Rmiregistry");
    System.exit(1);
    }
    */
    }
}
C'est cette classe ServicesTableauImpl disponible dans le chemin de classe?

OriginalL'auteur MDIT | 2012-12-28