2017-06-29 113 views
1

我们使用的是weblogic服务器11g,此jsp文件正在使用jdk1.6。现在,当我们尝试升级到JDK1.8时,当我点击登录页面时,weblogic会抛出此异常。相同的代码在Tomcat9.0容器中工作正常。尝试了两种解决方案,如第7行“yyy.jspf”中的错误:无法解析java.lang.CharSequence类型。它是从所需的.class文件中间接引用的

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

,但没有一次成功。任何人都可以请帮我找到解决这个问题?提前致谢。

完整堆栈跟踪:

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"%> 
       ^-----------------------------^ 
+0

添加你的xxx.jsp和yyy.jspf的一些代码 – NikNik

回答

相关问题