Pessoal, boa tarde
Estou executando uma aplicação num servidor weblogic. Esta página é uma JSP que contém scriplets java (não me perguntem porque colocaram código java na jsp… rsrs) para exibir um determinado relatório quando ela é chamada.
No entanto, ao chamar esta página, ocorre o seguinte erro:
Compilation of JSP File '/Report.jsp' failed:
--------------------------------------------------------------------------------
Report.jsp:59:8: No method with this name could be found at this location.
getServletContext(), response);
^---------------^
Report.jsp:60:33: This catcher cannot be reached because the corresponding try block does not throw anything catchable here.
} catch (ReportException e) {
^
Report.jsp:63:30: This catcher cannot be reached because the corresponding try block does not throw anything catchable here.
} catch (DAOException e) {
^
Report.jsp:71:8: No method with this name could be found at this location.
getServletContext(), response);
^---------------^
Report.jsp:72:33: This catcher cannot be reached because the corresponding try block does not throw anything catchable here.
} catch (ReportException e) {
^
Report.jsp:75:30: This catcher cannot be reached because the corresponding try block does not throw anything catchable here.
} catch (DAOException e) {
^
O código é o seguinte:
tring show = request.getParameter("showReport");
String central = request.getParameter("central");
String reportType = request.getParameter("type");
if (show != null && central != null && reportType != null) {
if (reportType.equals("PDF")) {
try {
ExecuteReport.executeReporteMigracionDatos(central,
ReportNames.Reporte_Migracion_PDF,
getServletContext(), response);
} catch (ReportException e) {
out.println("Erro ao gerar o relatório");
e.printStackTrace();
} catch (DAOException e) {
out.println("Erro ao obter as informações da base de dados");
e.printStackTrace();
}
} else if (reportType.equals("XLS")) {
try {
ExecuteReport.executeReporteMigracionDatos(central,
ReportNames.Reporte_Migracion_XLS,
getServletContext(), response);
} catch (ReportException e) {
out.println("Erro ao gerar o relatório");
e.printStackTrace();
} catch (DAOException e) {
out.println("Erro ao obter as informações da base de dados");
e.printStackTrace();
}
}
%>
<%
O que poderia ser?