Failing Compilation of JSP Pages
[compilation] [compilation debug] [compilation error] [compilation errors] [InjectionWrapper] [invokePreDestroyMethod] [jsp] [JspParseException] [jspparser] [parsing] [_jspx_resourceInjector]
Symptom
When we request the definite jsp, the following error appears:
500 Internal Server Error
SAP NetWeaver Application Server 7.10 / AS Java 7.10
“Application error occurred during the request procession.”
Internal error occurred while parsing the jsp page
[C:/usr/sap/
Other terms
jsp parsing, jspparser, JspParseException, jsp compilation, InjectionWrapper, _jspx_resourceInjector, invokePreDestroyMethod
Reason and Prerequisites
com.sap.engine.services.servlets_jsp.jspparser_api.exception.JspParseException:
[Error in executing the compilation process:
[ Compilation Failed! Exit Code=1
Error stream contains:
"C:\usr\sap\LKG\J00\j2ee\cluster\apps\JavaEE\TestAppEAR\servlet_jsp\TestApp\work\JEE_jsp_index_2958950_1229601381563_1229604247950.java:104: cannot find symbol
symbol : variable dt
location: class JEE_jsp_index_2958950_1229601381563_1229604247950
out.print(dt.toString());
^
1 error"].
at com.sap.engine.services.servlets_jsp.server.jsp.JavaCompiler.compileExternal(JavaCompiler.java:145)
at com.sap.engine.services.servlets_jsp.server.jsp.JavaCompiler.compile(JavaCompiler.java:226)
OR the compiler error is like this:
TestApp/root/
tag_MasterPage_21501450_1229591775848.java:115: cannot find symbol
symbol : variable _jspx_resourceInjector
location: class web.tag_MasterPage_21501450_1229591775848
_jspx_resourceInjector.invokePreDestroyMethod(_jspx_th_master_Info_0);
^
Solution
The issue is fixed in 710SP9, 711 SP03 and 7.2x,
A patch has been provided for 710 SP07,SP08 :
ENGINEAPI 7.10
OSINDEP
ENGINEAPI07P patch #4 (SP-level #07)
ENGINEAPI 7.10
OSINDEP
ENGINEAPI08P patch #1 (SP-level #08)