Bug 63123 - Unable to precompile JSPs using Jasper in Tomcat 9.0.14, worked properly in 9.0.13 version
Summary: Unable to precompile JSPs using Jasper in Tomcat 9.0.14, worked properly in 9...
Status: RESOLVED DUPLICATE of bug 63056
Alias: None
Product: Tomcat 9
Classification: Unclassified
Component: Jasper (show other bugs)
Version: 9.0.14
Hardware: PC All
: P1 major (vote)
Target Milestone: -----
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-29 08:43 UTC by Raja Shekar
Modified: 2019-01-29 09:46 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raja Shekar 2019-01-29 08:43:21 UTC
Hi Team,

After migrating to 9.0.14 tomcat version we are unable to precompile jsp.We are able to precompile jsp when we used 9.0.13 version. We have around 3200 jsps, which are present in various folders and subfolders, while compiling jsps jasper says jsp files are not found, even though they exists in the folders.

Below is the ant target we have used:

<target name="tomcat.jspc" depends="env.init">
        <echo message="${src_jsp_root}"/>
        <taskdef classname="org.apache.jasper.JspC"  name="jasper">
            <classpath>
                <fileset dir="${tomcat_home}/lib">
                    <include name="*.jar"/>
                </fileset>
                <path refid="project.jsp.class.path"/>
            </classpath>
        </taskdef>
        <jasper validateXml="false" compiler="modern" fork="true"
                compile="true" listerrors="true" jspfiles=""
                uriroot="${src_jsp_root}" threadCount="2" verbose="0"
                failonerror="true" poolingenabled="false"
                outputDir="${src_jsp_root}/WEB-INF/classes">
        </jasper>
    </target>

Here "${src_jsp_root} is the root folder, which has WEB-INF folder also, the jsps are present in various subfolder in that root folder. Below is one of the error:

tomcat.jspc:     
   [jasper] Jan 29, 2019 2:10:02 PM org.apache.jasper.servlet.TldScanner scanJars
   [jasper] INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
   [jasper] Jan 29, 2019 2:10:02 PM org.apache.jasper.JspC processFile
   [jasper] WARNING: The file argument [File [/reportcenter/reportcenter/ReportInstanceListController.jsp] not found] does not exist

The jsp is actually present in <JSP_FILE_ROOT>/reportcenter/ReportInstanceListController.jsp, but jasper is looking at
<JSP_FILE_ROOT>/reportcenter/reportcenter/ReportInstanceListController.jsp, not sure why jasper is looking into the non-existent sub-folder.

Same ant target worked when we used 9.0.13 Tomcat version. Could you please look help us here?

Thanks,
Raja Shekar.A
Comment 1 Rainer Jung 2019-01-29 09:46:56 UTC

*** This bug has been marked as a duplicate of bug 63056 ***