File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Java » JSP
Bookmark "problem in TLD " Watch "problem in TLD " New topic
Author

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(JspParseEventListener.java:660)
at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:110)
at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:203)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1056)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1031)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1027)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:172)
at org.apache.jasper.runtime.JspLoader$2.run(JspLoader.java:273)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.jasper.runtime.JspLoader.loadJSP(JspLoader.java:270)
at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:137)
at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:148)
at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:247)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:352)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at org.apache.tomcat.core.ServiceInvocationHandler.method(ServletWrapper.java:626)
at org.apache.tomcat.core.ServletWrapper.handleInvocation(ServletWrapper.java:534)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:378)
at org.apache.tomcat.core.Context.handleRequest(Context.java:644)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:440)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:144)
at org.apache.tomcat.service.TcpConnectionThread.run(TcpEndpoint.java:310)
at java.lang.Thread.run(Thread.java:484)
---------------------
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 ">
<HTML>
<HEAD>
</HEAD>

<BODY bgcolor="#fffffr">
<H3 align=center> ATM counters that need Cash</H3>
<TABLE>
<TR>
<TD></TD>
<TD><ATMjsp:ATM/></TD>
</BODY>
</HTML>
---------------------
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" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<TAGLIB>
<TLIBVERSION>1.0</TLIBVERSION>
<JSPVERSION>1.1</JSPVERSION>
<SHORTNAME>ATMjsp</SHORTNAME>
<URN></URN>
<INFO>A Tag library for the ATM details</INFO>
<TAG>
<NAME>ATM</NAME>
<TAGCLASS>ATMTag</TAGCLASS>
<INFO>Outputs of the ATM counter</INFO>
<BODYCONTENT>JSP</BODYCONTENT>
</TAG>
</TAGLIB>

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

Sree
ramprasad madathil
Ranch Hand

Joined: Jan 24, 2005
Posts: 489

the element names are case sensitive in your tld file

use
<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
........
and so on.

ram.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem in TLD