Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Error looking up JNDI  RSS feed

a umar
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

i have created a new domain, on AIX machine, with weblogic 7.
On deploying the datasource to the server, it is giving error

<Dec 4, 2010 3:58:33 PM PKT> <Error> <JDBC> <001059> <Error during Data Source creation: weblogic.common.ResourceException: DataSource(mypool) can't be created. Can not find weblogic.jdbc.JdbcServices in JNDI tree
at weblogic.jdbc.common.internal.JdbcInfo.validateConnectionPool(


looks as if weblogic is unable to find the resource on jndi tree, however, viewing the JNDI tree through weblogic displays the resource.

as a way around, it write a wrapper to JdbcInfo.class(this class looks up the JdbcServices) and where it gets the initial context, added the line
"hashtable.put("java.naming.factory.initial", "weblogic.jndi.WLInitialContextFactory");"

after adding this to the bootclasspath, the deployment of datasource works fine.

However, this initiates a change in entire code, that where ever "new InitialContext()" is used, i need to specifically set the "WLInitialContextFactory", however, it should not, as the objects are server side objects and by definition, weblogic should get the local context.....

an urgent help in this regard shall be appreciated

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!