hi there,

I've used a taglib from the jstl/core-package and would like to compile 
it.
If I try so using ant and a jspc-task, I get the following error:

2003-03-23 05:54:11 - ERROR-the file '\nodigsig.jsp' generated the 
following gen
eral exception: org.apache.jasper.JasperException: This absolute uri 
(http://jav
a.sun.com/jstl/core) cannot be resolved in either web.xml or the jar files 
deployed with this application
  [jasper2] Error in class org.apache.jasper.JspC
BUILD FAILED

==> I already tried to include the libraries as properties (external 
dependencies), but no success.

Has anybody else tried to compile JSPs using custom taglibs?

=======================
nodigsig.jsp
=======================
<%@ page language="java" contentType="text/html" %>
<%@ taglib prefix="c" uri = "http://java.sun.com/jstl/core"; %>
<%
System.out.println("executing scriptlet code");
%>
<html>
<body>
Ihre Anfrage wurde gespeichert und wird in den n&auml;chsten Tagen 
bearbeitet.
</body>
</html>

========================
build.xml (excerpt)
========================
<target name="jspc">

    <taskdef classname="org.apache.jasper.JspC" name="jasper2" >
      <classpath id="jspc.classpath">
        <pathelement location="${java.home}/../lib/tools.jar"/>
        <fileset dir="${catalina.home}/server/lib">
          <include name="*.jar"/>
        </fileset>
        <fileset dir="${catalina.home}/common/lib">
          <include name="*.jar"/>
        </fileset>
      </classpath>
    </taskdef>

    <jasper2
             validateXml="false"
             uriroot="${basedir}/jsp"
             webXmlFragment="${basedir}/webinc.xml"
             outputDir="${basedir}/src" />

  </target>


thx alot
johannes

Reply via email to