Hi,

i declared an anttask which precompiles my JSPs. All works fine with TC 5.0.29. 

After upgrading to TC 5.5.7 i got this error:

BUILD FAILED: C:\eclipse3\eclipse\workspace\ecs2\build.xml:134:
org.apache.jasper.JasperException: The absolute uri:
http://java.sun.com/jsp/jstl/fmt cannot be resolved in either web.xml
or the jar files deployed with this application

Only one JSP would be precompiled. This was the first page (error.jsp)
in my JSP-hierarchy  and makes no use of JSTL.

After simply changing my TOMCAT_HOME environment variable back to TC
5.0.29's home it works again for all JSPs.

Now i tried to localize the root of this behavior by simply adding
this taglib directive to  my error.jsp:

<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"; %>

I would excpect that now error.jsp could not be precompiled too. But
oh wonder after this all JSPs could be precompiled correct.


I think this behavior is not correct or did i something wrong?


regards and thanks in advance,
thomas


**** build.xml fragment ****

<path id="build.classpath">
  <pathelement path="${build.dir}"/>
  <fileset dir="${lib.dir}">
    <include name="*.jar"/>
  </fileset>
  <fileset dir="${shared.lib.dir}">
    <include name="*.jar"/>
  </fileset>
  <fileset dir="${env.TOMCAT_HOME}/bin">
    <include name="*.jar"/>
  </fileset>
  <fileset dir="${env.TOMCAT_HOME}/server/lib">
    <include name="*.jar"/>
  </fileset>
  <fileset dir="${env.TOMCAT_HOME}/common/endorsed">
    <include name="*.jar"/>
  </fileset>
  <fileset dir="${env.TOMCAT_HOME}/common/lib">
    <include name="*.jar"/>
  </fileset>
</path>

<taskdef name="jasper2" classname="org.apache.jasper.JspC" > 
  <classpath refid="build.classpath"/> 
</taskdef> 

<jasper2 
  validateXml="false" 
  uriroot="${basedir}/web" 
  webXmlFragment="${basedir}/jspc/generated_web.xml"
  addWebXmlMappings="true"
  outputDir="${basedir}/jspc" />

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to