• 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

HOW TO: Deploy an Application Client in WAS

 
Ranch Hand
Posts: 1871
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
After having deployed the Hello.jar which is available in the deployableEJB's folder sucessfully i am trying to access the Bean through a client. Following is the code for the application

However i get the following error.
upto here
javax.naming.NoInitialContextException: Cannot instantiate class: com.ibm.ejs.ns
.jndi.CNInitialContextFactory [Root exception is java.lang.ClassNotFoundExceptio
n: com.ibm.ejs.ns.jndi.CNInitialContextFactory]
Am i missing something. If so what is it. Also note the braces in in the last line above "CNInitialContextFactory]"

------------------

Mahindrakar
IBM Application Server Forum Moderator
 
Ranch Hand
Posts: 1157
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Mahindrakar,
Comparing your error with the client call of EJB deployed in OAS, I suggest, you check up if all the requied JARs are available for client call.I had got this error while client call, since I missed out Oracle deployment utility generated files as well as aurora.jar!!
Let us know, if you make a breakthrough with this.
Regards,
Sandeep Desai
vgdesai@bom3.vsnl.net.in

  1. Sun Certified Java Programmer Scored 93 per cent
  2. Oracle JDeveloper Rel. 3.0 - Develop Database Applications with Java Scored 56 out of 59
  3. IBM Enterprise Connectivity with J2EE Scored 72 per cent
  4. Enterprise Development on the Oracle Internet Platform Scored 44 out of 56

  5. [This message has been edited by Desai Sandeep (edited April 26, 2001).]
 
Rahul Mahindrakar
Ranch Hand
Posts: 1871
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I know there is some jar file i am missing out. But which one is it. At present i do not have any jars in my class path. Which ones do i put.
For example in J2EE the deployer tool specifically creates a Client.jar file which i have to have in my classpath before i run my application. Is there something of this sort in WAS. If so what is it and how do i generate it

------------------

Mahindrakar
IBM Application Server Forum Moderator
SCJP
 
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Rahul,
Try putting the following line in the provider url syntax
env.put(Context.PROVIDER_URL,"iiop:///localhost:9000");

Note that theere are 3 /'s after iiop and the default port used for iiop comm is 9000, this should run it,
Cheers,
Daman
 
daman sidhu
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
One more thing, u need to have ujc.jar in your classpath.

 
We can walk to school together. And we can both read this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic