I have a jsp page that compiles and runs fine on NT. However, when I move
this page over to a solaris box, it sometimes fails to compile the page. It
is inconsistent, however. Sometimes, the same page will compile fine. The
compile error page that I get in IE is attached.
To make this even more strange, if I go to the Sun box, telnet in, find the
.java file and run javac on it, it compiles just fine. I dug into the
tomcat source and found that the only difference between running javac on
the command line and the way Jasper calls it was that Jasper sets the
-encoding option to "UTF8". I tried doing this as well from the command
line and it still compiled the .java file without errors.
Could this be a timing issue? Namely, could Jasper be trying to compile a
.java file before it was completely generated? In looking at the code, I
don't see how it would be possible, but I thought I would throw it out...
Once again, the page with the actual error I received is attached.
<<browsebuyer_jsp.html>>
Error: 500
Location: /bellpipe/en/browsebuyer.jsp
Internal Servlet
Error:org.apache.jasper.JasperException: Unable to compile class for JSP/opt/tomcat/work/localhost_8080/_0002fbellpipe_0002fen_0002fbrowsebuyer_0002ejspbrowsebuyer_jsp_1.java:1293: Variable _jspx_eval_impact_href_462 may not have been initialized.
if (_jspx_eval_impact_href_462 != Tag.SKIP_BODY) {
^
/opt/tomcat/work/localhost_8080/_0002fbellpipe_0002fen_0002fbrowsebuyer_0002ejspbrowsebuyer_jsp_1.java:1296: Variable pageContext may not have been initialized.
out = pageContext.pushBody();
^
/opt/tomcat/work/localhost_8080/_0002fbellpipe_0002fen_0002fbrowsebuyer_0002ejspbrowsebuyer_jsp_1.java:1297: Variable _jspx_th_impact_href_462 may not have been initialized.
_jspx_th_impact_href_462.setBodyContent((BodyContent) out);
^
/opt/tomcat/work/localhost_8080/_0002fbellpipe_0002fen_0002fbrowsebuyer_0002ejspbrowsebuyer_jsp_1.java:1299: Variable _jspx_th_impact_href_462 may not have been initialized.
_jspx_th_impact_href_462.doInitBody();
^
/opt/tomcat/work/localhost_8080/_0002fbellpipe_0002fen_0002fbrowsebuyer_0002ejspbrowsebuyer_jsp_1.java:1302: Variable out may not have been initialized.
out.print(_jspx_html_data[102]);
^
/opt/tomcat/work/localhost_8080/_0002fbellpipe_0002fen_0002fbrowsebuyer_0002ejspbrowsebuyer_jsp_1.java:1304: Variable pictureUrl may not have been initialized.
out.print( pictureUrl );
^
/opt/tomcat/work/localhost_8080/_0002fbellpipe_0002fen_0002fbrowsebuyer_0002ejspbrowsebuyer_jsp_1.java:1308: Variable _jspx_th_impact_href_462 may not have been initialized.
} while (_jspx_th_impact_href_462.doAfterBody() == BodyTag.EVAL_BODY_TAG);
^
/opt/tomcat/work/localhost_8080/_0002fbellpipe_0002fen_0002fbrowsebuyer_0002ejspbrowsebuyer_jsp_1.java:1311: Variable pageContext may not have been initialized.
out = pageContext.popBody();
^
/opt/tomcat/work/localhost_8080/_0002fbellpipe_0002fen_0002fbrowsebuyer_0002ejspbrowsebuyer_jsp_1.java:1314: Variable _jspx_th_impact_href_462 may not have been initialized.
if (_jspx_th_impact_href_462.doEndTag() == Tag.SKIP_PAGE)
^
9 errors
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:247)
at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)
at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:149)
at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:161)
at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:156)
at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
at java.lang.Thread.run(Thread.java:484)