It's not a secret anymore!
The moose likes Servlets and the fly likes Problem With Tag Lib in Tomcat3.2.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Problem With Tag Lib in Tomcat3.2.1" Watch "Problem With Tag Lib in Tomcat3.2.1" New topic

Problem With Tag Lib in Tomcat3.2.1

vaibhav punekar
Ranch Hand

Joined: Jan 20, 2001
Posts: 134
I m using Tomcat3.2.1 I wish to create my own tags e.g. a tag for running exe,a tag for processing images etc.
I m not able to use it.Right now it is the error----------CompileException:UNABLE TO LOAD TAG LIBRARY.
I ve created my own web app in which I ve Meta-inf folder where I m saving my .tld file.And putting my ExeTag.class file in web-inf/classes.I ve added the tag in web.xml as well.
Please let me know what is the problem.I wish to go in for Standardisation as early as possible.
This is the error in the browser.---------------------
org.apache.jasper.compiler.CompileException: E:\jakarta-tomcat-3.2.1\webapps\upload1\uploadtag.jsp(67,0) Unable to open taglibrary http://localhost:8080/upload1 : null
at org.apache.jasper.compiler.JspParseEventListener.handleDirective(
at org.apache.jasper.compiler.DelegatingListener.handleDirective(
at org.apache.jasper.compiler.Parser$Directive.accept(
at org.apache.jasper.compiler.Parser.parse(
at org.apache.jasper.compiler.Parser.parse(

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
At least you got a clear exception - it must be a problem with either the way you defined the taglib or the way you refer to it in the JSP. Here is what worked for me in web.xml to define a taglib.
And in the JSP
<%@ taglib uri="JSPbook/taglib" prefix="ch11" %>
author of:
vaibhav punekar
Ranch Hand

Joined: Jan 20, 2001
Posts: 134
Thanks Wiliam.First of all glad to see RANCH HAND under my name.Right now error is
org.apache.jasper.JasperException: No such tag Exetag in the tag library imported with prefix test
at org.apache.jasper.compiler.TagLibraries.isUserDefinedTag(
at org.apache.jasper.compiler.Parser$Tag.accept(
at org.apache.jasper.compiler.Parser.parse(
at org.apache.jasper.compiler.Parser.parse(
at org.apache.jasper.compiler.Parser.parse(
at org.apache.jasper.compiler.Compiler.compile(
at org.apache.jasper.servlet.JspServlet.doLoadJSP(
at org.apache.jasper.servlet.JasperLoader12.loadJSP(
at org.apache.jasper.servlet.JspServlet.loadJSP(
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(
at org.apache.jasper.servlet.JspServlet.serviceJspFile(
at org.apache.jasper.servlet.JspServlet.service(
at javax.servlet.http.HttpServlet.service(
at org.apache.tomcat.core.ServletWrapper.doService(
at org.apache.tomcat.core.Handler.service(
at org.apache.tomcat.core.ServletWrapper.service(
at org.apache.tomcat.core.ContextManager.internalService(
at org.apache.tomcat.core.ContextManager.service(
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(
at org.apache.tomcat.service.TcpWorkerThread.runIt(
at org.apache.tomcat.util.ThreadPool$
maha anna
Ranch Hand

Joined: Jan 31, 2000
Posts: 1467
I have Tomcat 3.1 installed in home machine. Here is the procedure I use for taglibs.
maha anna

[This message has been edited by maha anna (edited April 17, 2001).]
I agree. Here's the link:
subject: Problem With Tag Lib in Tomcat3.2.1
jQuery in Action, 3rd edition