Cannot start JOnAS with the IIOP protocol on an IBM JDK 1.6/amd64 : COS Name Service not registered with ORB under the name 'NameService' (org.omg.CORBA.ORBPackage.InvalidName)
Got this following error when trying to start JOnAS on an IBM JDK 1.6 /amd64 . Note that this problem doesn't appear on ia32.
$ jonas start
OW2 JOnAS 5.2.0-M1-SNAPSHOT [ http://jonas.ow2.org / jonas@ow2.org ]
JONAS_BASE is set to /home/joaninh/zjonas/pkg/jbase/sb1
Welcome to OW2 JOnAS (Running on Felix).
Should not skip: ^ 3/10/10 4:03:43 PM (I) ExtensionLoaderComponent.__start : Some jars have been found in [/home/joaninh/zjonas/sandboxes/sb1/jonas/assemblies/profiles/full/target/jonas-full-5.2.0-M1-SNAPSHOT-bin.dir/jonas-full-5.2.0-M1-SNAPSHOT/lib/ext, /home/joaninh/zjonas/pkg/jbase/sb1/lib/ext]. They have been transformed into bundles (see /home/joaninh/zjonas/pkg/jbase/sb1/work/ext-bundles directory).This is NOT the preferred way to extend JOnAS libraries, prefer to use carefully created and tested bundles, and place them in your deploy/ directory. 3/10/10 4:03:43 PM (I) ExtensionLoaderComponent.__start : file:/home/joaninh/zjonas/pkg/jbase/sb1/work/ext-bundles/postgresql-8.3-605.jdbc3.jar installed as a bundle. 2010-03-10 16:03:47,387 : NameServiceManager.startNonStartedNS : Name service for iiop is started on port ' 1099'. 2010-03-10 16:03:47,400 : CarolRegistryService.__doStart : Carol Registry Service started 2010-03-10 16:03:47,735 : SingletonNamingManager. : NamingManager: javax.naming.NamingException: Cannot build an instance of the class 'org.ow2.carol.jndi.spi.JacORBIIOPContext' : COS Name Service not registered with ORB under the name 'NameService' [Root exception is javax.naming.ConfigurationException: COS Name Service not registered with ORB under the name 'NameService' [Root exception is org.omg.CORBA.ORBPackage.InvalidName: IDL:omg.org/CORBA/ORB/InvalidName:1.0]] at org.ow2.carol.rmi.exception.NamingExceptionHelper.create(NamingExceptionHelper.java:50) at org.ow2.carol.jndi.spi.AbsInitialContextFactory.getInitialContext(AbsInitialContextFactory.java:126) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:235) at javax.naming.InitialContext.initializeDefaultInitCtx(InitialContext.java:327) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:357) at javax.naming.InitialContext.internalInit(InitialContext.java:295) at javax.naming.InitialContext.(InitialContext.java:212) at org.ow2.carol.util.configuration.ProtocolConfigurationImpl.getInitialContext(ProtocolConfigurationImpl.java:181) at org.ow2.carol.jndi.spi.MultiContext.(MultiContext.java:99) at org.ow2.carol.jndi.spi.MultiOrbInitialContextFactory.getInitialContext(MultiOrbInitialContextFactory.java:72) at org.ow2.carol.jndi.intercept.spi.InterceptorInitialContextFactory.getInitialContext(InterceptorInitialContextFactory.java:77) at org.ow2.carol.jndi.spi.VirtualJNDIContextFactory.getInitialContext(VirtualJNDIContextFactory.java:108) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:235) at javax.naming.InitialContext.initializeDefaultInitCtx(InitialContext.java:327) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:357) at javax.naming.InitialContext.internalInit(InitialContext.java:295) at javax.naming.InitialContext.(InitialContext.java:212) at javax.naming.InitialContext.(InitialContext.java:199) at org.ow2.jonas.lib.naming.SingletonNamingManager$1.execute(SingletonNamingManager.java:111) at org.ow2.jonas.lib.naming.SingletonNamingManager$1.execute(SingletonNamingManager.java:110) at org.ow2.jonas.lib.execution.RunnableHelper.execute(RunnableHelper.java:60) at org.ow2.jonas.lib.naming.SingletonNamingManager.(SingletonNamingManager.java:115) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:44) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:39) at java.lang.reflect.Constructor.newInstance(Constructor.java:516) at org.apache.felix.ipojo.InstanceManager.createObject(InstanceManager.java:600) at org.apache.felix.ipojo.InstanceManager.getPojoObject(InstanceManager.java:776) at org.apache.felix.ipojo.handlers.providedservice.ProvidedService$SingletonStrategy.getService(ProvidedService.java:438) at org.apache.felix.ipojo.handlers.providedservice.ProvidedService.getService(ProvidedService.java:263) at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:306) at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:220) at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:322) at org.apache.felix.framework.Felix.getService(Felix.java:2913) at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:330) at org.apache.felix.ipojo.IPojoContext.getService(IPojoContext.java:260) at org.apache.felix.ipojo.util.Tracker.getService(Tracker.java:426) at org.apache.felix.ipojo.util.DependencyModel.getService(DependencyModel.java:901) at org.apache.felix.ipojo.handlers.dependency.Dependency.invokeCallback(Dependency.java:274) at org.apache.felix.ipojo.handlers.dependency.Dependency.onObjectCreation(Dependency.java:243) at org.apache.felix.ipojo.handlers.dependency.DependencyHandler.__onCreation(DependencyHandler.java:482) at org.apache.felix.ipojo.handlers.dependency.DependencyHandler.onCreation(DependencyHandler.java) at org.apache.felix.ipojo.InstanceManager.getPojoObject(InstanceManager.java:787) at org.apache.felix.ipojo.util.Callback.call(Callback.java:231) at org.apache.felix.ipojo.util.Callback.call(Callback.java:191) at org.apache.felix.ipojo.handlers.lifecycle.callback.LifecycleCallback.call(LifecycleCallback.java:86) at org.apache.felix.ipojo.handlers.lifecycle.callback.LifecycleCallbackHandler.__stateChanged(LifecycleCallbackHandler.java:162) at org.apache.felix.ipojo.handlers.lifecycle.callback.LifecycleCallbackHandler.stateChanged(LifecycleCallbackHandler.java) at org.apache.felix.ipojo.InstanceManager.setState(InstanceManager.java:440) at org.apache.felix.ipojo.InstanceManager.start(InstanceManager.java:321) at org.apache.felix.ipojo.ComponentFactory.createInstance(ComponentFactory.java:155) at org.apache.felix.ipojo.IPojoFactory.createComponentInstance(IPojoFactory.java:298) at org.apache.felix.ipojo.IPojoFactory.createComponentInstance(IPojoFactory.java:235) at org.apache.felix.ipojo.IPojoFactory.updated(IPojoFactory.java:603) at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1279) at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:88) Caused by: javax.naming.ConfigurationException: COS Name Service not registered with ORB under the name 'NameService' [Root exception is org.omg.CORBA.ORBPackage.InvalidName: IDL:omg.org/CORBA/ORB/InvalidName:1.0] at com.sun.jndi.cosnaming.CNCtx.setOrbAndRootContext(CNCtx.java:390) at com.sun.jndi.cosnaming.CNCtx.initUsingIiopUrl(CNCtx.java:321) at com.sun.jndi.cosnaming.CNCtx.initUsingUrl(CNCtx.java:276) at com.sun.jndi.cosnaming.CNCtx.createUsingURL(CNCtx.java:115) at com.sun.jndi.url.iiop.iiopURLContextFactory.getUsingURLIgnoreRest(iiopURLContextFactory.java:68) at com.sun.jndi.url.iiop.iiopURLContext.getRootURLContext(iiopURLContext.java:56) at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:194) at org.ow2.carol.jndi.spi.URLInitialContextFactory.getInitialContext(URLInitialContextFactory.java:51) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:235) at javax.naming.InitialContext.initializeDefaultInitCtx(InitialContext.java:327) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:357) at javax.naming.InitialContext.internalInit(InitialContext.java:295) at javax.naming.InitialContext.(InitialContext.java:212) at org.ow2.carol.jndi.spi.AbsInitialContextFactory.getClassArgs(AbsInitialContextFactory.java:157) at org.ow2.carol.jndi.spi.AbsInitialContextFactory.getInitialContext(AbsInitialContextFactory.java:124) ... 54 more Caused by: org.omg.CORBA.ORBPackage.InvalidName: IDL:omg.org/CORBA/ORB/InvalidName:1.0 at org.jacorb.orb.ORB.resolve_initial_references(ORB.java:1228) at com.sun.jndi.cosnaming.CNCtx.setOrbAndRootContext(CNCtx.java:374) ... 68 more 2010-03-10 16:03:47,739 : LoggerService.log : [ERROR] NamingManager : [NamingManager-0] createInstance -> Cannot invoke the constructor method - the constructor throws an exception : Cannot get InitialContext: javax.naming.NamingException: Cannot build an instance of the class org.ow2.carol.jndi.spi.JacORBIIOPContext : COS Name Service not registered with ORB under the name NameService [Root exception is javax.naming.ConfigurationException: COS Name Service not registered with ORB under the name NameService [Root exception is org.omg.CORBA.ORBPackage.InvalidName: IDL:omg.org/CORBA/ORB/InvalidName:1.0]]