Discussions

General J2EE: JNDI lookup problem in Websphere 5.1

  1. JNDI lookup problem in Websphere 5.1 (4 messages)

    Hi,
        I am trying to use Websphere JMS Provider and I have created a JMSQueueConnectionFactory and gave the JNDI name as jms/simpleConnfac and created the a Queue also with the JNDI name jms/simple. After doing these things i have created a Listener port and in the application server that is running fine. ConnectionFactory and Queue are in server scope. To test the queue I wrote a JSP which will send a test message to the Queue in the JSP program i am trying to lookup the QueueConnectionFactory Object but i am failed doing so. It is saying the JNDI name is not existing in the server context. Then I tried to find out the validity of the JNDI name using dumpnamespace utility but to my surprise i did not found any thin with the specified JNDI name but i am able to see the JNDI name from the admin console. please find the error logs below.
    Please suggest me a way to solve this probelm as this is very urgent to finish my project with in the time.


    thanks in Advance.

    Ashok.



    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R javax.naming.NameNotFoundException: Context: C8445/nodes/C8445/servers/server1, name: jms/simpleConnfac: First component in name jms/simpleConnfac not found. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.handleNameNotFound(WsnOptimizedNamingImpl.java:1983)
    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.getNextWsnOptimizedNamingContext(WsnOptimizedNamingImpl.java:1320)
    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.getTargetContext(WsnOptimizedNamingImplBase.java:2424)
    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase$LeafOperationData.<init>(WsnOptimizedNamingImplBase.java:2877)
    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.resolve_complete_info(WsnOptimizedNamingImplBase.java:1390)
    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.WsnOptimizedNaming._NamingContextStub.resolve_complete_info(Unknown Source)
    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.naming.jndicos.CNContextImpl.cosResolve(CNContextImpl.java:3491)
    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1519)
    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1480)
    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1187)
    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1067)
    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:132)
    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at javax.naming.InitialContext.lookup(InitialContext.java:360)
    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at org.apache.jsp._MessageSender._jspService(_MessageSender.java:94)
    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344)
    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:662)
    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:760)
    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:974)
    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:555)
    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:114)
    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
    [6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
  2. Most probably the binding of your connection factory failed. Look in the WebSphere statup log (SystemOut.log) for clues.
  3. Hi,
       you are correct I am I checked the log files and found that "Websphere EmbeddedMessaging Has not been Installed" How to install that as per the IBM information center that should be installed with the Application server. I am using the trail version of IBM websphere 5.1 Application server. I am not able to figure oout the problem why i am not able to install the Websphere Embedded Messaging. Please help me. Please find the systemout logs below.

    thanks in Advance.

    [7/1/05 9:25:55:594 IST] 3d7b9ae5 SecurityCompo I SECJ0309I: Java 2 Security is disabled.
    [7/1/05 9:25:55:610 IST] 3d7b9ae5 SecurityCompo I SECJ0212I: WCCM JAAS configuration information successfully pushed to login provider class.
    [7/1/05 9:25:55:626 IST] 3d7b9ae5 SecurityCompo I SECJ0240I: Security service initialization completed successfully
    style="color:red">[7/1/05 9:25:55:626 IST] 3d7b9ae5 JMSRegistrati A MSGS0601I: WebSphere Embedded Messaging has not been installed
    [7/1/05 9:25:57:594 IST] 3d7b9ae5 ResourceMgrIm I WSVR0049I: Binding PlantsByWebSphere Mail Session as mail/PlantsByWebSphere
    [7/1/05 9:25:57:954 IST] 3d7b9ae5 ResourceMgrIm I WSVR0049I: Binding Default Datasource as DefaultDatasource
    [7/1/05 9:25:57:970 IST] 3d7b9ae5 WASQueueConne E WMSG0901E: The Embedded JMS Binders have been disabled as the Embedded JMS Client has not been installed.
    style="color:red">[7/1/05 9:25:57:985 IST] 3d7b9ae5 MQQueueBinder E WMSG0902E: The WebSphere MQ JMS Binders have been disabled as either the WebSphere MQ Client has not been installed, or the MQ_INSTALL_ROOT variable has not been set.
  4. Embedded messaging is an additional option that needs to be checked on installation. It is not installed by default. You should be able to re-run the installation procedure and still keep your current install intact.
  5. Ashok,

    Did you get a resolution to this problem? If so, what did you have to do? Were you able to install embedded messaging component? Is it included with the trail version of WebSphere?

    Thank you.

    Michael
    Hi,&nbsp;&nbsp;&nbsp;&nbsp;I am trying to use Websphere JMS Provider and I have created a JMSQueueConnectionFactory and gave the JNDI name as jms/simpleConnfac and created the a Queue also with the JNDI name jms/simple. After doing these things i have created a Listener port and in the application server that is running fine. ConnectionFactory and Queue are in server scope. To test the queue I wrote a JSP which will send a test message to the Queue in the JSP program i am trying to lookup the QueueConnectionFactory Object but i am failed doing so. It is saying the JNDI name is not existing in the server context. Then I tried to find out the validity of the JNDI name using dumpnamespace utility but to my surprise i did not found any thin with the specified JNDI name but i am able to see the JNDI name from the admin console. please find the error logs below.Please suggest me a way to solve this probelm as this is very urgent to finish my project with in the time. thanks in Advance.Ashok.[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R javax.naming.NameNotFoundException: Context: C8445/nodes/C8445/servers/server1, name: jms/simpleConnfac: First component in name jms/simpleConnfac not found. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.handleNameNotFound(WsnOptimizedNamingImpl.java:1983)[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.getNextWsnOptimizedNamingContext(WsnOptimizedNamingImpl.java:1320)[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.getTargetContext(WsnOptimizedNamingImplBase.java:2424)[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase$LeafOperationData.<init>(WsnOptimizedNamingImplBase.java:2877)[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.resolve_complete_info(WsnOptimizedNamingImplBase.java:1390)[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.WsnOptimizedNaming._NamingContextStub.resolve_complete_info(Unknown Source)[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.naming.jndicos.CNContextImpl.cosResolve(CNContextImpl.java:3491)[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1519)[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1480)[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1187)[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1067)[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:132)[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at javax.naming.InitialContext.lookup(InitialContext.java:360)[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at org.apache.jsp._MessageSender._jspService(_MessageSender.java:94)[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344)[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:662)[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:760)[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:974)[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:555)[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:114)[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)[6/30/05 17:55:42:865 IST] 25d8ad26 SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))