IBM Support

PM11925: NOINITIALCONTEXTEXCEPTION DURING APPLICATION SERVER STARTUP PREVENTS SERVER FROM STARTING

Fixes are available

7.0.0.13: WebSphere Application Server V7.0 Fix Pack 13 for AIX
7.0.0.13: WebSphere Application Server V7.0 Fix Pack 13 for HP-UX
7.0.0.13: WebSphere Application Server V7.0 Fix Pack 13 for IBM i
7.0.0.13: WebSphere Application Server V7.0 Fix Pack 13 for Linux
7.0.0.13: WebSphere Application Server V7.0 Fix Pack 13 for Solaris
7.0.0.13: WebSphere Application Server V7.0 Fix Pack 13 for Windows
7.0.0.13: Java SDK 1.6 SR8FP1 Cumulative Fix for WebSphere Application Server
7.0.0.15: WebSphere Application Server V7.0 Fix Pack 15 for AIX
7.0.0.15: Java SDK 1.6 SR9 Cumulative Fix for WebSphere Application Server
7.0.0.15: WebSphere Application Server V7.0 Fix Pack 15 for HP-UX
7.0.0.15: WebSphere Application Server V7.0 Fix Pack 15 for IBM i
7.0.0.15: WebSphere Application Server V7.0 Fix Pack 15 for Linux
7.0.0.15: WebSphere Application Server V7.0 Fix Pack 15 for Solaris
7.0.0.15: WebSphere Application Server V7.0 Fix Pack 15 for Windows
7.0.0.17: WebSphere Application Server V7.0 Fix Pack 17
7.0.0.17: Java SDK 1.6 SR9 FP1 Cumulative Fix for WebSphere Application Server
7.0.0.19: WebSphere Application Server V7.0 Fix Pack 19
7.0.0.21: WebSphere Application Server V7.0 Fix Pack 21
7.0.0.23: WebSphere Application Server V7.0 Fix Pack 23
7.0.0.25: WebSphere Application Server V7.0 Fix Pack 25
7.0.0.27: WebSphere Application Server V7.0 Fix Pack 27
7.0.0.29: WebSphere Application Server V7.0 Fix Pack 29
7.0.0.31: WebSphere Application Server V7.0 Fix Pack 31
7.0.0.27: Java SDK 1.6 SR13 FP2 Cumulative Fix for WebSphere Application Server
7.0.0.33: WebSphere Application Server V7.0 Fix Pack 33
7.0.0.35: WebSphere Application Server V7.0 Fix Pack 35
7.0.0.37: WebSphere Application Server V7.0 Fix Pack 37
7.0.0.39: WebSphere Application Server V7.0 Fix Pack 39
7.0.0.41: WebSphere Application Server V7.0 Fix Pack 41
7.0.0.43: WebSphere Application Server V7.0 Fix Pack 43
7.0.0.45: WebSphere Application Server V7.0 Fix Pack 45
7.0.0.19: Java SDK 1.6 SR9 FP2 Cumulative Fix for WebSphere Application Server
7.0.0.21: Java SDK 1.6 SR9 FP2 Cumulative Fix for WebSphere
7.0.0.23: Java SDK 1.6 SR10 FP1 Cumulative Fix for WebSphere
7.0.0.25: Java SDK 1.6 SR11 Cumulative Fix for WebSphere Application Server
7.0.0.27: Java SDK 1.6 SR12 Cumulative Fix for WebSphere Application Server
7.0.0.29: Java SDK 1.6 SR13 FP2 Cumulative Fix for WebSphere Application Server
7.0.0.45: Java SDK 1.6 SR16 FP60 Cumulative Fix for WebSphere Application Server
7.0.0.31: Java SDK 1.6 SR15 Cumulative Fix for WebSphere Application Server
7.0.0.35: Java SDK 1.6 SR16 FP1 Cumulative Fix for WebSphere Application Server
7.0.0.37: Java SDK 1.6 SR16 FP3 Cumulative Fix for WebSphere Application Server
7.0.0.39: Java SDK 1.6 SR16 FP7 Cumulative Fix for WebSphere Application Server
7.0.0.41: Java SDK 1.6 SR16 FP20 Cumulative Fix for WebSphere Application Server
7.0.0.43: Java SDK 1.6 SR16 FP41 Cumulative Fix for WebSphere Application Server

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • During startup on a WebSphere AppServer 7.0.0.7 installation,
    the AppServer fails to start with the following error in the
    SystemOut.log...
    
    [4/8/10 16:28:53:462 GMT+00:00] 0000000a SibMessage    E   [:]
    CWSIU0051E: An internal error occurred.  An object of class
    com.ibm.ws.buffermgmt.impl.WsByteBufferPoolManagerImpl cannot be
    created because of exception:
    javax.naming.NoInitialContextException: Need to specify class
    name in environment or system property, or as an applet
    parameter, or in an application resource file:
    java.naming.factory.initial.
    
    
    The corresponding FFDC entry shows the following stack trace for
    the error above...
    
    [4/8/10 16:28:53:276 GMT+00:00]     FFDC
    Exception:javax.naming.NoInitialContextException
    SourceId:com.ibm.ws.sib.utils.bytebuffer.BufferPoolManagerRefere
    nce.BufferPoolManagerReference.findInManagedEnvironment
    ProbeId:159
    javax.naming.NoInitialContextException: Need to specify class
    name in environment or system property, or as an applet
    parameter, or in an application resource file:
    java.naming.factory.initial
    at
    javax.naming.spi.NamingManager.getInitialContext(NamingManager.j
    ava:645)
    at
    javax.naming.InitialContext.getDefaultInitCtx(InitialContext.jav
    a:288)
    at
    javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContex
    t.java:325)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at
    com.ibm.ws.sib.utils.bytebuffer.BufferPoolManagerReference.findF
    romNamingService(BufferPoolManagerReference.java:204)
    at
    com.ibm.ws.sib.utils.bytebuffer.BufferPoolManagerReference.findI
    nManagedEnvironment(BufferPoolManagerReference.java:144)
    at
    com.ibm.ws.sib.utils.bytebuffer.BufferPoolManagerReference.<clin
    it>(BufferPoolManagerReference.java:78)
    at
    com.ibm.ws.sib.jfapchannel.buffer.impl.RichByteBufferPool.<init>
    (RichByteBufferPool.java:77)
    at
    sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
    Method)
    at
    sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeCons
    tructorAccessorImpl.java:39)
    at
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Delega
    tingConstructorAccessorImpl.java:27)
    at
    java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at java.lang.Class.newInstance0(Class.java:355)
    at java.lang.Class.newInstance(Class.java:308)
    at
    com.ibm.ws.sib.jfapchannel.buffer.WsByteBufferPool.getInstance(W
    sByteBufferPool.java:91)
    at
    com.ibm.ws.sib.jfapchannel.JFapByteBuffer.<clinit>(JFapByteBuffe
    r.java:80)
    at
    com.ibm.ws.sib.comms.common.JFAPCommunicator.<clinit>(JFAPCommun
    icator.java:233)
    at
    com.ibm.ws.sib.comms.client.ClientConnectionFactoryImpl.createCl
    ientConnection(ClientConnectionFactoryImpl.java:69)
    at
    com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl.remoteA
    ttach(TrmSICoreConnectionFactoryImpl.java:475)
    at
    com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl.connect
    FromInsideServer(TrmSICoreConnectionFactoryImpl.java:402)
    at
    com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl.localBo
    otstrap(TrmSICoreConnectionFactoryImpl.java:317)
    at
    com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl.createC
    onnection(TrmSICoreConnectionFactoryImpl.java:298)
    at
    com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl.createC
    onnection(TrmSICoreConnectionFactoryImpl.java:216)
    at
    com.ibm.ws.sib.ra.inbound.impl.SibRaMessagingEngineConnection.cr
    eateConnection(SibRaMessagingEngineConnection.java:1088)
    at
    com.ibm.ws.sib.ra.inbound.impl.SibRaMessagingEngineConnection.<i
    nit>(SibRaMessagingEngineConnection.java:658)
    at
    com.ibm.ws.sib.ra.inbound.impl.SibRaCommonEndpointActivation$Des
    tinationStrategy.connectUsingTrmNoTargetData(SibRaCommonEndpoint
    Activation.java:1798)
    at
    com.ibm.ws.sib.ra.inbound.impl.SibRaCommonEndpointActivation.con
    nectUsingTrmNoTargetData(SibRaCommonEndpointActivation.java:585)
    at
    com.ibm.ws.sib.ra.inbound.impl.SibRaCommonEndpointActivation.con
    nectUsingTrm(SibRaCommonEndpointActivation.java:550)
    at
    com.ibm.ws.sib.ra.inbound.impl.SibRaCommonEndpointActivation.con
    nect(SibRaCommonEndpointActivation.java:459)
    at
    com.ibm.ws.sib.ra.inbound.impl.SibRaCommonEndpointActivation.che
    ckMEs(SibRaCommonEndpointActivation.java:339)
    at
    com.ibm.ws.sib.ra.inbound.impl.SibRaCommonEndpointActivation.tim
    erLoop(SibRaCommonEndpointActivation.java:298)
    at
    com.ibm.ws.sib.ra.inbound.impl.SibRaCommonEndpointActivation.<in
    it>(SibRaCommonEndpointActivation.java:279)
    at
    com.ibm.ws.sib.ra.inbound.impl.SibRaScalableEndpointActivation.<
    init>(SibRaScalableEndpointActivation.java:63)
    at
    com.ibm.ws.sib.ra.inbound.impl.SibRaResourceAdapterImpl.endpoint
    Activation(SibRaResourceAdapterImpl.java:363)
    at
    com.ibm.ejs.j2c.ActivationSpecWrapperImpl.activateUnderRAClassLo
    aderContext(ActivationSpecWrapperImpl.java:552)
    at
    com.ibm.ejs.j2c.ActivationSpecWrapperImpl.reActivateEndpoint(Act
    ivationSpecWrapperImpl.java:499)
    at
    com.ibm.ejs.j2c.RAWrapperImpl.resumeRAInbound(RAWrapperImpl.java
    :1548)
    at
    com.ibm.ejs.j2c.J2CServerListener.resumeInboundRAs(J2CServerList
    ener.java:216)
    at
    com.ibm.ejs.j2c.J2CServerListener.propertyChange(J2CServerListen
    er.java:150)
    at
    java.beans.PropertyChangeSupport.firePropertyChange(PropertyChan
    geSupport.java:339)
    at
    java.beans.PropertyChangeSupport.firePropertyChange(PropertyChan
    geSupport.java:347)
    at
    java.beans.PropertyChangeSupport.firePropertyChange(PropertyChan
    geSupport.java:276)
    at
    com.ibm.wsspi.runtime.component.WsComponentImpl.setState(WsCompo
    nentImpl.java:409)
    at
    com.ibm.ws.runtime.component.ComponentImpl.setState(ComponentImp
    l.java:144)
    at
    com.ibm.ws.runtime.component.ComponentImpl.setStartState(Compone
    ntImpl.java:164)
    at
    com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:51
    0)
    

Local fix

  • No local work around
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server V7.0                                 *
    ****************************************************************
    * PROBLEM DESCRIPTION: NOINITIALCONTEXTEXCEPTION DURING        *
    *                      APPLICATION SERVER STARTUP PREVENTS     *
    *                      SERVER FROM STARTING                    *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    During server startup of  WebSphere Application Server V7.0 the
    AppServer fails to start with the following error in the
    SystemOut.log.
    
    [4/8/10 16:28:53:462 GMT+00:00] 0000000a SibMessage    E   [:]
    CWSIU0051E: An internal error occurred.  An object of class
    com.ibm.ws.buffermgmt.impl.WsByteBufferPoolManagerImpl cannot be
    created because of exception:
    javax.naming.NoInitialContextException: Need to specify class
    name in environment or system property, or as an applet
    parameter, or in an application resource file:
    java.naming.factory.initial.
    
    
    The corresponding FFDC entry shows the following stack trace for
    the error above...
    
    [4/8/10 16:28:53:276 GMT+00:00]     FFDC
    Exception:javax.naming.NoInitialContextException
    SourceId:com.ibm.ws.sib.utils.bytebuffer.BufferPoolManagerRefere
    nce.BufferPoolManagerReference.findInManagedEnvironment
    ProbeId:159
    javax.naming.NoInitialContextException: Need to specify class
    name in environment or system property, or as an applet
    parameter, or in an application resource file:
    java.naming.factory.initial
    at
    javax.naming.spi.NamingManager.getInitialContext(NamingManager.j
    ava:645)
    at
    javax.naming.InitialContext.getDefaultInitCtx(InitialContext.jav
    a:288)
    at
    javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContex
    t.java:325)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at
    com.ibm.ws.sib.utils.bytebuffer.BufferPoolManagerReference.findF
    romNamingService(BufferPoolManagerReference.java:204)
    at
    com.ibm.ws.sib.utils.bytebuffer.BufferPoolManagerReference.findI
    nManagedEnvironment(BufferPoolManagerReference.java:144)
    at
    com.ibm.ws.sib.utils.bytebuffer.BufferPoolManagerReference.<clin
    it>(BufferPoolManagerReference.java:78)
    at
    com.ibm.ws.sib.jfapchannel.buffer.impl.RichByteBufferPool.<init>
    (RichByteBufferPool.java:77)
    at
    sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
    Method)
    at
    sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeCons
    tructorAccessorImpl.java:39)
    at
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Delega
    tingConstructorAccessorImpl.java:27)
    at
    java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at java.lang.Class.newInstance0(Class.java:355)
    at java.lang.Class.newInstance(Class.java:308)
    at
    com.ibm.ws.sib.jfapchannel.buffer.WsByteBufferPool.getInstance(W
    sByteBufferPool.java:91)
    at
    com.ibm.ws.sib.jfapchannel.JFapByteBuffer.<clinit>(JFapByteBuffe
    r.java:80)
    at
    com.ibm.ws.sib.comms.common.JFAPCommunicator.<clinit>(JFAPCommun
    icator.java:233)
    at
    com.ibm.ws.sib.comms.client.ClientConnectionFactoryImpl.createCl
    ientConnection(ClientConnectionFactoryImpl.java:69)
    at
    com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl.remoteA
    ttach(TrmSICoreConnectionFactoryImpl.java:475)
    at
    com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl.connect
    FromInsideServer(TrmSICoreConnectionFactoryImpl.java:402)
    at
    com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl.localBo
    otstrap(TrmSICoreConnectionFactoryImpl.java:317)
    at
    com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl.createC
    onnection(TrmSICoreConnectionFactoryImpl.java:298)
    at
    com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl.createC
    onnection(TrmSICoreConnectionFactoryImpl.java:216)
    at
    com.ibm.ws.sib.ra.inbound.impl.SibRaMessagingEngineConnection.cr
    eateConnection(SibRaMessagingEngineConnection.java:1088)
    at
    com.ibm.ws.sib.ra.inbound.impl.SibRaMessagingEngineConnection.<i
    nit>(SibRaMessagingEngineConnection.java:658)
    at
    com.ibm.ws.sib.ra.inbound.impl.SibRaCommonEndpointActivation$Des
    tinationStrategy.connectUsingTrmNoTargetData(SibRaCommonEndpoint
    Activation.java:1798)
    at
    com.ibm.ws.sib.ra.inbound.impl.SibRaCommonEndpointActivation.con
    nectUsingTrmNoTargetData(SibRaCommonEndpointActivation.java:585)
    at
    com.ibm.ws.sib.ra.inbound.impl.SibRaCommonEndpointActivation.con
    nectUsingTrm(SibRaCommonEndpointActivation.java:550)
    at
    com.ibm.ws.sib.ra.inbound.impl.SibRaCommonEndpointActivation.con
    nect(SibRaCommonEndpointActivation.java:459)
    at
    com.ibm.ws.sib.ra.inbound.impl.SibRaCommonEndpointActivation.che
    ckMEs(SibRaCommonEndpointActivation.java:339)
    at
    com.ibm.ws.sib.ra.inbound.impl.SibRaCommonEndpointActivation.tim
    erLoop(SibRaCommonEndpointActivation.java:298)
    at
    com.ibm.ws.sib.ra.inbound.impl.SibRaCommonEndpointActivation.<in
    it>(SibRaCommonEndpointActivation.java:279)
    at
    com.ibm.ws.sib.ra.inbound.impl.SibRaScalableEndpointActivation.<
    init>(SibRaScalableEndpointActivation.java:63)
    at
    com.ibm.ws.sib.ra.inbound.impl.SibRaResourceAdapterImpl.endpoint
    Activation(SibRaResourceAdapterImpl.java:363)
    at
    com.ibm.ejs.j2c.ActivationSpecWrapperImpl.activateUnderRAClassLo
    aderContext(ActivationSpecWrapperImpl.java:552)
    at
    com.ibm.ejs.j2c.ActivationSpecWrapperImpl.reActivateEndpoint(Act
    ivationSpecWrapperImpl.java:499)
    at
    com.ibm.ejs.j2c.RAWrapperImpl.resumeRAInbound(RAWrapperImpl.java
    :1548)
    at
    com.ibm.ejs.j2c.J2CServerListener.resumeInboundRAs(J2CServerList
    ener.java:216)
    at
    com.ibm.ejs.j2c.J2CServerListener.propertyChange(J2CServerListen
    er.java:150)
    at
    java.beans.PropertyChangeSupport.firePropertyChange(PropertyChan
    geSupport.java:339)
    at
    java.beans.PropertyChangeSupport.firePropertyChange(PropertyChan
    geSupport.java:347)
    at
    java.beans.PropertyChangeSupport.firePropertyChange(PropertyChan
    geSupport.java:276)
    at
    com.ibm.wsspi.runtime.component.WsComponentImpl.setState(WsCompo
    nentImpl.java:409)
    at
    com.ibm.ws.runtime.component.ComponentImpl.setState(ComponentImp
    l.java:144)
    at
    com.ibm.ws.runtime.component.ComponentImpl.setStartState(Compone
    ntImpl.java:164)
    at
    com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:51
    0)
    
    
    The classloader that the J2C code used was causing
    the issue. Setting it to something other then the server
    classloader will cause "new InitialContext()" to fail when
    looking up  something defined by WAS's jndi.properties.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PM11925

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-04-09

  • Closed date

    2010-05-28

  • Last modified date

    2010-05-28

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WEBSPHERE APP S

  • Fixed component ID

    5724J0800

Applicable component levels

  • R700 PSY

       UP



Document information

More support for: WebSphere Application Server
General

Software version: 7.0

Reference #: PM11925

Modified date: 28 May 2010