RE: W2k/cygwin/4.0.2-b2/Incompatible type for method.
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]
RE: Struts framwork
use jar or a zip decompressor. -Original Message- From: Henry Lu [mailto:[EMAIL PROTECTED]] Sent: Monday, January 28, 2002 10:47 AM To: [EMAIL PROTECTED] Subject: RE: Struts framwork Amo, do you know how to decode .war file? I downloaded some samples of struts application and thay are all in .war file. How do I extract files from these .war file? Thanks, Henry [EMAIL PROTECTED] 01/28/02 08:50AM you can also see : http://www.husted.com/struts/ I'm also using it successfully in my web apps. One more thanks to Craig for all his work on Tomcat, Struts, ... Arno -Message d'origine- De: Lauer, Oliver [SMTP:[EMAIL PROTECTED]] Date: lundi 28 janvier 2002 14:19 À:'Tomcat Users List' Objet:AW: Struts framwork There's a real good documentation on http://jakarta.apache.org/struts/index.html. We are successfully using STRUTS with TC since 2 years now. AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -Ursprüngliche Nachricht- Von: Henry Lu [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 28. Januar 2002 14:11 An: [EMAIL PROTECTED] Betreff: Struts framwork In our project we want to use the Struts framwork.. Struts frame work is developed by jakarta and is totally implemented on Jsp taglibs. Could someone provide more source and docs how to use this framwork? THanks, Henry -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately. == -- 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] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]