WEBLOGIC 不是这样用的。
      properties = new Properties();
      properties.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
      properties.put(Context.PROVIDER_URL, url);
Context ctx=InitialContext(properties)

解决方案 »

  1.   

    你客户端这么写的就不对,你可以用jb自己生成一个客户端看看怎么写。
    还有你编辑时的错误,说明你的bean里面还有不对的地方,你也应该好好检查一下。
      

  2.   

    编辑时出现:"hello.jar": Spaces in the temporary directory path may cause WebLogic APPC utility to produce fatal compile errors.
                 "hello.jar": Spaces in the classpath may cause WebLogic APPC utility to produce fatal compile errors.以上只是警告,并不是错误,一般并不会影响运行。意思是在weblogic的APPC程序的路径中存在空格,可能会导致致命错误,在实际运行中我从来没碰到过这种致命错误。我也一直关注这个问题,但一直没找到解决之道,不知道这weblogic的APPC是什么,怎么去改它的工作路径,问过也没人知道,郁闷