guys, what is the point of *not* unpacking?
marcf |-----Original Message----- |From: Greg Wilkins [mailto:[EMAIL PROTECTED]] |Sent: Sunday, February 24, 2002 3:54 PM |To: David Jencks |Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] |Subject: [jetty-discuss] Re: Problem with NestedURLHandlerFactory | | | |OK, | |I'm still having trouble making Jetty run with an unpacked njar |URL. After a few changes |it is getting a little better, but if I am passed something like: | | njar:file:/home/gregw/Jetty4/webapps/test2.jar^/test.war | |then Jetty tries to run that unpacked by using URLs like: | | |jar:njar:file:/home/gregw/Jetty4/webapps/test2.jar^/test.war!/WEB-I |NF/web.xml | | |All starts off well, but I eventually get problems with the |JarURLConnection like: | |java.lang.NullPointerException | at java.util.zip.Inflater.reset(Inflater.java:253) | at java.util.zip.ZipFile.getInflater(ZipFile.java:249) | at java.util.zip.ZipFile.getInputStream(ZipFile.java:197) | at java.util.zip.ZipFile.getInputStream(ZipFile.java:174) | at java.util.jar.JarFile.getInputStream(JarFile.java:307) | at |sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConn |ection.java:120) | at org.mortbay.util.Resource.exists(Resource.java:262) | at org.mortbay.util.JarResource.exists(JarResource.java:69) | at |org.mortbay.jetty.servlet.ServletHandler$Context.getResource(Servle |tHandler.java:888) | at |org.mortbay.jetty.servlet.ServletHandler$Context.getResourceAsStrea |m(ServletHandler.java:915) | at |org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLo |cationsCache.java:152) | at |org.apache.jasper.compiler.TldLocationsCache.<init>(TldLocationsCac |he.java:138) | at |org.apache.jasper.EmbededServletOptions.<init>(EmbededServletOption |s.java:345) | at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266) | at |org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:203) | at |org.mortbay.jetty.servlet.ServletHandler.start(ServletHandler.java:380) | at |org.mortbay.jetty.servlet.FilterHandler.start(FilterHandler.java:160) | at |org.mortbay.http.HttpContext.startHandlers(HttpContext.java:1449) | at org.mortbay.http.HttpContext.start(HttpContext.java:1420) | at |org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicatio |nContext.java:390) | at org.mortbay.http.HttpServer.start(HttpServer.java:186) | at org.mortbay.jetty.Server.main(Server.java:331) | |I'm not sure if this is a bug in the JarURLConnection or your |nested handler. | |The pity is that if the jar:.../! wrapping did not initially work, |then Jetty would |have extracted the war and continued OK. So this should work |in JBoss as the default |is the force extraction..... but it would be nice to be able to |run without extracting. | |So hopefully when I commit the changes to Jetty, you will not need |to do the extraction |unless AbstractWebApplication needs it - in which case it is |better for JBoss to do |the extraction once and pass Jetty the extracted location. | |cheers | | | |David Jencks wrote: |> Here's my current version. Everything except Jetty runs fine: this is I |> think because Jetty doesn't understand njar:...^/ very well. | |-- |Greg Wilkins<[EMAIL PROTECTED]> GB Phone: +44-(0)7092063462 |Mort Bay Consulting Australia and UK. Mbl Phone: +61-(0)4 17786631 |http://www.mortbay.com AU Phone: +61-(0)2 98107029 | | |------------------------ Yahoo! Groups Sponsor ---------------------~--> |Sponsored by VeriSign - The Value of Trust |Secure all your Web servers now - with a proven 5-part |strategy. The FREE Server Security Guide shows you how. |http://us.click.yahoo.com/iWSNbC/VdiDAA/yigFAA/CefplB/TM |---------------------------------------------------------------------~-> | |For the latest information about Jetty, please see http://jetty.mortbay.org | |To alter your subscription to this list goto |http://groups.yahoo.com/group/jetty-discuss | |Your use of Yahoo! |Groups is subject to http://docs.yahoo.com/info/terms/ | _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development