Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

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(
at com.sun.enterprise.naming.SerialContext.lookup(
at javax.naming.InitialContext.lookup(Unknown Source)
at AdviceClient.go(
at AdviceClient.main(


C:\projects\advice>echo %CLASSPATH%
j2sdkee1.3.1\lib\j2ee-ri-svc.jar;. ------

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
Yup, yup, yup. Tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
    Bookmark Topic Watch Topic
  • New Topic