This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difficulty running RMI server, Red Hat 7.0

 
Arsin Delve
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 625
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you ever had problems running rmi before?
 
Arsin Delve
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the first RMI thing I've ever done. I've just started learning about it today.
 
Sean Casey
Ranch Hand
Posts: 625
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 625
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, here goes:


 
Sean Casey
Ranch Hand
Posts: 625
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic