Another take,
Doing a pre jsp compilation via ant task, jasper2 gives me no jsp error
(only warnings).
Here the netbeans integration (adapted from
https://tomcat.apache.org/tomcat-7.0-doc/jasper-howto.html#Web_Application_Compilation
).
Forced absolute tomcat path.
<import
file="/home/agharta/netbeans-8.1/apache-tomcat-7.0.72/bin/catalina-tasks.xml"/>
<target depends="clean,dist" description="Test compile JSP pages
with jasper2 to expose compilation errors." name="pre-compile-jsps-jasper2">
<jasper
validateXml="false"
uriroot="${build.web.dir}"|
webXmlFragment="||${build.web.dir}/generated_web.xml"|
outputDir="${build.web.dir}/src" />
</target>
<target name="compile-jsps-jasper2"
depends="pre-compile-jsps-jasper2" >
<javac destdir="${build.web.dir}/WEB-INF/classes"
optimize="off"
debug="on" failonerror="false"
srcdir="${build.web.dir}/src"
excludes="**/*.smap"
includeantruntime="true" >
<classpath>
<pathelement location="${build.web.dir}/WEB-INF/classes"/>
<fileset dir="${build.web.dir}/WEB-INF/lib">
<include name="*.jar"/>
</fileset>
<pathelement
location="/home/agharta/netbeans-8.1/apache-tomcat-7.0.72/lib"/>
<fileset dir="/home/agharta/netbeans-8.1/apache-tomcat-7.0.72/lib">
<include name="*.jar"/>
</fileset>
<fileset dir="/home/agharta/netbeans-8.1/apache-tomcat-7.0.72/bin">
<include name="*.jar"/>
</fileset>
</classpath>
<include name="**" />
<exclude name="tags/**" />
</javac>
</target>
Now, outpput of compile-jsps-jasper2:
compile-jsps-jasper2:
Compiling 494 source files to
/home/agharta/NetBeansProjects/bookingApp/build/web/WEB-INF/classes
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
BUILD SUCCESSFUL (total time: 14 seconds)
Building ok!
Looking inside my generated sources i can see the full generated path
... WEB-INF/classes/org/apache/jsp/WEB_002dINF/pages
Inside, my non runtime working file: dishBooking/dishBooking_jsp.class
The result of pre-compile-jsps-jasper2 generate right
dishBooking/dishBooking_jsp.java
A difference with old .70 jsp pre compilation is about 1200 new rows
added by .72 in .java file. (about 13000 rows totals)
Trying to compile at startup time, via load-on-startup gives me errors.
So, errors comes up only at runtime compilation. Why?
Thanks again,
Agharta
On 09/26/2016 05:37 PM, Mark Thomas wrote:
On 26/09/2016 16:32, agharta wrote:
<snip/>
I've searched cause on tomcat official changelog between .70 and .72 but
without success.
So the question is: why?
https://bz.apache.org/bugzilla/show_bug.cgi?id=60126
The same error handling changes are in 7.0.72.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org