Tomcat 3.2.1, taglib demo /examples/jsp/simpletag/foo.jsp throws NoSuchMethodError in TagLibraryInfoImpl.createAttribute

2001-01-09 Thread Coetmeur, Alain


I've intalled tomcat 3.2.1 with cocoon1.8,
xerces 1.2, servlet 2.2 jar, ... jdk1.3 SE on Windows NT SP6.

Cocoon and most of the JSP demos work perfectly,
but the taglib demo throws the NoSuchMethoError exception...

I have recompiled the examples classes 
but nothing changes...

the TLD seems OK,
and if I change the reference in the web.xml
in WEB-INF, then it throws an error message telling
it cannot read the TLD.
this seems to show that the TLD is correctly designated.

my problem looks like the one related in BugRat Report #246
http://www.metronet.com/~wjm/tomcat/FromFeb11/msg06508.html
and BugRat Report # 65 
http://w6.metronet.com/~wjm/tomcat/FromFeb11/msg05379.html

is this a known problem?
with a solution ?
any advices or things to look at...
I've checked everywhere I know, in the mailing list archives,
on the web with google, in dejanews, but
only BugRats reports talk about that with no anwer...

here are : the error message, foo.jsp, web.xml and example-taglib.tld

---
--- error message
Location: /examples/jsp/simpletag/foo.jsp
Internal Servlet Error:

javax.servlet.ServletException
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)


Root cause: 
java.lang.NoSuchMethodError
at
org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryInfo
Impl.java:524)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoIm
pl.java:432)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.ja
va:385)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:233)
at
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEve
ntListener.java:706)
at
org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingList
ener.java:116)
at
org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:182)
at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:152)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:164)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)

--
 webapps/examples/jsp/foo.jsp
html
!--
  Copyright (c) 1999 The Apache Software Foundation.  All rights 
  reserved.
--
body
%@ taglib uri="http://java.apache.org/tomcat/examples-taglib" prefix="eg"
%

Radio stations that rock:

ul
eg:foo att1="98.5" att2="92.3" att3="107.7"
li%= member %/li
/eg:foo
/ul

eg:log
Did you see me on the stderr window?
/eg:log

eg:log toBrowser="true"
Did you see me on the browser window as well?
/eg:log

/body
/html
--
 webapps/examples/WEB-INF/web.xml
?xml version="1.0" encoding="ISO-8859-1"?

!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"

web-app
servlet
servlet-name
snoop
/servlet-name
servlet-class
SnoopServlet
/servlet-class
!--
init-param
param-namefoo/param-name
param-valuebar/param-value
/init-param
--
/servlet
servlet
  servlet-name
  servletToJsp
  /servlet-name
  servlet-class
  servletToJsp
  /servlet-class
/servlet
   

RE: Tomcat 3.2.1, taglib demo /examples/jsp/simpletag/foo.jsp throws NoSuchMethodError in TagLibraryInfoImpl.createAttribute

2001-01-09 Thread Coetmeur, Alain

2 days I was working on that, digging into the archives...

the solution was to install the servlet.jar from latest
jakarta-servletapi3.2
instead of the servlet2_2.jar found with cocoon, that cocoon 
ask to put in leu of the basic servlet.jar of tomcat...
coccon seems to work perfectly anyway...

nb: at least now there is an article on this problem, with a solution...
sorry for the mess.

-Message d'origine-

I've intalled tomcat 3.2.1 with cocoon1.8,
xerces 1.2, servlet 2.2 jar, ... jdk1.3 SE on Windows NT SP6.

Cocoon and most of the JSP demos work perfectly,
but the taglib demo throws the NoSuchMethoError exception...

- (on esmailfed2)

Ce message et toutes les pièces jointes sont confidentiels et établis à l’intention 
exclusive de ses destinataires. Toute utilisation de ce message non conforme à sa 
destination, toute diffusion ou toute publication, totale ou partielle, est interdite, 
sauf autorisation expresse. Si vous recevez ce message par erreur, merci de le 
détruire et d’en avertir immédiatement l’expéditeur. La Caisse des dépôts et 
consignations et ses filiales déclinent toute responsabilité au titre de ce message 
s’il a été altéré, déformé ou falsifié.
-
This message and any attachments are confidential and intended solely for the 
addressees. Any use not in accord with its purpose, any dissemination or disclosure, 
either whole or partial, is prohibited except formal approval. If you receive this 
message in error, please delete it and immediately notify the sender. Neither Caisse 
des dépôts et consignations nor any of its subsidiaries or affiliates shall be liable 
for the message if altered, changed or falsified.

-



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]