You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2004/09/15 20:03:05 UTC
DO NOT REPLY [Bug 31249] New: -
Using a custom taglib causes strange NoSuchMethodException
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31249>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=31249
Using a custom taglib causes strange NoSuchMethodException
Summary: Using a custom taglib causes strange
NoSuchMethodException
Product: Tomcat 5
Version: 5.0.27
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Major
Priority: Other
Component: Servlet & JSP API
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: kakins@wmsco.com
Hi,
I have created a custom tag library class that I want to include in my JSP web
application. The class and TLD compiled fine, but after putting a test tag in
my JSP page, Tomcat displays the following exception:
exception
javax.servlet.ServletException: javax.servlet.jsp.tagext.TagInfo.<init>
(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljavax/
servlet/jsp/tagext/TagLibraryInfo;Ljavax/servlet/jsp/tagext/TagExtraInfo;
[Ljavax/servlet/jsp/tagext/TagAttributeInfo;Ljava/lang/String;Ljava/lang/String;
Ljava/lang/String;[Ljavax/servlet/jsp/tagext/TagVariableInfo;Z)V
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:244)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
com.cetacademicprograms.servlets.StudentAppFormServlet.dispatchToUrl
(StudentAppFormServlet.java:249)
com.cetacademicprograms.servlets.StudentAppFormServlet.actionDefaultHand
ler(StudentAppFormServlet.java:149)
com.cetacademicprograms.servlets.StudentAppFormServlet.doGet
(StudentAppFormServlet.java:81)
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
root cause
java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagInfo.<init>
(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljavax/
servlet/jsp/tagext/TagLibraryInfo;Ljavax/servlet/jsp/tagext/TagExtraInfo;
[Ljavax/servlet/jsp/tagext/TagAttributeInfo;Ljava/lang/String;Ljava/lang/String;
Ljava/lang/String;[Ljavax/servlet/jsp/tagext/TagVariableInfo;Z)V
org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo
(TagLibraryInfoImpl.java:435)
org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD
(TagLibraryInfoImpl.java:248)
org.apache.jasper.compiler.TagLibraryInfoImpl.<init>
(TagLibraryInfoImpl.java:162)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
org.apache.jasper.compiler.Parser.parse(Parser.java:126)
org.apache.jasper.compiler.ParserController.doParse
(ParserController.java:220)
org.apache.jasper.compiler.ParserController.parse
(ParserController.java:101)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile
(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service
(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
com.cetacademicprograms.servlets.StudentAppFormServlet.dispatchToUrl
(StudentAppFormServlet.java:249)
com.cetacademicprograms.servlets.StudentAppFormServlet.actionDefaultHand
ler(StudentAppFormServlet.java:149)
com.cetacademicprograms.servlets.StudentAppFormServlet.doGet
(StudentAppFormServlet.java:81)
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
Some other newsgroups claim that this looks like a JAR file version mismatch. I
downloaded the Tomcat installation from the jakarta.apache.org website and have
not added any new JARs. This was not an upgrade. Can someone please look into
this?
Thanks,
Kelly
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org