<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Fixedsys size=2>Hi guys,</FONT></DIV>
<DIV><FONT face=Fixedsys size=2></FONT> </DIV>
<DIV><FONT face=Fixedsys size=2>Any Linuxians see something fishy in the 
following queries Linux part???? i mean regarding the </FONT></DIV>
<DIV><FONT face=Fixedsys size=2>permissions, etc...</FONT></DIV>
<DIV><FONT face=Fixedsys size=2></FONT> </DIV>
<DIV><FONT face=Fixedsys size=2>Plz read on...</FONT></DIV>
<DIV><FONT face=Fixedsys size=2></FONT> </DIV>
<DIV><FONT face=Fixedsys size=2>I have a * RMI SERVER * application running 
on my RHLinux with servercode classpath URL as</FONT></DIV>
<DIV><FONT face=Fixedsys size=2>file:/tmp/dbUtility/ . </FONT></DIV>
<DIV><FONT face=Fixedsys size=2></FONT> </DIV>
<DIV><FONT face=Fixedsys size=2>In the linux machine, samba is configured so 
that i can access the </FONT><FONT face=Fixedsys size=2>path from my Win2k n/w 
too. </FONT></DIV>
<DIV><FONT face=Fixedsys size=2></FONT> </DIV>
<DIV><FONT face=Fixedsys size=2>The folder has RWX permission for all (chmod 777 
has been set)</FONT></DIV>
<DIV><FONT face=Fixedsys size=2></FONT> </DIV>
<DIV><FONT face=Fixedsys size=2>The objects are Activatable ones, and their 
registry entried are as follows</FONT></DIV>
<DIV><FONT face=Fixedsys size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>    ....</FONT></DIV>
<DIV><FONT face="Courier New" size=2>    Properties props = 
new 
Properties(); <BR>    props.put("java.security.policy", 
"sf.policy");</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>    
ActivationGroupDesc.CommandEnvironment ace = null; <BR>    
ActivationGroupDesc dbTGroup = new ActivationGroupDesc(props, 
ace);<BR></FONT></DIV>
<DIV><FONT face="Courier New" size=2>    ActivationGroupID agi = 
ActivationGroup.getSystem().registerGroup(dbTGroup);</FONT></DIV>
<DIV><FONT face="Courier New" size=2>    MarshalledObject data = 
null;</FONT></DIV>
<DIV><FONT face="Courier New" size=2>    String location 
= "file:/tmp/dbUtility";</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>    /*User Management 
service registration*/</FONT></DIV>
<DIV><FONT face="Courier New" size=2>    ActivationDesc desc = 
new ActivationDesc (agi, "sr.tr.server.UMEngine", location, 
data);<BR><BR>    UMInterface uri = 
(UMInterface)Activatable.register(desc);</FONT></DIV>
<DIV><FONT face="Courier New" size=2>    System.out.println("Got 
the stub for the 
UMInterface");        <BR>  <BR>    
Naming.rebind("UMEngine", uri);<BR>    
System.out.println("Exported UMEngine");  <BR></FONT><FONT 
face=Fixedsys size=2></FONT></DIV>
<DIV><FONT face=Fixedsys size=2>Now when i try to run the client on a Win2k 
machine, i get the following error:::::::::::::</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>java.rmi.ConnectException: Connection 
refused to host: 127.0.0.1; nested exception 
is:<BR>        java.net.ConnectException: 
Connection refused: connect<BR>        at 
sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown 
Source)<BR>        at 
sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown 
Source)<BR>        at 
sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown 
Source)<BR>        at 
sun.rmi.server.UnicastRef.invoke(Unknown 
Source)<BR>        at 
sun.rmi.server.Activation$ActivatorImpl_Stub.activate(Unknown 
Source)<BR>        at 
java.rmi.activation.ActivationID.activate(Unknown 
Source)<BR>        at 
sun.rmi.server.ActivatableRef.activate(Unknown 
Source)<BR>        at 
sun.rmi.server.ActivatableRef.invoke(Unknown 
Source)<BR>        at 
sofker.transfer.server.UserManagementEngine_Stub.logIn(Unknown 
Source)<BR>        at 
sofker.transfer.client.UMClient.init(UMClient.java:28)<BR>        
at sofker.transfer.client.UMClient.main(UMClient.java:62)<BR>Caused by: 
java.net.ConnectException: Connection refused: 
connect<BR>        at 
java.net.PlainSocketImpl.socketConnect(Native 
Method)<BR>        at 
java.net.PlainSocketImpl.doConnect(Unknown 
Source)<BR>        at 
java.net.PlainSocketImpl.connectToAddress(Unknown 
Source)<BR>        at 
java.net.PlainSocketImpl.connect(Unknown 
Source)<BR>        at 
java.net.Socket.connect(Unknown 
Source)<BR>        at 
java.net.Socket.connect(Unknown 
Source)<BR>        at 
java.net.Socket.<init>(Unknown 
Source)<BR>        at 
java.net.Socket.<init>(Unknown 
Source)<BR>        at 
sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown 
Source)<BR>        at 
sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown 
Source)<BR>        ... 11 
more<BR></FONT></DIV>
<DIV><FONT face=Fixedsys size=2>But i wonder how the 127.0.0.1 loopback ip comes 
in the stackTrace!!, when actually I'm</FONT></DIV>
<DIV><FONT face=Fixedsys size=2>calling the following piece of code</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>    public UMInterface 
ume;</FONT></DIV>
<DIV><FONT face="Courier New" size=2>    ....</FONT></DIV>
<DIV><FONT face="Courier New" size=2>    String location = 
"rmi://192.168.0.63/UMEngine";<BR>    rClient sc = new 
rClient("Admin", "ha", "");<BR>   </FONT><FONT face="Courier New" 
size=2></FONT></DIV>
<DIV><FONT face="Courier New" size=2>    ume = 
(UMInterface)Naming.lookup(location);<BR>    
System.out.println("Got a remote reference to the UMEngine.")</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face=Fixedsys size=2>The program works fine in a Win2k lan with both 
server and client application on Win-nodes.</FONT></DIV>
<DIV><FONT face=Fixedsys size=2>Also, when the client is run on the same RHLinux 
machine (as i have no other linux machine),</FONT></DIV>
<DIV><FONT face=Fixedsys size=2>it also works fine. The problem came when 
accessing the RMI server running on RHLinux from </FONT></DIV>
<DIV><FONT face=Fixedsys size=2>the Win-client.</FONT></DIV>
<DIV><FONT face=Fixedsys size=2></FONT> </DIV>
<DIV><FONT face=Fixedsys size=2>If any of you guys can help me, I would be 
thankfull..</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>Manjush G. Menon,<BR>Sr Programmer 
(R&D),<BR>Sofker Solutions Pvt Ltd <BR>43/1494, St Benedict Road, 
<BR>Ernakulam North, <BR>KERALA, INDIA - 682018.<BR>Ph: +91 484 
392868 <BR>    +91 484 
393865<BR></FONT></DIV></BODY></HTML>