Solved. This turned out to be an issue between Struts1.1, Tomcat 5.0.18 and most importantly, j2sdk1.3.1. Removing j2sdk1.3.1, installing j2sdk1.4.2_03, then removing and reinstalling Tomcat 5.0.18 and the Struts1.1 WAR files (and adjusting JAVA_HOME, of course) solved the pesky "java.lang.IllegalStateException: zip file closed" problem on an NT machine. The Struts examples now work (and the other Tomcat files always did work with j2sdk1.3.1).
----- Original Message ----- From: "Adam Hardy" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, February 11, 2004 12:21 PM Subject: Re: Struts 1.1 on Tomcat 5.0.18? Since no-one has said anything about an error in the struts-examples app here, then I assume it's something in your setup that you or your colleagues have done. Did you do anything during install apart from set JAVA_HOME, CATALINA_HOME, PATH? Do you have anything in JAVA_OPTS or JAVA_OPTIONS? Did you edit catalina.sh? (Are you windows or unix?) You should of course check the list archive and bugzilla to make sure that it's not a recognised problem, if it's happening with a clean install. Where did you find out about the Sun / tomcat issue? Which version of JDK and Tomcat does it affect? On 02/11/2004 12:55 AM Steve Hill wrote: > Tomcat 5 comes with Jasper 2 enabled by default - it has jasper-compiler.jar > and jasper-runtime.jar in the tomcat5\common\lib directory already. So, that > can't be it. (There is not a jasper.jar that I could find.) > > > ----- Original Message ----- > From: "Samyukta Akunuru" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Tuesday, February 10, 2004 3:31 PM > Subject: RE: Struts 1.1 on Tomcat 5.0.18? > > > Did you add the jasper compiler jars (jasper.jar, > jasper-compiler.jar,jasper-runtime.jar) > > > > -----Original Message----- > From: Steve Hill [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 10, 2004 5:24 PM > To: Struts Users Mailing List > Subject: Re: Struts 1.1 on Tomcat 5.0.18? > > > I had sent a previous message to this list with a complete error listing, > but I'll clarify. I downloaded and installed a new installation of Tomcat > 5.0.18. I then downloaded and installed a new installation of struts 1.1, > copying the documentation and example application war files into Tomcat's > Webapps directory, and restarting Tomcat. > > Running the http://localhost:808/struts-documentation works fine. Running > http://localhost:808/struts-example gives the following error message. I > followed the other instructions (XML parser, JDBC2, xalan-j) as specified in > v1.16 of the Struts readme file. The exception report I get when running > struts-example is: > > description The server encountered an internal error () that prevented it > from fulfilling this request. > > exception > > org.apache.jasper.JasperException: Unable to compile class for JSP > at > org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5 > 58) > at > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 > 91) > at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) > > > root cause > > java.lang.IllegalStateException: zip file closed > at java.util.zip.ZipFile.getEntry(ZipFile.java:141) > at java.util.jar.JarFile.getEntry(JarFile.java:181) > at sun.net.www.protocol.jar.URLJarFile.getEntry(URLJarFile.java:76) > at > sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:96) > at > sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.ja > va:108) > at java.net.URL.openStream(URL.java:798) > at > org.apache.catalina.loader.StandardClassLoader.getResourceAsStream(StandardC > lassLoader.java:714) > at > org.apache.catalina.loader.StandardClassLoader.getResourceAsStream(StandardC > lassLoader.java:696) > at > org.apache.catalina.loader.WebappClassLoader.getResourceAsStream(WebappClass > Loader.java:1202) > at javax.xml.parsers.SecuritySupport12$4.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at javax.xml.parsers.SecuritySupport12.getResourceAsStream(Unknown Source) > at javax.xml.parsers.FactoryFinder.findJarServiceProvider(Unknown Source) > at javax.xml.parsers.FactoryFinder.find(Unknown Source) > at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source) > at > org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:12 > 9) > at > org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:112) > at org.apache.jasper.compiler.JspConfig.init(JspConfig.java:213) > at org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:229) > at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:201) > at org.apache.jasper.compiler.Compiler.compile(Compiler.java:456) > at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) > at > org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5 > 52) > at > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 > 91) > at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) > > Specific suggestions welcome, else I will just start over if Struts 1.1 is > normally known to work successfully on Tomcat 5.0.18. It looks like > something is missing but if the Struts readme docs are correct it should > work. This particular error is a known Sun issue in a previous Tomcat > version. Thanks. > > > --------------------------------------------------------------------- > 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] > > -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian --------------------------------------------------------------------- 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]