This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Linux / UNIX and the fly likes Difficulty running RMI server, Red Hat 7.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Difficulty running RMI server, Red Hat 7.0" Watch "Difficulty running RMI server, Red Hat 7.0" New topic
Author

Difficulty running RMI server, Red Hat 7.0

Arsin Delve
Greenhorn

Joined: Jul 08, 2001
Posts: 29
I'm trying to get a very simple RMI client/server working without success. The example is right out of a text book (Mastering EJB by Roman) and I haven't done anything to the code except compile it. When I run the server on my Linux machine and clients attempt to access it, they get an AccessControlException: access denied. This happens as root or any other user, local client or remote and with any number of different ports. When the server runs on my Windows PC, no problems occur.
If anyone has any suggestions, I would really appreciate it. Thanks!
Arsin Delve.
Arsin Delve
Greenhorn

Joined: Jul 08, 2001
Posts: 29
I was mistaken - it does not work in Windows either so this is not a Linux problem and should not be in this topic. Sorry
-Arsin
Sean Casey
Ranch Hand

Joined: Dec 16, 2000
Posts: 625
Have you ever had problems running rmi before?
Arsin Delve
Greenhorn

Joined: Jul 08, 2001
Posts: 29
This is the first RMI thing I've ever done. I've just started learning about it today.
Sean Casey
Ranch Hand

Joined: Dec 16, 2000
Posts: 625
Did you use rmic to produce the stub and skeleton classes?
The reason I ask is that I use rmi without any problems on Redhat 7.0.

[This message has been edited by Sean Casey (edited July 11, 2001).]
Arsin Delve
Greenhorn

Joined: Jul 08, 2001
Posts: 29
Sean: Yes I did. First I used the stubs and skeletons that were provided on the CD, and when that didn't work I recompiled the source and recreated them. Same error.
I apologize once again for posting this in a Linux area. It appeared at first to be a Linux issue, but when I investigated further I realized I get the same error in Windows.
Sean Casey
Ranch Hand

Joined: Dec 16, 2000
Posts: 625
You might have better luck posting this in the rmi/corba forum. You can post your source code if you like, I'll take a look at it, but no gurantees.

Arsin Delve
Greenhorn

Joined: Jul 08, 2001
Posts: 29
Ok, here goes:


Sean Casey
Ranch Hand

Joined: Dec 16, 2000
Posts: 625
Is that it or do you have another file? You seem to be missing some stuff. You haven't created a server??
There are a lot more details. You should check out this link. It's to Bruce Eckel's Thinking in Java. It's free, and a very good book. He has a nice small example on page 974.
www.mindview.net/Books/TIJ/
I hope that helps. Sorry I can't go over your whole program. He has a small example that is really good. I think you'd be better off than having me try to explain it to you.
- Sean
 
Don't get me started about those stupid light bulbs.
 
subject: Difficulty running RMI server, Red Hat 7.0