You are right. I truly haven't the slightest idea how this got there, but in my WEB-INF/classes directory was a tomcat org directory tree of an old version of tomcat. It's a mystery!
I deleted it and now things work fine. Thanks for the extra push. Chris "Zemen, Franz" wrote: > Hi Christopher, > > I believe this isn't anything to do with Win2K but rather with a version of > the JSP package that gets loaded into your classpath. > > In the older servlet/JSP package, PageContext.handlePageException accepted > only a java.lang.Exception (see Javadocs for J2EE 1.2.1). The newer version > of PageContext (certainly JSP 1.2) contains a handlePageException that > accepts a Throwable. I'm assuming that in your email below "t" is a > Throwable, and then > of course it would need to be cast specifically to an Exception if the > loaded PageContext class was not from the latest release. > > Is it possible that somewhere on your classpath an older version of J2EE or > JSP libraries are loaded first? That would be one possible cause of what > you are seeing. > > Hope this helps, > > Franz Zemen > > -----Original Message----- > From: Christopher Cobb [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 28, 2002 9:45 AM > To: Tomcat Users List > Subject: W2k/cygwin/4.0.2-b2/Incompatible type for method. > > I have seen this mentioned on the list several times but without a > resolution: > > org.apache.jasper.JasperException: Unable to compile class for JSP > > C:\unzipped\jakarta-tomcat-4.0.2-b2\jakarta-tomcat-4.0.2-b2\work\localhost\N > GPDWeb\LoginFrameset$jsp.java:112: > Incompatible type for method. Explicit cast needed to convert > java.lang.Throwable to java.lang.Exception. > if (pageContext != null) > pageContext.handlePageException(t); > ^ > 1 error > > at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285) > at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:551) > at > org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe > rvlet.java:177) > at > org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja > va:189) > at > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) > > I have tried several JDK's (1.3, 1.3.1_02, 1.4-rc), several versions of > tomcat (4.0.2-b2, 4.0.1, 3.1), and still the same > problem. I have even written an environment-purging script to make sure > that there is nothing in my environment causing this > problem. Here is my complete environment: > > $ env > !C:=C:\cygwin\bin > PS1=\[\033]0;\w\007 > \033[32m\]\u@\h \[\033[33m\w\033[0m\] > $ > OSTYPE=cygwin > HOME=/home/ccobb > > PATH=/usr/local/bin:/usr/bin:/bin:/drivec/WINNT/system32:/drivec/WINNT:/driv > ec/WINNT/System32/Wbem > _=/usr/bin/env > > Here is the output when I start tomcat 4.0.2-b2: > > Guessing CATALINA_HOME from catalina.sh to ./.. > Setting CATALINA_HOME to ./.. > Using CLASSPATH: bootstrap.jar;c:\jdk1.3.1_02\lib\tools.jar > Using CATALINA_BASE: > C:\unzipped\jakarta-tomcat-4.0.2-b2\jakarta-tomcat-4.0.2-b2 > Using CATALINA_HOME: > C:\unzipped\jakarta-tomcat-4.0.2-b2\jakarta-tomcat-4.0.2-b2 > Using JAVA_HOME: c:\jdk1.3.1_02\ > > Here is the contents of my jdk's lib directory: > > $ find jdk1.3.1_02/jre jdk1.3.1_02/lib \( -name '*.jar' -o -name > '*.zip' \) > jdk1.3.1_02/jre/lib/ext/cosnaming.jar > jdk1.3.1_02/jre/lib/ext/jbroker-rt.jar > jdk1.3.1_02/jre/lib/ext/jbroker-ssl.jar > jdk1.3.1_02/jre/lib/ext/jbroker-tools.jar > jdk1.3.1_02/jre/lib/ext/jndi.jar > jdk1.3.1_02/jre/lib/ext/providerutil.jar > jdk1.3.1_02/jre/lib/ext/rmiregistry.jar > jdk1.3.1_02/jre/lib/i18n.jar > jdk1.3.1_02/jre/lib/jaws.jar > jdk1.3.1_02/jre/lib/rt.jar > jdk1.3.1_02/jre/lib/sunrsasign.jar > jdk1.3.1_02/lib/dt.jar > jdk1.3.1_02/lib/ext/cosnaming.jar > jdk1.3.1_02/lib/ext/jbroker-rt.jar > jdk1.3.1_02/lib/ext/jbroker-ssl.jar > jdk1.3.1_02/lib/ext/jbroker-tools.jar > jdk1.3.1_02/lib/ext/jndi.jar > jdk1.3.1_02/lib/ext/providerutil.jar > jdk1.3.1_02/lib/ext/rmiregistry.jar > jdk1.3.1_02/lib/htmlconverter.jar > jdk1.3.1_02/lib/tools.jar > > (I have added jbroker support but this has no servlet files in it). I have > also tried with a squeeky clean install of 1.4-rc > with the same problem. > > Is this a Win2K problem? Does anyone have a solution to this? > > Thanks > > Chris > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
