Hi, Which version of Java do you have. I see that there is no direct reference to any format function in JspCalendar.java.
>From the stack trace, it appears that the error occurs somewhere in org.apache.jasper.Constant.getString(). The problem might be that you have some setting in your server.xml or web.xml file that is not well formed or something. The Jasper API has the following information for the getString() functions: Format the string that is looked up using "key" using "args". ..and.. Get hold of a "message" or any string from our resources database I've got no idea though were it is trying to get a message from in the resource database. My guess would be with some Locale specific string. Try setting your Locale to en_UK or en_US and see what happens. The java.text.Format.format I guess comes from the java.text.DateFormat class, which uses the Locale information supplied by the call to org.apache.jasper.Constants.getString(). Hope some of this help. Paul -----Original Message----- From: Gupta, Ashish (CORP, Consultant) [mailto:[EMAIL PROTECTED]] Sent: 17 February 2003 19:59 To: Tomcat Users List Subject: RE: Error while running JSP's on tomcat 3.2.4 Hi Paul, The Code is as follows :- <html> <!-- Copyright (c) 1999 The Apache Software Foundation. All rights reserved. --> <%@ page session="false"%> <body bgcolor="white"> <jsp:useBean id='clock' scope='page' class='dates.JspCalendar' type="dates.JspCalendar" /> <font size=4> <ul> <li> Day of month: is <jsp:getProperty name="clock" property="dayOfMonth"/> <li> Year: is <jsp:getProperty name="clock" property="year"/> <li> Month: is <jsp:getProperty name="clock" property="month"/> <li> Time: is <jsp:getProperty name="clock" property="time"/> <li> Date: is <jsp:getProperty name="clock" property="date"/> <li> Day: is <jsp:getProperty name="clock" property="day"/> <li> Day Of Year: is <jsp:getProperty name="clock" property="dayOfYear"/> <li> Week Of Year: is <jsp:getProperty name="clock" property="weekOfYear"/> <li> era: is <jsp:getProperty name="clock" property="era"/> <li> DST Offset: is <jsp:getProperty name="clock" property="DSTOffset"/> <li> Zone Offset: is <jsp:getProperty name="clock" property="zoneOffset"/> </ul> </font> </body> </html> -----Original Message----- From: Paul Bothma [mailto:[EMAIL PROTECTED]] Sent: Monday, February 17, 2003 12:50 PM To: Tomcat Users List Subject: RE: Error while running JSP's on tomcat 3.2.4 Hi, Could you please post the JSP file. The problem appears to be with a MessageFormat.format() call in your code somewhere. Paul -----Original Message----- From: Gupta, Ashish (CORP, Consultant) [mailto:[EMAIL PROTECTED]] Sent: 17 February 2003 15:24 To: [EMAIL PROTECTED] Subject: Error while running JSP's on tomcat 3.2.4 Hello All, I have an installation of Tomcat 3.2.4 on a windows 2000 professional box. The server parses the HTML pages fine, however on parsing the JSP pages i get the following error: Error: 500 Location: /examples/jsp/dates/date.jsp Internal Servlet Error: org.apache.jasper.JasperException: Unable to compile class for JSP at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:630) at org.apache.jasper.servlet.JasperLoader.loadJSP(JasperLoader.java:332) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:258) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:268) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:80 6) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:752) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:474) Root cause: java.lang.IllegalArgumentException: Unknown argument at java.text.MessageFormat.format(MessageFormat.java:643) at java.text.MessageFormat.format(MessageFormat.java:449) at java.text.Format.format(Format.java:128) at org.apache.jasper.Constants.getString(Constants.java:211) at org.apache.jasper.Constants.message(Constants.java:247) at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEve ntListener.java:677) 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:209) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612) at org.apache.jasper.servlet.JasperLoader.loadJSP(JasperLoader.java:332) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:258) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:268) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:80 6) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:752) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:474) I have been trying to figure out the cause of the problem but in vain. Would appreciate any help or clues as to what the problem might be. Thanks, Ashish --------------------------------------------------------------------- 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] --------------------------------------------------------------------- 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]