[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 194
  • Last Modified:

WAS 4.0 startup error

An error occurs every time I try ro start WAS Enterprise 4.0.1 (just installed) on a windows 2000 machine, by using Start/Programs/IBM Webshpere/Application Server/StartApplicationServer.
Once changed all the ports being used by other application by editing the server-cfg.xml file, I still encounter the following error (reported in the activity.log):

jndiNamingException ... Name jdbc not found in context "local"

What does it means?
Thanx!
0
clabuo
Asked:
clabuo
  • 2
1 Solution
 
jerelwCommented:
what type of database is your was database?

0
 
Jim CakalicSenior Developer/ArchitectCommented:
How did you code the JNDI lookup of your DataSource? I've seen example code of the form:
    context.lookup("java:comp/env/jdbc/Database");

where "jdbc" is the naming prefix and "Database" is the name of the configured DataSource. However, for this to work, I think you have to specify the DataSource in the deployment descriptor for each EJB. Instead, I use:
    context.lookup("jdbc/Database");

Secondarily, there was a problem corrected by e-fix PQ57046 with the way that the JNDI name for the DataSource was stored. Go here
    http://www-3.ibm.com/software/webservers/appserv/support.html

and search on "PQ57046" in the box provided.

Hope this helps.
Jim Cakalic
0
 
Jim CakalicSenior Developer/ArchitectCommented:
Has your lookup problem been solved?
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now