I suspect that you have a file which includes header.jspf - and that parent file is not including the fn tag lib. (The (potentially) bad error message is another issue)

-Tim

Chris Wareham wrote:

Tim Funk wrote:

What tomcat version and commands are you using? IIRC - jspf files by default are not precompiled.


I started with Tomcat 5.0.30, but have switched to 5.5.12. The ant
targets that I am using is similar to the ones in the Tomcat docs:

  <target name="init-jsp" depends="build">
    <mkdir dir="build-jsp"/>
    <mkdir dir="src-jsp"/>
  </target>

  <target name="build-jsp" depends="init-jsp">
    <taskdef classname="org.apache.jasper.JspC" name="jsp2">
      <classpath>
        <fileset dir="${env.CATALINA_HOME}/common/lib">
          <include name="*.jar"/>
        </fileset>
        <fileset dir="lib">
          <include name="*.jar"/>
        </fileset>
        <path location="classes"/>
      </classpath>
    </taskdef>

    <jsp2 uriroot="../../myapp" outputDir="src-jsp"/>

    <javac srcdir="src-jsp" destdir="build-jsp" deprecation="true">
      <classpath>
      <classpath>
        <fileset dir="${env.CATALINA_HOME}/common/lib">
          <include name="*.jar"/>
        </fileset>
        <fileset dir="lib">
          <include name="*.jar"/>
        </fileset>
        <path location="classes"/>
      </classpath>
    </javac>
  </target>

  <target name="clean-jsp">
    <delete dir="src-jsp"/>
    <delete dir="build-jsp"/>
  </target>

The "build" target that "init-jsp" depends on builds my Java code and
places it into myapp/WEB-INF/classes.

When I run "ant build-jsp" it fails on the <jsp2> line with the
following:

BUILD FAILED
/home/chris/myapp/WEB-INF/build.xml:470: org.apache.jasper.JasperException: file:/home/chris/myapp/header.jspf(49,74) The attribute prefix fn does not correspond to any imported tag library

However, in taglibs.jspf, the functions JSTL is included and the jar
file is in myapp/WEB-INF/lib. This is why I suspect that JspC is
trying to compile header.jspf.


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

Reply via email to