LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-27-2004, 08:43 AM   #1
DrDan
LQ Newbie
 
Registered: Feb 2004
Posts: 1

Rep: Reputation: 0
can't run java RMI server


Relative linux newbie, although I did have this working before I tore down
and rebuilt my network (moral: leave well enough alone).

Details: Running Redhat 7.2; hostname is 'linux1'. I'm not using DNS, so the etc/hosts looks like

[root@linux1 etc]# cat hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
169.245.45.220 linux1 linux1
169.254.45.210 xp1 xp1
127.0.0.1 localhost.localdomain localhost

etc/host.conf is

[root@linux1 etc]# cat host.conf
order hosts,bind


I can telnet or ftp in to linux1 from the XP box (xp1). However, I can't run a simple RMI server on linux1. If I try to start the server (after starting the rmiregistry) using linux1 as the url, then I get:

[widdjr@linux1 rmitry]$ rmiregistry -J-Djava.security.policy=client.policy &
[1] 1425
[widdjr@linux1 rmitry]$ java ProductServer &
[2]! 1437
[widdjr@linux1 rmitry]$ Constructing server implmentations...
Binding server implementations to registry...
Error: java.rmi.ConnectIOException: Exception creating connection to: linux1; nested exception is:
java.net.SocketException: Network is unreachable


If I change the url to 'localhost' in the server, I can start the server, but then I cannot run the client:

widdjr@linux1 rmitry]$ java ProductServer &
[3] 1510
[widdjr@linux1 rmitry]$ Constructing server implmentations...
Binding server implementations to registry...
Waiting for invocations from client...

[widdjr@linux1 rmitry]$ java -Djava.security.policy=client.policy ProductClient localhost
Error: java.rmi.ConnectIOException: Exception creating connection to: 169.245.45.220; nested exception is:
java.net.SocketException: Network is unreachable


Also, although I can telnet or ftp in to linux1 from the XP box, I cannot ping or telnet or ftp to linux1 from linux1, which seems odd. (I can ping, telnet, or ftp 'localhost' from linux1, and can ping xp1.)

Any ideas much appreciated.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
JAVA - RMI - rmic doesn't work Falco Programming 4 10-03-2010 11:37 PM
Java RMI Connection Problem mtest Programming 7 09-01-2005 02:43 PM
Java RMI ClassCastException sherryanee Programming 2 10-19-2004 05:25 PM
Java RMI in Linux?? hiteshmaisheri Linux - Software 0 04-20-2004 10:30 AM
About Java RMI poeta_boy Programming 4 01-27-2004 02:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration