Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
2 replies Latest Post - ‏2011-06-17T15:15:16Z by KSilvestre
NileshShirude
NileshShirude
3 Posts
ACCEPTED ANSWER

Pinned topic javax.naming.NameNotFoundException for JNDI lookup in Websphere 6.1

‏2010-06-01T09:14:12Z |
HI ,

I have attached below error log of JNDI lookup for LOG4j in Websphere 6.1 and to get the connection with lookup I have made entry in web.xml as

<env-entry >

<env-entry-name>Log4J</env-entry-name>

<env-entry-value>app/properties/logging/log4j.properties</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>

</env-entry>

And corresponding java entry for lookup is
look up name= java:comp/env/Log4J

This code is working fine on Websphere 5.1 but I am getting following exception when I am trying to execute it on WebSphere 6.1

Please provide solution for below exception.

Thanks & Regards,

Nilesh

Exception ====>>>>>>>>>

javax.naming.NameNotFoundException
: Context: synpszd1358Node04Cell/nodes/synpszd1358Node04/servers/server1, name: comp/env/Log4J: First component in name comp/env/Log4J not found in context "java:" . Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
6/1/10 12:32:04:688 IST 00000277 SystemErr R at com.ibm.ws.naming.jndicos.CNContextImpl.processNotFoundException(

CNContextImpl.java:4754
) 6/1/10 12:32:04:688 IST 00000277 SystemErr R at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(
CNContextImpl.java:1911
) 6/1/10 12:32:04:688 IST 00000277 SystemErr R at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(
CNContextImpl.java:1866
) 6/1/10 12:32:04:688 IST 00000277 SystemErr R at com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(
CNContextImpl.java:1556
) 6/1/10 12:32:04:688 IST 00000277 SystemErr R at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(
CNContextImpl.java:1358

6/1/10 12:32:04:688 IST 00000277 SystemErr R at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:172

)
Updated on 2011-06-17T15:15:16Z at 2011-06-17T15:15:16Z by KSilvestre
  • Camila
    Camila
    1 Post
    ACCEPTED ANSWER

    Re: javax.naming.NameNotFoundException for JNDI lookup in Websphere 6.1

    ‏2011-06-16T21:08:58Z  in response to NileshShirude
    Somebody has a solution, please?
    The error still persist.
  • KSilvestre
    KSilvestre
    46 Posts
    ACCEPTED ANSWER

    Re: javax.naming.NameNotFoundException for JNDI lookup in Websphere 6.1

    ‏2011-06-17T15:15:16Z  in response to NileshShirude
    Hello,

    This was a discussion forum used for the beta version of WebSphere Portal V7.0, which is now generally available.

    Another forum exists for all generally available versions of WebSphere Portal and WebSphere Portal Express.

    Please go to the Portal and Portlet Development forum for questions regarding generally available versions.

    http://www.ibm.com/developerworks/forums/forum.jspa?forumID=1190

    Thank you,
    Karen Campbell
    WebSphere Portal Project Manager