日期:2014-05-20  浏览次数:20792 次

急!急!急!weblogic8.1的jsp问题!
<2008-10-15 上午10时46分36秒 CST> <Error> <HTTP> <BEA-101019> <[ServletContext(id=11203538,name=ncbuilding,context-path=/ncbuilding)] Servlet failed with IOException 
weblogic.servlet.jsp.CompilationException: Compilation of D:\tools\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver__appsdir_ncbuilding_dir_ncbuilding\jsp_servlet\_mappage\_iframe\__cxjg.java failed. 
D:\tools\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver__appsdir_ncbuilding_dir_ncbuilding\jsp_servlet\_mappage\_iframe\__cxjg.java:450: cannot resolve symbol 
symbol : method getServletContext () 
location: class jsp_servlet._mappage._iframe.__cxjg 
  String pathtype=getServletContext().getRealPath("/"); //[ /mappage/iframe/cxjg.jsp; Line: 422] 
  ^ 
D:\tools\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver__appsdir_ncbuilding_dir_ncbuilding\jsp_servlet\_mappage\_iframe\__cxjg.java:463: cannot resolve symbol 
symbol : method getServletContext () 
location: class jsp_servlet._mappage._iframe.__cxjg 
  String pathtype=getServletContext().getRealPath("/"); //[ /mappage/iframe/cxjg.jsp; Line: 435] 
  ^ 
D:\tools\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver__appsdir_ncbuilding_dir_ncbuilding\jsp_servlet\_mappage\_iframe\__cxjg.java:475: cannot resolve symbol 
symbol : method getServletContext () 
location: class jsp_servlet._mappage._iframe.__cxjg 
  String pathtype=getServletContext().getRealPath("/"); //[ /mappage/iframe/cxjg.jsp; Line: 447] 
  ^ 
3 errors 

at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:449) 
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:223) 
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:172) 
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:518) 
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:362) 
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:446) 
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305) 
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350) 
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317) 
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118) 
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635) 
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585) 
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) 
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170) 
Caused by: java.io.IOException: Compiler failed executable.exec 
at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:470) 
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:329) 
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:337) 
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:322) 
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:422) 
... 13 more 


开发JDK1.4.2,weblogic8.1也用的JDK1.4.2,希望各位大大帮帮忙啊

------解决方案--------------------
request.getSession().getServletContext()