My solution for Connection refused &ClassNotFoundException

Modérateurs : graffion, jmdouin, agoncal, mlebihan

LUYI
Messages : 4
Inscription : 16 nov. 2016 10:52

My solution for Connection refused &ClassNotFoundException

Message par LUYI » 16 nov. 2016 10:59

For the windows users ,please create a file called "startRMI.bat".
then , put the following codes in the file.

Code : Tout sélectionner

@echo on

set DEPLOY_DIR=..\build

set CLASSPATH=%DEPLOY_DIR%\server.jar;%DEPLOY_DIR%\common.jar;%DEPLOY_DIR%\clientCatalog.jar;%DEPLOY_DIR%\clientCustomer.jar;%DEPLOY_DIR%\clientOrder.jar;%MYSQL_HOME%\lib\mysql-connector-java-5.1.21-bin.jar;

rmiregistry
then you start this bat,
then you can run the "RegisterServices.java" in the eclipse.
It works for me.It finally shows "Petstore services are registered."

plm
Messages : 9
Inscription : 14 nov. 2016 1:18

Re: My solution for Connection refused &ClassNotFoundExcepti

Message par plm » 16 nov. 2016 22:57

Thank you so much to post this !!!!

You resolved my problem described here :
http://deptmedia.cnam.fr/phpBB2/viewtop ... fc6f28df41

Répondre

Qui est en ligne ?

Utilisateurs parcourant ce forum : Baidu [Spider] et 1 invité