学习日志
2023/3/13
String realPath=getServletContext().getRealPath(“/”); //写法太老,weblogic报错。
Root cause of ServletException.
weblogic.servlet.jsp.CompilationException: Failed to compile JSP /Apps/mal/mbo_upload_oracle.jsp
mbo_upload_oracle.jsp:76:21: The method getServletContext() is undefined for the type __mbo_upload_oracle
String realPath=getServletContext().getRealPath(“/”);//for jeus
--------------
at weblogic.servlet.jsp.JavelinxJSPStub.reportCompilationErrorIfNeccessary(JavelinxJSPStub.java:226)
at weblogic.servlet.jsp.JavelinxJSPStub.compilePage(JavelinxJSPStub.java:162)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:246)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:191)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:235)
Truncated. see log file for complete stacktrace