When build my application with the command:
$> git push heroku master
The application works normally and I can run the automated testing, but when building my application by Jenkins, I get the following message from the browser:
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)
...
Complete log file Jenkins: http://ricardoramos.url.ph/log_Jenkins.txt
Why when I run the command to push the heroku the application and automated testing works normally and when deployed by Jenkins I receiving an exception? Where am I wrong?