Could not initialize class org.apache.jsp.WEB_002dINF.view.common.error_jsp_JAVA_编程开发_程序员俱乐部

中国优秀的程序员网站程序员频道CXYCLUB技术地图
热搜:
更多>>
 
您所在的位置: 程序员俱乐部 > 编程开发 > JAVA > Could not initialize class org.apache.jsp.WEB_002dINF.view.common.error_jsp

Could not initialize class org.apache.jsp.WEB_002dINF.view.common.error_jsp

 2018/4/23 18:39:07  killer丿丶东  程序员俱乐部  我要评论(0)
  • 摘要:javax.servlet.ServletException:java.lang.NoClassDefFoundError:Couldnotinitializeclasscom.swtech.eduonline.common.constants.CommonConstantsjava.util.MissingResourceException:Can'tfindresourceforbundlejava.util.PropertyResourceBundle,keymydomainjavax
  • 标签:Web view not Apache JS class
javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class com.swtech.eduonline.common.constants.CommonConstants




java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key mydomain




javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class org.apache.jsp.WEB_002dINF.view.common.error_jsp




org.apache.jasper.JasperException: /WEB-INF/view/common/error.jsp (line: [2], column: [0]) The absolute uri: [http://java.sun.com/jsp/jstl/core] cannot be resolved in either web.xml or the jar files deployed with this application




Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.jsp.WEB_002dINF.view.common.error_jsp



当出现以上错误时,绝大多数属于JSTL缺少jar包,或缺少web.xml配置文件,或tomcat勾选了serve modules withour publishing,但个人这些错误一个项目都出现过,最后得出因项目之前的jdk版本问题,使用项目之前的jdk版本或者使用新的jdk版本,如果你配置了新的jdk版本,则需要特别注意(eclipse中:).settings中的,org.eclipse.wst.common.project.facet.core.xml文件的jdk配置(打开.settings方法:window ->show View -> Navigator),<installed facet="java" version="1.8"/>此处的版本要与你想要使用的jdk版本相同,问题解决。


上一篇: C# 如何将PDF转为Image、SVG、XPS、HTML 下一篇: 没有下一篇了!
发表评论
用户名: 匿名