I am running Tomcat 4.1.24.
In nearly all JSP files in my webapp I have the following compile time
include:
<%@ include file="main.jsp"%>
However, changes to main.jsp are not caught by JSPC. And only the
main_jsp.java source is changed. If I delete all the *_jsp.java files
and recompile all of the JSP files, it works perfectly.
Anyone have any suggestions?
I am using ant 1.5.3 with the following task segment in my build file:
<jspc destdir="${jspc.src.jsp.dir}"
webinc="${jspc.base.dir}/fragment.xml"
package="jsp"
compiler="jasper41">
<classpath>
<fileset dir="${publish.common.lib.dir}">
<include name="ant.jar"/>
<include name="jasper-compiler.jar"/>
<include name="jasper-runtime.jar"/>
<include name="servlet.jar"/>
</fileset>
<pathelement path="${build.dir}"/>
</classpath>
<webapp basedir="${deploy.dir}"/>
</jspc>
I even tried calling JSPC directly using the task fragment described in
the Tomcat 4.1 documentation:
<taskdef classname="org.apache.jasper.JspC" name="jasper2" >
<classpath id="jspc.classpath">
<pathelement location="${java.home}/../lib/tools.jar"/>
<fileset dir="${tomcat.server.lib.dir}">
<include name="*.jar"/>
</fileset>
<fileset dir="${publish.common.lib.dir}">
<include name="*.jar"/>
</fileset>
</classpath>
</taskdef>
<jasper2
validateXml="false"
package="jsp"
uriroot="${deploy.dir}"
webXmlFragment="${jspc.base.dir}/fragment.xml"
outputDir="${jspc.src.jsp.dir}" />
-- Nathan Christiansen
Software Engineer
Tahitian Noni International
http://www.tahitiannoni.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]