第 7 行 "yyy.jspf" 中的错误:无法解析类型 java.lang.CharSequence。它是从所需的 .class 文件中间接引用的

Error in "yyy.jspf" at line 7: The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files

我们使用的是 weblogic server 11g,这个 jsp 文件与 jdk1.6 一起工作。现在,当我们尝试升级到 JDK1.8 时,当我点击登录页面时,weblogic 抛出了这个异常。相同的代码在 Tomcat9.0 容器中运行良好。尝试了两种解决方案

  1. 为 javac(The type java.lang.CharSequence cannot be resolved in package declaration) 添加了源和目标选项
  2. 在域 (While compiling jsp WebLogic 12c throw error) 的 Web 应用程序选项卡下选择了 JSP 编译器向后兼容选项

但其中 none 有效。任何人都可以帮我找到解决这个问题的方法吗?提前致谢。

完整堆栈跟踪:

javax.servlet.ServletException: weblogic.servlet.jsp.CompilationException: Failed to compile JSP /WEB-INF/web/en/US/enterpriseMgr/Login/xxx.jsp
xxx.jsp:2:18: Error in "yyy.jspf" at line 7: The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files
<%@ include file="../../common/yyy.jspf"%>
                 ^-----------------------------^
xxx.jsp:2:18: Error in "yyy.jspf" at line 96: The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files
<%@ include file="../../common/yyy.jspf"%>
                 ^-----------------------------^

此错误与 WebLogic 11g JSP 编译器与 JDK 1.8 之间的不兼容有关。

查看我对与相同不兼容性相关的类似错误的回答中的其他详细信息和解决方法:java.util.Map$Entry cannot be resolved Error using Java 1.8