myfirst.jar 没有放错。
可能是你的命名目录服务器的地址配置错误了。

解决方案 »

  1.   

    在初始化你的 Context的时候,写上正确的名目录服务的地址。
    或者写个属性文件,然后用 不带参数的 InitialContext。
      

  2.   

    你的JNDI初始化上下文出错了,你应该检查一下
      

  3.   

    我的客户段是这样的:
    package examples;import javax.naming.*;import javax.rmi.PortableRemoteObject;import java.util.Properties;public class ExampleClient {       public ExampleClient() {              super();       }       public static void main(String[] args){              try{              Properties props =new Properties();              props.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");              props.put(Context.PROVIDER_URL,"192.168.0.99:1099");              Context ctx = new InitialContext(props);              System.out.println("start ejb client test");              Object obj=ctx.lookup("Example");              ExampleHome home = (ExampleHome)PortableRemoteObject.narrow(obj,ExampleHome.class);              Example example = home.create();              System.out.println(example.example());              example.remove();              }catch(Exception e)              {                     e.printStackTrace();              }       }}那里有问题啊?
      

  4.   

    if(您有时间) {
    我的Email:[email protected];
    } else {
    我good luck!;
    }
    thank u 先;