Precompiled JSP files for deployment in JRun 4
Issue
In JRun 4, when you compile a JSP using the JSPC off-line compiler, three different types of files are generated, .class, .ct, and .dep files.
If you try to deploy only the .class file, without the .ct and .dep files for the JSP, the following error will be thrown:
java.lang.NoClassDefFoundError at jrun.jsp.runtime.ConstantTable.load(ConstantTable.java:51) ...
Reason
The .ct and .dep files are required, along with .class files, for pre-compiled JSP files.
The .ct file is a repository of all the string literals used in the page. This is useful in reducing the size of thejspservice method. The .dep file stores the page dependencies, all the files on which the page is dependent. So, whenever one of the dependencies is changed, for example, an included JSP page, the JSP is recompiled and reloaded.
Solution
To workaround this issue, all three files must be deployed together.
This content requires Flash
To view this content, JavaScript must be enabled, and you need the latest version of the Adobe Flash Player.
Download the free Flash Player now!
