这是一个独立的application吧?
提示的信息的意思应该是
weblogic的连接池只能被运行在它内部的程序入servlet/jsp,ejb调用

解决方案 »

  1.   

    我是用JBuilder编写的一个Servlet,然后在开发环境下编译此程序时出现的此错误,难道不能在JBuilder环境下调用WebLogic连接池吗?
      

  2.   

    真么是这样连的呢?
    要用jndi,datasourceInitialContext initCtx = null;
        try {
          initCtx = new InitialContext();
          DataSource ds = (javax.sql.DataSource)
            initCtx.lookup("java:comp/env/jdbc/demoPool");
          return ds.getConnection();
        } catch(NamingException ne) {
          log("Failed to lookup JDBC Datasource. Please double check that");
          log("the JNDI name defined in the resource-description of the ");
          log("EJB's weblogic-ejb-jar.xml file is the same as the JNDI name ");
          log("for the Datasource defined in your config.xml.");
        } finally {
          try {
            if(initCtx != null) initCtx.close();
          } catch(NamingException ne) {
            log("Error closing context: " + ne);
            throw new EJBException(ne);
          }
        }
      

  3.   

    难道不能在JBuilder中用WebLogic吗?
      

  4.   

    要用,你得先启动weblogic服务!!!
      

  5.   

    我已经启动了WebLogic6.1,并且一切正常,只是提示我
    <Application Poller not started for production server.>