以下是异常信息,其中,我的ConnectDB的类放在了主目录/shopping2/WEB-INF/CLASSES里,
假如,我把服务器的主目录设为shopping2,那就可以.而这样却不行,请教各位;我怎么做才能OK呢,我应该把类放在哪里呢??我把类放在主目录的WEB-INF/CLASSES里了,也出现下面的异常,请指教!
Note: sun.tools.javac.Main has been deprecated.
/shopping2/index.jsp:184: Class _shopping2.ConnectDB not found.
      ConnectDB shop;
      ^
/shopping2/index.jsp:186: Class _shopping2.ConnectDB not found.
        shop = (ConnectDB) session.getValue("shop");
                ^
/shopping2/index.jsp:188: Class _shopping2.ConnectDB not found.
          shop = new ConnectDB();
                     ^
/shopping2/index.jsp:188: Variable shop may not have been initialized.
  rs=shop.executeQuery(sql);
     ^
/shopping2/index.jsp:207: Variable shop may not have been initialized.
  rs=shop.executeQuery(sql);
     ^
Note: F:\netStation\hydj\WEB-INF\work\_shopping2\_index__jsp.java uses
or overrides a deprecated API.  Recompile with "-deprecation" for details.
5 errors, 2 warnings