tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Chille <thomas.chi...@gmail.com>
Subject Re: strange Jasper2 + JSTL behavior after upgrading from TC 5.0.29 to TC 5.5.7 [SOLVED]
Date Thu, 24 Mar 2005 10:22:25 GMT
http://issues.apache.org/bugzilla/show_bug.cgi?id=33373


On Wed, 23 Mar 2005 19:32:00 +0100, Thomas Chille
<thomas.chille@gmail.com> wrote:
> 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" />
> 


-- 
Thomas Chille
Kastanienallee 5 - 10435 Berlin
mob +49 179-5 90 72 57
fon +49 30-81 79 87 65
work + 49 30-27 90 72 04
mail thomas@chille.de

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message