Link to home
Start Free TrialLog in
Avatar of balatrue
balatrue

asked on

com.ibm.ws.exception.RuntimeError: Unable to initialize the Name Service

Hi guys,
              I tried to start websphere Application Server 5.1 and I got the following error in SerevrOut.log file. Could you please help me to figure out this.

com.ibm.ws.exception.RuntimeError: Unable to initialize the Name Service
      at com.ibm.ws.naming.bootstrap.NameServerImpl.start(NameServerImpl.java:417)
      at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
      at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
      at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:183)
      at com.ibm.ws.runtime.WsServer.start(WsServer.java:128)
      at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
      at java.lang.reflect.Method.invoke(Method.java:386)
      at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:189)
Caused by: com.ibm.ws.naming.distcos.NameSpaceConstructionException: instantiateNC: Unexpected exception encountered
      at com.ibm.ws.naming.distcos.NameSpaceBuilder.instantiateNC(NameSpaceBuilder.java:1319)
      at com.ibm.ws.naming.distcos.NameSpaceBuilder.createRootNC(NameSpaceBuilder.java:1215)
      at com.ibm.ws.naming.distcos.NameSpaceBuilder.buildNameSpace(NameSpaceBuilder.java:310)
      at com.ibm.ws.naming.distcos.NSBSingleAppSvr.buildNameSpace(NSBSingleAppSvr.java:78)
      at com.ibm.ws.naming.bootstrap.NameServerImpl.start(NameServerImpl.java:403)
      ... 10 more
Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:79)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:43)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:313)
      at com.ibm.ws.naming.distcos.NameSpaceBuilder.instantiateNC(NameSpaceBuilder.java:1312)
      ... 14 more
Caused by: java.lang.NoSuchMethodError: com.ibm.ejs.oa.UserKey: method updateBytes([BI)V not found
      at com.ibm.ejs.oa.UserKey.<init>(UserKey.java:256)
      at com.ibm.ejs.oa.EJSRootOAImpl.registerServant(EJSRootOAImpl.java:392)
      at com.ibm.ejs.oa.EJSOAImpl.registerServant(EJSOAImpl.java:331)
      at com.ibm.ws.naming.distcos.ServantManagerImpl.registerContext(ServantManagerImpl.java:183)
      at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.<init>(WsnOptimizedNamingImplBase.java:221)
      at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.<init>(WsnOptimizedNamingImpl.java:182)
      at com.ibm.ws.naming.distcos.WsnDistributedNC.<init>(WsnDistributedNC.java:116)
      at com.ibm.ws.naming.distcos.ReadOnlyNC.<init>(ReadOnlyNC.java:59)
      ... 19 more
---- Begin backtrace for nested exception
com.ibm.ws.naming.distcos.NameSpaceConstructionException: instantiateNC: Unexpected exception encountered
      at com.ibm.ws.naming.distcos.NameSpaceBuilder.instantiateNC(NameSpaceBuilder.java:1319)
      at com.ibm.ws.naming.distcos.NameSpaceBuilder.createRootNC(NameSpaceBuilder.java:1215)
      at com.ibm.ws.naming.distcos.NameSpaceBuilder.buildNameSpace(NameSpaceBuilder.java:310)
      at com.ibm.ws.naming.distcos.NSBSingleAppSvr.buildNameSpace(NSBSingleAppSvr.java:78)
      at com.ibm.ws.naming.bootstrap.NameServerImpl.start(NameServerImpl.java:403)
      at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
      at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
      at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:183)
      at com.ibm.ws.runtime.WsServer.start(WsServer.java:128)
      at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
      at java.lang.reflect.Method.invoke(Method.java:386)
      at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:189)
Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:79)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:43)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:313)
      at com.ibm.ws.naming.distcos.NameSpaceBuilder.instantiateNC(NameSpaceBuilder.java:1312)
      ... 14 more
Caused by: java.lang.NoSuchMethodError: com.ibm.ejs.oa.UserKey: method updateBytes([BI)V not found
      at com.ibm.ejs.oa.UserKey.<init>(UserKey.java:256)
      at com.ibm.ejs.oa.EJSRootOAImpl.registerServant(EJSRootOAImpl.java:392)
      at com.ibm.ejs.oa.EJSOAImpl.registerServant(EJSOAImpl.java:331)
      at com.ibm.ws.naming.distcos.ServantManagerImpl.registerContext(ServantManagerImpl.java:183)
      at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.<init>(WsnOptimizedNamingImplBase.java:221)
      at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.<init>(WsnOptimizedNamingImpl.java:182)
      at com.ibm.ws.naming.distcos.WsnDistributedNC.<init>(WsnDistributedNC.java:116)
      at com.ibm.ws.naming.distcos.ReadOnlyNC.<init>(ReadOnlyNC.java:59)
      ... 19 more


Thanks
Bala
Avatar of HonorGod
HonorGod
Flag of United States of America image

Locate the server.xml for this particular file.

What is the value of the 'standalone' property of the AdminService element in this file?
Is it a single AppServer, or a Federated AppServer, or a cluster member?
Avatar of balatrue
balatrue

ASKER

It is a single App Server. . I couldn't find standalone property of the AdminService. I guess i am missing something.
appears to be a mismatch in your jar versions.
Ok if it is a mismatch in a jar version, what i have to do fix it. Please explain me going further.
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Ok , I will check that, thanks !