permaculture playing cards*
The moose likes Other Java Products and Servers and the fly likes Geronimo: Error starting transient name service on port 1050 - But it's Geronimo who does start it Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Geronimo: Error starting transient name service on port 1050 - But it Watch "Geronimo: Error starting transient name service on port 1050 - But it New topic
Author

Geronimo: Error starting transient name service on port 1050 - But it's Geronimo who does start it

Jussi Taimiaho
Ranch Hand

Joined: Mar 01, 2004
Posts: 40
I've searched for quite some time solutions for this, and all reasons I've found do not help me.

When Geronimo 3.0.0 is not running, I check with netstat, that the port 1050 most definetely is not in use. And I go for:
> bin/geronimo run

Watching the logs roll by, I see that one again: Error starting transient name service on port 1050 .

And yes, netstat shows that "java" is using the port. Something wrong(?) with the port, fine:
>vi var/config/config-substitutions.properties ===> COSNamingPort = 10500
> bin/geronimo run

... lo and behold: " Error starting transient name service on port 10500 "

Thats corba port, taking it out from starting components does remove the error - but of course breaks the server in so many other ways.


Any help, most warmly welcome.

-jussi




Stack traces:
*************************
2013-02-14 10:06:48,425 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.configs/j2ee-corba-yoko/3.0.0/car?ServiceModule=org.apache.geronimo.configs/j2ee-corba-yoko/3.0.0/car,j2eeType=CORBANameService,name=NameServer"
org.apache.geronimo.corba.security.config.ConfigException: Error starting transient name service on port 1050
at org.apache.geronimo.yoko.ORBConfigAdapter.createNameService(ORBConfigAdapter.java:191)
at org.apache.geronimo.corba.NameService.doStart(NameService.java:164)
at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:225)
at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:710)
at org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:239)
at org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:99)
at org.apache.geronimo.system.osgi.BootActivator$1.execute(BootActivator.java:107)
at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:66)
at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:32)
Caused by: org.apache.yoko.orb.CosNaming.tnaming.TransientServiceException: Unable to initialize name service
at org.apache.yoko.orb.CosNaming.tnaming.TransientNameService.initialize(TransientNameService.java:156)
at org.apache.geronimo.yoko.ORBConfigAdapter$1.run(ORBConfigAdapter.java:183)
at org.apache.geronimo.yoko.ORBConfigAdapter.createNameService(ORBConfigAdapter.java:186)
... 16 more
Caused by: org.omg.CORBA.COMM_FAILURE: bind() failed: Address already in use: vmcid: Apache minor code: 0x8 completed: No
at org.apache.yoko.orb.OCI.IIOP.Acceptor_impl.<init>(Acceptor_impl.java:542)
at org.apache.yoko.orb.OCI.IIOP.AccFactory_impl.create_acceptor(AccFactory_impl.java:163)
at org.apache.yoko.orb.OBPortableServer.POAManagerFactory_impl.create_POAManager(POAManagerFactory_impl.java:252)
at org.apache.yoko.orb.OB.ORBControl.initializeRootPOA(ORBControl.java:539)
at org.apache.yoko.orb.OBCORBA.ORB_impl.resolve_initial_references(ORB_impl.java:1094)
at org.apache.yoko.orb.CosNaming.tnaming.TransientNameService.initialize(TransientNameService.java:130)
... 18 more
Caused by: java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:353)
at java.net.ServerSocket.bind(ServerSocket.java:336)
at java.net.ServerSocket.<init>(ServerSocket.java:202)
at org.apache.yoko.orb.OCI.IIOP.DefaultConnectionHelper.createServerSocket(DefaultConnectionHelper.java:55)
at org.apache.yoko.orb.OCI.IIOP.Acceptor_impl.<init>(Acceptor_impl.java:532)
... 23 more
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Geronimo: Error starting transient name service on port 1050 - But it's Geronimo who does start it