aspose file tools
The moose likes Distributed Java and the fly likes Strange problem - RMI and JAR Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Distributed Java
Reply Bookmark "Strange problem - RMI and JAR" Watch "Strange problem - RMI and JAR" New topic
Author

Strange problem - RMI and JAR

Garry Kalra
Ranch Hand

Joined: May 25, 2001
Posts: 111
Hi,
I am facing a very strange problem. I am using RMI for the network facilities. When i run my server application using the class files, everything works out fine.
However recently i created a server.jar with all the related files. When i run this server.jar, then the application comes up file, but gives a problem that it is unable to connect to the RMIRegistry, even though the RMIRegistry is running on the correct machine and the correct port. No such problems arise when i run the application using the class files.
I start RMIRegistry separately and have decided that i would ask the examiner to start it separately. Is this acceptable.
Pls help me as i can't figure out whats wrong.
Garry
Michael Ernest
High Plains Drifter
Sheriff

Joined: Oct 25, 2000
Posts: 7292

A JAR file is treated like a directory, not a file. Make sure the registry is set up accordingly.
------------------
Michael Ernest, co-author of: The Complete Java 2 Certification Study Guide


Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
Garry Kalra
Ranch Hand

Joined: May 25, 2001
Posts: 111
How does it make any difference. Its the code that will execute and look for the registry by calling the lookup method.
Pls Explain.
Garry
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Strange problem - RMI and JAR
 
Similar Threads
Near submitting and face this strange problem - pls help
problem while running applicaiton through jar commands........
RMI and jar problem
Strange problem - RMI and JAR
RMI and JAR