Unable to compile class for JSP
843836May 6 2005 — edited May 16 2005Hello,
I have a war file in which there are several jsp's. So far every time I have deployed everything has worked fine. I have just finished off another addition to the project, bundled it up into a war file deployed it but now when I try to load the page I get compile errors (see below), this only happens for the new jsp - the others still work fine hence I guess that the javac deprecated comment is wrong/misleading. The only difference between this jsp and the others is the inclusion of a new external class. This class however is from the same package as the others used so far ie: previous pages had <%@page import ="com.interxion.aims.jndi.search.*" %> where as the new one has that plus <%@page import="com.interxion.aims.jndi.modify.*"%>
Any help on this would be massivley appreciated - have trawled the web now for two days with no success!!
Thanks in advance,
Alex
Sun ONE Application Server - HTTP Status 500 Error
The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
Type: Exception Report
Message: Internal Server Error
Exception
org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
/var/opt/SUNWappserver7/domains/domain1/server1/generated/jsp/j2ee-modules/1000X_Search/_jasper/_ModifyCompanyForm_jsp.java:357: 'catch' without 'try'.
} catch (Throwable t) {
^
/var/opt/SUNWappserver7/domains/domain1/server1/generated/jsp/j2ee-modules/1000X_Search/_jasper/_ModifyCompanyForm_jsp.java:365: '}' expected.
}
^
/var/opt/SUNWappserver7/domains/domain1/server1/generated/jsp/j2ee-modules/1000X_Search/_jasper/_ModifyCompanyForm_jsp.java:366: 'try' without 'catch' or 'finally'.
private static void jspxreleaseTags(javax.servlet.jsp.tagext.Tag tag, javax.servlet.jsp.tagext.Tag until) {
^
/var/opt/SUNWappserver7/domains/domain1/server1/generated/jsp/j2ee-modules/1000X_Search/_jasper/_ModifyCompanyForm_jsp.java:366: Statement expected.
private static void jspxreleaseTags(javax.servlet.jsp.tagext.Tag tag, javax.servlet.jsp.tagext.Tag until) {
^
4 errors, 1 warning
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.loadJSP(JspServlet.java:641)
at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.access$000(JspServlet.java:501)
at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:322)
at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:158)
at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)