geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Jencks <david_jen...@yahoo.com>
Subject Re: NameService returns IOR pointing to host 0.0.0.0
Date Thu, 10 Sep 2009 22:12:32 GMT
Did you try setting ServerHostName in var/config/config- 
substitutions.properties?  I don't know if it _will_ work but it  
_should_ :-)

thanks
david jencks

On Sep 10, 2009, at 2:18 PM, Juergen Weber wrote:

>
> Hi,
>
> I try to address the 2.0.2 MyTime EJB sample from a JacORB Corba  
> client.
> (2.2-SNAPSHOT Build 	2009.09.10-08:12:53.147-0400)
>
> These lines work:
>
> NamingContextExt nc =
> 	
> NamingContextExtHelper 
> .narrow(orb.resolve_initial_references("NameService"));
> MyTimeHome home =  
> MyTimeHomeHelper.narrow(nc.resolve(nc.to_name("MyTime")));
> 	
> but the home IOR points to host 0.0.0.0 which of course cannot be  
> reached,
> so I get a socket connect failure on home.create().
>
> the IOR in home is
> IOR: 
> 000000000000004B524D493A6F72672E6170616368652E6765726F6E696D6F2E7465737473756974652E636F7262612E6D7974696D652E4D7954696D65486F6D653A3030303030303030303030303030303000000000000100000000000001280001020000000008302E302E302E30001AE2000000000074ABACAB3131323532363037323934005F526F6F74504F41004964656E74697479546F6B656E4E6F536563757269747900636F7262612D6D7974696D652D656A622D322E302E322E6A61722F4D7954696D650000636F7262612D6D7974696D652D656A622D322E302E322E6A61722F4D7954696D6500000004000000010000001C000000000001000100000002000100200501000100010109000000000000002000000004000000010000001F0000000400000003000000210000005400000000000000010000000000000022000000000000000000000008060667810201010100000010040100080606678102010101000000000400000000000000000000010000000806066781020101010000000F
>
> which ILU IOR Parser parses as:
>
> _IIOP_ParseCDR:  byte order BigEndian, repository id
> <RMI:org.apache.geronimo.testsuite.corba.mytime.MyTimeHome: 
> 0000000000000000>,
> 1 profile
> _IIOP_ParseCDR:  profile 1 is 296 bytes, tag 0 (INTERNET), BigEndian  
> byte
> order
> (iiop.c:parse_IIOP_Profile):  bo=BigEndian, version=1.2,  
> hostname=0.0.0.0,
> port=6882,
> object_key=<...11252607294._RootPOA.IdentityTokenNoSecurity.corba- 
> mytime-ejb-2.0.2.jar/MyTime..corba-mytime-ejb-2.0.2.jar/MyTime>
> (iiop.c:parse_IIOP_Profile):  encoded object key is
> <%AB%AC%AB11252607294%00_RootPOA%00IdentityTokenNoSecurity%00corba- 
> mytime-ejb-2.0.2.jar%2FMyTime%00%00corba-mytime-ejb-2.0.2.jar 
> %2FMyTime>
> (iiop.c:parse_IIOP_Profile):  non-native cinfo is
> <iiop_1_2_1_%25AB%25AC%25AB11252607294%2500_RootPOA%2500IdentityTokenNoSecurity%2500corba-mytime-ejb-2.0.2.jar%252FMyTime%2500%2500corba-mytime-ejb-2.0.2.jar%252FMyTime@tcp_0.0.0.0_6882

> >
> object key is
> <#AB#AC#AB11252607294#00_RootPOA#00IdentityTokenNoSecurity#00corba- 
> mytime-ejb-2.0.2.jar/MyTime#00#00corba-mytime-ejb-2.0.2.jar/MyTime>;
> no trustworthy most-specific-type info; unrecognized ORB type;
> reachable with IIOP 1.2 at host "0.0.0.0", port 6882
>
> Geronimo comes up without errors, but all ports are at 0.0.0.0,  
> which the
> NameService returns, I guess:
>
> [****************************************] 100% 159s Startup complete
>  Listening on Ports:
>    1050 0.0.0.0 CORBA Naming Service
>    1099 0.0.0.0 RMI Naming
>    1527 0.0.0.0 Derby Connector
>    2001 0.0.0.0 OpenEJB ORB Adapter
>    4201 0.0.0.0 OpenEJB Daemon
>    6882 0.0.0.0 OpenEJB ORB Adapter
>    8009 0.0.0.0 Tomcat Connector AJP TomcatAJPConnector
>    8080 0.0.0.0 Tomcat Connector HTTP BIO TomcatWebConnector
>    8443 0.0.0.0 Tomcat Connector HTTPS BIO TomcatWebSSLConnector
>    9999 0.0.0.0 JMX Remoting Connector
>
> How can I make Geronimo use the eth0 address?
>
> Thanks,
> Juergen
>
>
>
> -- 
> View this message in context: http://www.nabble.com/NameService-returns-IOR-pointing-to-host-0.0.0.0-tp25391214s134p25391214.html
> Sent from the Apache Geronimo - Users mailing list archive at  
> Nabble.com.
>


Mime
View raw message