RMI codebase problem on windows XP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Søren \Pengman\ Pedersen

    RMI codebase problem on windows XP

    Dear all

    My setup is this:

    A RMI server application running with the codebase property as follows:
    -Djava.rmi.serve r.codebase=http ://localhost/Java/Rmiserver/

    this location contains the root of the package which containts the stubs and
    other classes for the server. Those files is accesible with internet
    explorer.

    Then when I try to run my client program I get this message:

    "error unmarshalling return; nested exception is:
    java.lang.Class NotFoundExcepti on:RMI.server.C hanserv_Stub"

    How can that be??
    The file that it cannot find is availible in
    http://localhost/Java/RMIserver/RMI/...erv_Stub.class and if I
    place it with the client application everything is fine....

    I hope somebody can help me with this... Just´say if you need more
    information but I think it must be something stupid I've forgotten

    Thanks in advance
    Søren


  • Denz

    #2
    Re: RMI codebase problem on windows XP

    Ive just been ... fighting with this stuff to... after some perserverence I
    did get it all to work, but encountered a number of errors along the way. I
    did keep notes about how to get a setup working on a Linux box- so may not
    directly apply to win XP, but if you need more info...

    Anyway, in short-
    - clear the CLASSPATH
    - start the RMI registry
    - set the CLASSPATH eg
    /home/whatever/src:/public_html_dir/classes/yourjar.jar
    - start the rmi server ie cd /public_html_dir/classes then,
    java -Djava.rmi.serve r.codebase=http ://whatever/classes/ -Djava.rmi.serve r.h
    ostname=whateve r -Djava.security. policy=java.pol icy package.class
    - start the client...

    good luck

    "Søren "Pengman" Pedersen" <pengman@pengwo rld.zzn.com> wrote in message
    news:borikb$gfb [email protected].. .[color=blue]
    > Dear all
    >
    > My setup is this:
    >
    > A RMI server application running with the codebase property as follows:
    > -Djava.rmi.serve r.codebase=http ://localhost/Java/Rmiserver/
    >
    > this location contains the root of the package which containts the stubs[/color]
    and[color=blue]
    > other classes for the server. Those files is accesible with internet
    > explorer.
    >
    > Then when I try to run my client program I get this message:
    >
    > "error unmarshalling return; nested exception is:
    > java.lang.Class NotFoundExcepti on:RMI.server.C hanserv_Stub"
    >
    > How can that be??
    > The file that it cannot find is availible in
    > http://localhost/Java/RMIserver/RMI/...erv_Stub.class and if I
    > place it with the client application everything is fine....
    >
    > I hope somebody can help me with this... Just´say if you need more
    > information but I think it must be something stupid I've forgotten
    >
    > Thanks in advance
    > Søren
    >
    >[/color]


    Comment

    Working...