• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

RI AdviceClient running problem - Can't find SerialContextProvider

Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Help needed resolving this issue as i am struck moving forward with this. I am using RI Deploymenttool.

When i try to run AdviceCleint, i get the belwo error.

C:\projects\advice>java -cp "%CLASSPATH%;c:\projects\advice\AdviceAppClient.jar;." AdviceClient

Hello World!
javax.naming.CommunicationException: Can't find SerialContextProvider
at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:63)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:120)
at javax.naming.InitialContext.lookup(Unknown Source)
at AdviceClient.go(AdviceClient.java:38)
at AdviceClient.main(AdviceClient.java:14)


C:\projects\advice>echo %CLASSPATH%

-------AdviceClient.java ------

import javax.naming.*;
import java.rmi.*;
import javax.rmi.*;
import headfirst.*;
import javax.ejb.*;
import java.util.Hashtable;

public class AdviceClient
public static void main(String[] args)
System.out.println("Hello World!");

new AdviceClient().go();

public void go(){

System.out.println("IN GO");

Context ic = new InitialContext();

Hashtable map = new Hashtable();

map.put("java.naming.provider.url", "iiop://localhost:1050");
Context ic = new InitialContext(map);

Object o = ic.lookup("Advisor");

AdviceHome home = (AdviceHome)PortableRemoteObject.narrow(o, AdviceHome.class);

System.out.println("GOT HOME");

Advice a = home.create();
System.out.println("GOT MESSAGE");

}catch (Exception ex){




Thanks in advance.
Also, I am using getMessage method to avoid the CORBA BAD COMMAND ERROR.
[ October 21, 2006: Message edited by: Sai Charan ]
Sai Charan
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can anyone pls help resolving this issue. Thanks
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic