Howdy, Do you have a version of the JSP API other than that provided with tomcat?
(Needless to say, the JSP examples work out of the box for me and everyone else I know who's using tomcat 5) ;) Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Chakravarthy, Sundar [mailto:[EMAIL PROTECTED] >Sent: Wednesday, December 24, 2003 11:23 AM >To: Tomcat Users List >Subject: RE: Tomcat 5 - Tag Lib Error > >I am running BasicArithmetic example found in the base distribution - >http://localhost:8080/jsp-examples/ > >Here is the source code. Actually , none of the tag library examples >work. > ><html> > <head> > <title>JSP 2.0 Expression Language - Basic Arithmetic</title> > </head> > <body> > <h1>JSP 2.0 Expression Language - Basic Arithmetic</h1> > <hr> > This example illustrates basic Expression Language arithmetic. > Addition (+), subtraction (-), multiplication (*), division (/ or >div), > and modulus (% or mod) are all supported. Error conditions, like > division by zero, are handled gracefully. > <br> > <blockquote> > <code> > <table border="1"> > <thead> > <td><b>EL Expression</b></td> > <td><b>Result</b></td> > </thead> > <tr> > <td>\${1}</td> > <td>${1}</td> > </tr> > <tr> > <td>\${1 + 2}</td> > <td>${1 + 2}</td> > </tr> > <tr> > <td>\${1.2 + 2.3}</td> > <td>${1.2 + 2.3}</td> > </tr> > <tr> > <td>\${1.2E4 + 1.4}</td> > <td>${1.2E4 + 1.4}</td> > </tr> > <tr> > <td>\${-4 - 2}</td> > <td>${-4 - 2}</td> > </tr> > <tr> > <td>\${21 * 2}</td> > <td>${21 * 2}</td> > </tr> > <tr> > <td>\${3/4}</td> > <td>${3/4}</td> > </tr> > <tr> > <td>\${3 div 4}</td> > <td>${3 div 4}</td> > </tr> > <tr> > <td>\${3/0}</td> > <td>${3/0}</td> > </tr> > <tr> > <td>\${10%4}</td> > <td>${10%4}</td> > </tr> > <tr> > <td>\${10 mod 4}</td> > <td>${10 mod 4}</td> > </tr> > <tr> > <td>\${(1==2) ? 3 : 4}</td> > <td>${(1==2) ? 3 : 4}</td> > </tr> > </table> > </code> > </blockquote> > </body> ></html> > > >-----Original Message----- >From: Shapira, Yoav [mailto:[EMAIL PROTECTED] >Sent: Wednesday, December 24, 2003 11:18 AM >To: Tomcat Users List >Subject: RE: Tomcat 5 - Tag Lib Error > > >Howdy, >What pageContext calls are you making in your JSP page? > >Yoav Shapira >Millennium ChemInformatics > > >>-----Original Message----- >>From: Chakravarthy, Sundar [mailto:[EMAIL PROTECTED] >>Sent: Wednesday, December 24, 2003 11:12 AM >>To: [EMAIL PROTECTED] >>Subject: Tomcat 5 - Tag Lib Error >> >>Hi, >> >> >> >>I just installed Windows version of Tomcat 5.x and get the following >>error while try to run tag library examples.. >> >>Others work fine. >> >> >> >> >>HTTP Status 500 - >> >> _____ >> >> >>type Exception report >> >>message >> >>description The server encountered an internal error () that prevented >>it from fulfilling this request. >> >>exception >> >>javax.servlet.ServletException: Error instantiating servlet class >>org.apache.jsp.jsp2.simpletag.hello_jsp >> >>org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticat o >r >>Base.java:509) >> >>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja v >a >>:164) >> >>org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211 ) >> >>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 8 >0 >>5) >> >>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proces s >C >>onnection(Http11Protocol.java:696) >> >>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java: 6 >0 >>5) >> >>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPo o >l >>.java:677) >> java.lang.Thread.run(Thread.java:536) >> >>root cause >> >>java.lang.VerifyError: (class: org/apache/jsp/jsp2/simpletag/hello_jsp, >>method: _jspx_meth_mytag_helloWorld_0 signature: >>(Ljavax/servlet/jsp/PageContext;)Z) Incompatible argument to function >> java.lang.Class.getDeclaredConstructors0(Native Method) >> java.lang.Class.privateGetDeclaredConstructors(Class.java:1590) >> java.lang.Class.getConstructor0(Class.java:1762) >> java.lang.Class.newInstance0(Class.java:276) >> java.lang.Class.newInstance(Class.java:259) >> >>org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticat o >r >>Base.java:509) >> >>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja v >a >>:164) >> >>org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211 ) >> >>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 8 >0 >>5) >> >>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proces s >C >>onnection(Http11Protocol.java:696) >> >>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java: 6 >0 >>5) >> >>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPo o >l >>.java:677) >> java.lang.Thread.run(Thread.java:536) >> >>note The full stack trace of the root cause is available in the Tomcat >>logs. >> >> > > > > >This e-mail, including any attachments, is a confidential business >communication, and may contain information that is confidential, >proprietary and/or privileged. This e-mail is intended only for the >individual(s) to whom it is addressed, and may not be saved, copied, >printed, disclosed or used by anyone else. If you are not the(an) >intended recipient, please immediately delete this e-mail from your >computer system and notify the sender. Thank you. > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]