https://bz.apache.org/bugzilla/show_bug.cgi?id=63123

            Bug ID: 63123
           Summary: Unable to precompile JSPs using Jasper in Tomcat
                    9.0.14, worked properly in 9.0.13 version
           Product: Tomcat 9
           Version: 9.0.14
          Hardware: PC
            Status: NEW
          Severity: major
          Priority: P2
         Component: Jasper
          Assignee: dev@tomcat.apache.org
          Reporter: appe.r...@gmail.com
  Target Milestone: -----

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

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to