使用以下命令构建我的应用程序时:
$> git push heroku master
应用程序正常运行,我可以运行自动化测试,但在Jenkins构建我的应用程序时,我从浏览器收到以下消息:
HTTP Status 500 - An exception occurred processing JSP page /university/universityList.jsp at line 18
15:
16: <jsp:include page="universitiesMenu.jsp" />
17:
18: <jsp:include page="universities.jsp" />
19:
20: </div>
21:
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568)
...
root cause
javax.servlet.ServletException: java.lang.UnsupportedClassVersionError: br/usp/icmc/rest/ClientRestUniversity : Unsupported major.minor version 51.0 (unable to load class br.usp.icmc.rest.ClientRestUniversity)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:343)
...
root cause
java.lang.UnsupportedClassVersionError: br/usp/icmc/rest/ClientRestUniversity : Unsupported major.minor version 51.0 (unable to load class br.usp.icmc.rest.ClientRestUniversity)
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2899)
...
完整的日志文件Jenkins:http://ricardoramos.url.ph/log_Jenkins.txt
为什么当我运行命令推送heroku时,应用程序和自动化测试正常工作,当Jenkins部署时,我收到异常?我哪里错了?
答案 0 :(得分:1)