Results 1 to 10 of 10
  1. #1
    nehaa's Avatar
    nehaa is offline Member
    Join Date
    Jan 2009
    Posts
    35
    Rep Power
    0

    Default java.rmi.ServerError

    I am facing two problems :

    First is :

    java.rmi.ServerError:Error occured in server thread;nested exception is :
    java.lang.NoClassDefFoundError: revisionHistory1



    Second is:

    Is it possible to automatically start rmiregistry on server.

    Thanks in advance.
    :)

  2. #2
    OrangeDog's Avatar
    OrangeDog is offline Senior Member
    Join Date
    Jan 2009
    Location
    Cambridge, UK
    Posts
    838
    Rep Power
    6

    Default

    The classloader can't find the class revisionHistory1.

    What's "on server"?
    Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
    How To Ask Questions The Smart Way

  3. #3
    nehaa's Avatar
    nehaa is offline Member
    Join Date
    Jan 2009
    Posts
    35
    Rep Power
    0

    Default Thanks for your consideration

    My first problem is solved
    I was not implementing Serializable interface.

    But second one

    Is it possible to start rmiregistry on server automatically ??
    still exists.

    Please help me out in this regard.
    Thanks again.

  4. #4
    dswastik is offline Senior Member
    Join Date
    Dec 2008
    Location
    Kolkata
    Posts
    283
    Rep Power
    6

    Default

    Java Code:
    try {
    		 java.rmi.registry.LocateRegistry.createRegistry(1000);
    		 System.out.println("RMI registry ready");
    		 
    
    	  } catch (Exception e) {
    		 System.out.println("Exception starting RMI registry:");
    		 e.printStackTrace();
    	  }
    	  }

  5. #5
    nehaa's Avatar
    nehaa is offline Member
    Join Date
    Jan 2009
    Posts
    35
    Rep Power
    0

    Default Thanks for your consideration

    Thanks a lot.It worked.

    Is it also possible to start rmi server automatically?

    Thanks again.

  6. #6
    OrangeDog's Avatar
    OrangeDog is offline Senior Member
    Join Date
    Jan 2009
    Location
    Cambridge, UK
    Posts
    838
    Rep Power
    6

    Default

    What do you mean by "automatically"?
    Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
    How To Ask Questions The Smart Way

  7. #7
    nehaa's Avatar
    nehaa is offline Member
    Join Date
    Jan 2009
    Posts
    35
    Rep Power
    0

    Thumbs up Sorry for incomplete information

    By Automizing i mean to say :

    Right now i have to run on server side (java PTransposrtServer) and then only I can run my application on client-end.
    Whet I want is a code for running the server by itself.


    Hope I am able to clear my problem.


    Thanks a lot for giving your precious time and valuable suggestions.
    :)

  8. #8
    nehaa's Avatar
    nehaa is offline Member
    Join Date
    Jan 2009
    Posts
    35
    Rep Power
    0

    Thumbs up Sorry for incomplete information

    Right now ;
    I have to run on server-end (java PTransposrtServer) and then only I can run my application on client-end .

    What I want is a code for running the server by itself.

    Hope I am able to clear my problem.

    Thanks a lot for giving your precious time and valuable suggestions.


    SORRY FOR POSTING SAME THREAD TWICE .

    :)

  9. #9
    OrangeDog's Avatar
    OrangeDog is offline Senior Member
    Join Date
    Jan 2009
    Location
    Cambridge, UK
    Posts
    838
    Rep Power
    6

    Default

    What should the server start in response to? At some point you're still going to have to start an application on the server machine. Programs can't magically start running themselves.

    You can delete your double post using the edit button.
    Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
    How To Ask Questions The Smart Way

  10. #10
    nehaa's Avatar
    nehaa is offline Member
    Join Date
    Jan 2009
    Posts
    35
    Rep Power
    0

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •