IBM Support

javax.naming.NamingException: Name comp/env/jdbc not found in context "java:"

Troubleshooting


Problem

An application running in WebSphere Application receives the following exception when doing a Java Naming and Directory Interface (JNDI) lookup of a resource: "javax.naming.NamingException - Name comp/env/jdbc not found in context "java:"

[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"JNDI\/Naming","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"9.0;8.5.5;8.0;7.0","Edition":"Edition Independent","Line of Business":{"code":"LOB77","label":"Automation Platform"}},{"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Component":"Java SDK","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]

To view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use the link to actual document below to access the full document. You will be asked to log on if you are not already logged in. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

More support for:
WebSphere Application Server

Software version:
9.0, 8.5.5, 8.0, 7.0

Operating system(s):
AIX, HP-UX, Linux, Solaris, Windows

Document number:
664181

Modified date:
03 March 2025

UID

swg21106933

Manage My Notification Subscriptions