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版本相同,问题解决。