WEBLOGIC 不是这样用的。
properties = new Properties();
properties.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
properties.put(Context.PROVIDER_URL, url);
Context ctx=InitialContext(properties)
properties = new Properties();
properties.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
properties.put(Context.PROVIDER_URL, url);
Context ctx=InitialContext(properties)
还有你编辑时的错误,说明你的bean里面还有不对的地方,你也应该好好检查一下。
"hello.jar": Spaces in the classpath may cause WebLogic APPC utility to produce fatal compile errors.以上只是警告,并不是错误,一般并不会影响运行。意思是在weblogic的APPC程序的路径中存在空格,可能会导致致命错误,在实际运行中我从来没碰到过这种致命错误。我也一直关注这个问题,但一直没找到解决之道,不知道这weblogic的APPC是什么,怎么去改它的工作路径,问过也没人知道,郁闷