*
The moose likes JSP and the fly likes error in opening tld Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "error in opening tld" Watch "error in opening tld" New topic
Author

error in opening tld

Sree kanth
Ranch Hand

Joined: Feb 02, 2005
Posts: 53
when i try to invoke a tld from a jsp file,the following error is shown
Please help me...

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)

rgds
Sree


Sree
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

org.apache.jasper.JasperException: Unable to open taglibrary ATMjsp.tld : More than one taglib in the TLD


Do you have more than one taglib tag in your TLD?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Sree kanth
Ranch Hand

Joined: Feb 02, 2005
Posts: 53
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>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: error in opening tld