Freddy Mallet - 2005-02-15

Hi,

I'am using ServletUnit/Jasper to test Servlet/JSP. Jsp contains taglib definition like this one (for jstl):

<%@ taglib uri='http://java.sun.com/jstl/core' prefix='c'%>

and jakarta implementation of jstl 1.0 (standard-1.0.6.jar) is included in my classpath.

Nevertheless, Jasper throws the following exception saying that it can't find taglib definition:

org.apache.jasper.JasperException: This absolute uri (http://java.sun.com/jstl/core) cannot be resolved in either web.xml or the jar files deployed with this application
    at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:60)
    at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:385)
    at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:109)
    at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:116)
    at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:309)
    at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:336)
    at org.apache.jasper.compiler.Parser.parseElements(Parser.java:750)

do you have any ideas ?

thanks in advance for your help,

Freddy