I'm having a problem executing a simple Jsp tag library using IPlanet 4.1 SP10. I would like to note that this server can get "out" to locate the DTD, and the Jar file for the tag library is on the IPlanet classpath. Here is the stack trace, taglib.tld, and sample Jsp.
Thanks, Jason Dexter.
Error:
[31/Jul/2003:10:51:09] info ( 4631): JSP: JSP1x compiler threw exception
org.apache.jasper.JasperException: Unable to open taglibrary /docs/JspTagLibrary.jar : in is null
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.(Compiled Code)
at java.lang.Exception.(Compiled Code)
at javax.servlet.ServletException.(ServletException.java:68)
at org.apache.jasper.JasperException.(JasperException.java:73)
at org.apache.jasper.compiler.JspParseEventListener.handleDirective(Compiled Code)
at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:119)
at org.apache.jasper.compiler.Parser$Directive.accept(Compiled Code)
at org.apache.jasper.compiler.Parser.parse(Compiled Code)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1022)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1018)
at org.apache.jasper.compiler.Compiler.compile(Compiled Code)
at com.netscape.server.http.servlet.NSServletEntity.load(NSServletEntity.java:230)
at com.netscape.server.http.servlet.NSServletEntity.update(NSServletEntity.java:149)
at com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:453)
[31/Jul/2003:10:51:09] warning ( 4631): Internal error: Failed to get GenericServlet. (uri=/TestTagLibrary.jsp,SCRIPT_NAME=/TestTagLibrary.jsp)
taglib.tld:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>amsweb</shortname>
<info>Sample Tag</info>
<tag>
<name>Calculator</name>
<tagclass>com.amsweb.tag.calculator.Calculator</tagclass>
<bodycontent>EMPTY</bodycontent>
<info>Sample Tag</info>
</tag>
</taglib>
Jsp:
<%@ taglib uri="/docs/JspTagLibrary.jar" prefix="amsweb" %>
<html>
<head>
<title>Calculator Test</title>
</head>
<body>
<amsweb:Calculator/>
</body>
</html>