1:警告一般不用管,只要不是ERROR就行;2:我也不太清楚,还请大虾指点

解决方案 »

  1.   

    你的警告是由于系统的临时文件夹路径有空格,在系统属性中重新设置一个temp文件夹(路径中要无空格,如:c:\temp)就好了.设好后重新打开Weblogic应该就好了.
      

  2.   

    用户变量下的我改过啦,换成D:\temp
    系统变量下的默认为c:\winnt\temp
    没有问题,可是编译时还是出现警告??
    没有人知道第二个问题呀吗??
      

  3.   

    对于weblogic我不明白,如果用websphere我还比较清楚,看看个位高人的解释
      

  4.   

    windows下的temp文件夹必须设为 c:\winnt\temp (win2k)或者 c:\windows\temp (winxp)
    --如果你想正确运行weblogic.关于问题2,查j2ee api doc.
      

  5.   

    给你贴一段常见的用于从jndi获取Context的代码:
    这段代码返回的是weblogic容器的上下文环境,看不明白的地方就问吧.
    其中 Context.INITIAL_CONTEXT_FACTORY 等涉及相关的设计模式,暂时看不懂没关系,知道怎么用就行了.  private static Context getInitialContext() throws Exception {
        String url = "t3://localhost:7001";
        String user = "aaa";
        String password = "11111111";
        Properties properties = null;
        try {
          properties = new Properties();
          properties.put(Context.INITIAL_CONTEXT_FACTORY,
                         "weblogic.jndi.WLInitialContextFactory");
          properties.put(Context.PROVIDER_URL, url);
          if (user != null) {
            properties.put(Context.SECURITY_PRINCIPAL, user);
            properties.put(Context.SECURITY_CREDENTIALS,
                           password == null ? "" : password);
          }
          return new InitialContext(properties);
        }
        catch (Exception e) {
          throw e;
        }
      }
      

  6.   

    一个忠告: 如果你没有扎实的面相对象思维基础,没有扎实的java语言基础,没有严谨的系统的设计思想,最好先别碰ejb,否则将会自讨苦吃--还不如好好儿多花点时间练基本功.ejb没什么大不了的,j2ee七大技术,它不过是其中之一,要学的还多着呢.
      

  7.   

    这两天看球,都忘了看啦~~
    谢谢wingtrace(暮寒.烟灰.风化物) 的忠告,还有你的代码~~
    主要是问为什么System.getProperties()这样写,为什么会出错,而第二种写法就OK??
    谢谢!!! 原理或区别~