|
| Apache Geronimo > Discussion Forums | User List | Dev List | Wiki | Issue Tracker |
|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
NameService returns IOR pointing to host 0.0.0.0Hi,
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 |
|
|
Re: NameService returns IOR pointing to host 0.0.0.0Did 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@... > > > 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. > |
|
|
Re: NameService returns IOR pointing to host 0.0.0.0Thanks, that helped, my Corba client can call the EJB now.
But it should work automatically that the server knows its listen address (your friendly helpers at the mailing list might not always have time ;-) The console already knew the eth0 address: Node linda/127.0.1.1 So, why can't this linda hostname be used server-wide? Thanks, Juergen
|
|
|
Re: NameService returns IOR pointing to host 0.0.0.0On Sep 10, 2009, at 11:25 PM, Juergen Weber wrote: > > Thanks, that helped, my Corba client can call the EJB now. > > But it should work automatically that the server knows its listen > address > (your friendly helpers at the mailing list might not always have > time ;-) > > The console already knew the eth0 address: > Node linda/127.0.1.1 > > So, why can't this linda hostname be used server-wide? I'm not sure where you are seeing this. However, according to your first post, the tomcat is listening on 0.0.0.0, i.e. all interfaces. I strongly suspect the console is just picking one more or less randomly to tell you about. Certainly if you had 10 network cards in the box I'd expect you'd prefer to configure which one or ones to use. It does seem to me that we should be able to configure the corba naming service ip address separately from the server host address in case you want to run it remotely. thanks david jencks > > Thanks, > Juergen > > > > djencks wrote: >> >> 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 >> >> > > -- > View this message in context: http://www.nabble.com/NameService-returns-IOR-pointing-to-host-0.0.0.0-tp25391214s134p25395693.html > Sent from the Apache Geronimo - Users mailing list archive at > Nabble.com. > |
| Free embeddable forum powered by Nabble | Forum Help |
