Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9226301
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:47:47+00:00 2026-06-18T04:47:47+00:00

What all Jars required to run standalone Java client while making database connection to

  • 0

What all Jars required to run standalone Java client while making database connection to Websphere v7.0

Code

Hashtable parms = new Hashtable();
parms.put(Context.INITIAL_CONTEXT_FACTORY, Database.DB_CONTEXT_FACTORY);
parms.put(Context.PROVIDER_URL, Database.DB_PROVIDER_URL);
logger.debug("Using context of database with parameter "+parms);
context = new InitialContext(parms);
dataSource = (DataSource) context.lookup(getName());
logger.debug("Using context of database with and the context is "+dataSource);
Connection conn = dataSource.getConnection();

Error

ERROR com.ibm.nzna.shared.util.LogSystem  - javax.naming.NoInitialContextException: Cannot instantiate class: com.ibm.websphere.naming.WsnInitialContextFactory [Root exception is java.lang.ClassNotFoundException: com.ibm.websphere.naming.WsnInitialContextFactory]
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:685)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:318)
at javax.naming.InitialContext.init(InitialContext.java:253)
at javax.naming.InitialContext.<init>(InitialContext.java:227)
at com.ibm.nzna.shared.db.Database.connect(Database.java:140)
at com.ibm.nzna.shared.db.DatabaseSystem.createConnection(DatabaseSystem.java:243)
at com.ibm.nzna.projects.qit.app.PCDInitializeThread.run(PCDInitializeThread.java:180)
at java.lang.Thread.run(Thread.java:780)
Caused by: java.lang.ClassNotFoundException: com.ibm.websphere.naming.WsnInitialContextFactory
at java.lang.Class.forName(Class.java:176)
at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:75)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:682)
    ... 7 more
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T04:47:48+00:00Added an answer on June 18, 2026 at 4:47 am

    It seems you are missing WAS 7 client files in classpath. Get them from your WAS installation and add it to classpath. You may find those jars in installation —> runtime folder.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Java Web-Start-based application, which utilizes several native ".exe" utilities. All jars
Could anyone please list : all the jars, javascript and Css files required for
where to find jar files required for all Java EE level websites like All
I have class that uses hibernate, I have included all required jars to classpath
I have maven project with several modules. Need to deploy all modules( jars and
Essentially, after compiling utility jars w/ ANT, I'm having the problem that all the
All, If I run a query like the following: $qry = Select wrong_column from
All, If I've go the following database fields/values: user_id field_name field_value 1 EventHour1 1
I'm writing test code to test a client-server application. The application under test consists
Exception : java.lang.NoClassDefFoundError I am trying to run a small struts projects. It's working

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.