Failed to compile JSP The method setInitCharacterEncoding(String, boolean)

 

<2011-11-17 上午11时27分53秒 CST> <[ServletContext@1244554433[app:IBA_BS module:IBA_BS path:/IBA_BS spec-version:2.5]] Problem occurred while serving the error page.
javax.servlet.ServletException: weblogic.servlet.jsp.CompilationException: Failed to compile JSP /commonFiles/pages/500.jsp
500.jsp:6:2: The method setInitCharacterEncoding(String, boolean) is undefined for the type ByteWriter
        Throwable ex = null;
        ^-------------------
        logger.error(ex.getMessage(), ex);
-----------------------------------------^

        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:252)
        at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:408)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:318)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
        at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:499)
        Truncated. see log file for complete stacktrace

Caused By: weblogic.servlet.jsp.CompilationException: Failed to compile JSP /commonFiles/pages/500.jsp
500.jsp:6:2: The method setInitCharacterEncoding(String, boolean) is undefined for the type ByteWriter
        Throwable ex = null;
        ^-------------------
        logger.error(ex.getMessage(), ex);
-----------------------------------------^

        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
>

 

 

 

部署后打开页面报如上错误,将WEB-INF下的weblogic.xml删除就好了

你可能感兴趣的:(研发技术,jsp,string,null,file,module,path)