| Author |
HOW TO: Deploy an Application Client in WAS
|
Rahul Mahindrakar
Ranch Hand
Joined: Jul 28, 2000
Posts: 1831
|
|
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
|
 |
Desai Sandeep
Ranch Hand
Joined: Apr 02, 2001
Posts: 1157
|
|
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 - Sun Certified Java Programmer Scored 93 per cent
- Oracle JDeveloper Rel. 3.0 - Develop Database Applications with Java Scored 56 out of 59
- IBM Enterprise Connectivity with J2EE Scored 72 per cent
- Enterprise Development on the Oracle Internet Platform Scored 44 out of 56
[This message has been edited by Desai Sandeep (edited April 26, 2001).]
|
<b>Sandeep</b> <br /> <br /><b>Sun Certified Programmer for Java 2 Platform</b><br /> <br /><b>Oracle Certified Solution Developer - JDeveloper</b><br /><b>-- Oracle JDeveloper Rel. 3.0 - Develop Database Applications with Java </b><br /><b>-- Object-Oriented Analysis and Design with UML</b><br /> <br /><b>Oracle Certified Enterprise Developer - Oracle Internet Platform</b><br /><b>-- Enterprise Connectivity with J2EE </b><br /><b>-- Enterprise Development on the Oracle Internet Platform </b>
|
 |
Rahul Mahindrakar
Ranch Hand
Joined: Jul 28, 2000
Posts: 1831
|
|
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
|
 |
daman sidhu
Ranch Hand
Joined: Aug 19, 2000
Posts: 184
|
|
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
Joined: Aug 19, 2000
Posts: 184
|
|
One more thing, u need to have ujc.jar in your classpath.
|
 |
 |
|
|
subject: HOW TO: Deploy an Application Client in WAS
|
|
|