Galera, estou iniciando em Java EE, e o problema é o seguinte:
Ao preencher um formulario simples em um página HTML, e tentar enviar clicando no botão "gravar" (Dai o que teria que acontecer era mostrar uma mensagem "Contato cadastrado com sucesso."), mas acontece o seguinte erro:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error that prevented it from fulfilling this request.
exception
java.lang.RuntimeException br.com.caelum.agenda.jdbc.connection.ConnectionFactory.getConnection(ConnectionFactory.java:12) br.com.caelum.agenda.jdbc.dao.ContatoDao.(ContatoDao.java:21) br.com.caelum.agenda.servlet.AdicionaContatoServlet.service(AdicionaContatoServlet.java:52) javax.servlet.http.HttpServlet.service(HttpServlet.java:725) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
note The full stack trace of the root cause is available in the Apache Tomcat/8.0.15 logs. Apache Tomcat/8.0.15