nested得错误??你有没有初始化你的上下文关系,你debug一下到底是执行到那一步报的错误
如果你用的是weblogic我建议你这样进行初始化上下文处理
String url = "http://localhost:7001";
      String EJBInitialContextFactory = "weblogic.jndi.WLInitialContextFactory";
      Properties h = new Properties();
      h.put(Context.INITIAL_CONTEXT_FACTORY, EJBInitialContextFactory);
      h.put(Context.PROVIDER_URL, url);
      cx = new InitialContext(h);
      Object object = cx.lookup("EmployeesRemote");
      Class homeClass = Class.forName("xxx.xxx.EmployeesRemoteHome");
      ejbHome = (EJBHome)PortableRemoteObject.narrow(object, homeClass);    其中EmployeesRemote是你在weblogic-ejb-jar.xml中的jndi名称 xxx.xxx.EmployeesRemoteHome是你的完整路径