This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes JSP and the fly likes problem in TLD Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "problem in TLD " Watch "problem in TLD " New topic

problem in TLD

Sree kanth
Ranch Hand

Joined: Feb 02, 2005
Posts: 53
Please help me.....
My tld file is showing the following error

Error: 500
Internal Servlet Error:

org.apache.jasper.JasperException: Unable to open taglibrary ATMjsp.tld : More than one taglib in the TLD
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(
at org.apache.jasper.compiler.Parser.parse(
at org.apache.jasper.compiler.Compiler.compile(
at org.apache.jasper.runtime.JspLoader$
at Method)
at org.apache.jasper.runtime.JspLoader.loadJSP(
at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(
at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(
at org.apache.jasper.runtime.JspServlet.serviceJspFile(
at org.apache.jasper.runtime.JspServlet.service(
at javax.servlet.http.HttpServlet.service(
at org.apache.tomcat.core.ServiceInvocationHandler.method(
at org.apache.tomcat.core.ServletWrapper.handleInvocation(
at org.apache.tomcat.core.ServletWrapper.handleRequest(
at org.apache.tomcat.core.Context.handleRequest(
at org.apache.tomcat.core.ContextManager.service(
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(
This is my .jsp file

<%@ page import="ATMTag" %>
<%@ taglib uri="ATMjsp.tld" prefix="ATMjsp" %>
<%@ page errorPage="errorpage.jsp" %>
<!DocType HTML Public "-//W3C//DTD HTML 4.0 Translational//EN ">

<BODY bgcolor="#fffffr">
<H3 align=center> ATM counters that need Cash</H3>
And this is my .tld

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "">
<INFO>A Tag library for the ATM details</INFO>
<INFO>Outputs of the ATM counter</INFO>

How can i solve the problem
[ February 02, 2005: Message edited by: Bear Bibeault ]

ramprasad madathil
Ranch Hand

Joined: Jan 24, 2005
Posts: 489

the element names are case sensitive in your tld file

and so on.

subject: problem in TLD
It's not a secret anymore!