When using Jasper, via Ant, to precompile JSP with some taglibs, the some are jars not free after jasper2 exit which is very problematic when using Ant in the IDE JVM, in my case Eclipse : Here is part of the ant build file : <taskdef classname="org.apache.jasper.JspC" name="jasper2"> <classpath id="jspc.classpath"> <pathelement location="${TOOLS_LIB}" /> <fileset dir="${TOMCAT55_PATH}/bin"> <include name="*.jar" /> </fileset> <fileset dir="${TOMCAT55_PATH}/server/lib"> <include name="*.jar" /> </fileset> <fileset dir="${TOMCAT55_PATH}/common/lib"> <include name="*.jar" /> </fileset> </classpath> </taskdef> ... <jasper2 validateXml="false" uriroot="${build.dir}/jspc/${wname}" webXmlFragment="${build.dir}/dst/${wname}/WEB-INF/jsp.xml" outputDir="${build.dir}/${wname}-src" javaEncoding="ISO-8859-1" trimSpaces="true" />
This works for me with the latest SVN source and Eclipse 3.2.1 If you still see this issue with the latest source and Eclipse version, please attached a ziped copy of the smallest Eclipse project that demonstrates this issue.