• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error looking up JNDI

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dears,

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(JdbcInfo.java:111)

/*********************************************************************************/

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

Asad.
reply
    Bookmark Topic Watch Topic
  • New Topic