• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Difficulty running RMI server, Red Hat 7.0

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 625
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you ever had problems running rmi before?
 
Arsin Delve
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok, here goes:


 
Sean Casey
Ranch Hand
Posts: 625
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic