WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  jndi namespace error

    Posted Wed August 11, 2010 10:38 AM
    jndi namespace error

    --------------------------------

    Hi friends,

    I have configured the jndi for the application and the test connection was succesfull and later the application is not getting connected to the database and showing the error on systemout.log as follows,

    javax.naming.ConfigurationException [Root exception is javax.naming.NameNotFoundException: Name comp/env/jdbc not found in context /"java:/".]
    at com.ibm.ws.naming.java.javaURLContextImpl.throwConfigurationExceptionWithDefaultJavaNS(javaURLContextImpl.java:411)
    at com.ibm.ws.naming.java.javaURLContextImpl.lookup(javaURLContextImpl.java:388)
    at com.ibm.ws.naming.java.javaURLContextRoot.lookup(javaURLContextRoot.java:201)
    at com.ibm.ws.naming.java.javaURLContextRoot.lookup(javaURLContextRoot.java:142)
    at javax.naming.InitialContext.lookup(InitialContext.java:363)

    But when I restart the application manually, the problem get resolved and after a while the same error happens again.

    Requesting ur help to solve this issue and why this is happening.

    Thanks and Regards

    Win Najeem

    --------------------------------

    Posted By: winnajeem at Dec 6 2009 6:18AM


  • 2.  jndi namespace error

    Posted Wed August 11, 2010 10:46 AM
    You should check the mappings in the deployment descriptors of your application. Did you really mapped all the references?
    When I see the error message --> comp/env/jdbc, It seems to me that the App Server is missing a reference!

    --------------------------------

    Posted By: rkrick at Dec 8 2009 7:28AM