Note that there are some explanatory texts on larger screens.

plurals
  1. POTomcat compiles JSP and inconsistently Creates a Helper Class
    text
    copied!<p>I've run into a strange problem and I can't find anything about it on the forums. I was hoping maybe someone else has seen it and can give me some insight.</p> <p>I'm running tomcat 6.0 under Windows. Our application uses the Archibus facilities management system. For UI screens Archibus uses it's own custom XML schema and the user interface code is referred to as View files. At run time Archibus converts these View files to jsp and then Tomcat converts the jsp to java, and then class, files.</p> <p>I am running into a situation where Tomcat does not convert the jsp files to java files in a consistent way. Normally (when everything works ok) Tomcat converts selfCertWelcome.jsp to 3 files : selfCertMain_jsp.java, selfCertMain_jsp.class &amp; selfCertMain_jsp$helper.class. </p> <p>About every 20th time or so Tomcat converts the jsp in a different way. Instead of 3 files it creates 2 files selfCertMain_jsp.java &amp; selfCertMain_jsp.class. When this happens it appears that the selfCertMain_jsp.class inlines the code that normally is put into the selfCertMain_jsp$helper.class. Unfortunately when the code is inlined it does not load correctly. No error message is produced but the screen comes up blank (nothing displayed).</p> <p>In production the app server is restarted every night and the schemaCompiled folder is deleted. What this means is that the jsp files get recreated on a daily basis. Sometimes when they get created this problem occurs and the only way to correct it is to delete the jsp file and let Tomcat recompile it hoping that it re compiles it correctly.</p> <p>I verified the jsp files created by Archibus are identical when the problem occurs and when it does not. Therefore I feel pretty certain the issue lies with Tomcat.</p> <p>Has anyone seen something like this before? Any suggestions on how I might go about resolving this?</p> <p>Thanks in advance, Matt</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload