-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gretty-farm plugin throws IllegalStateException: zip file closed #24
Comments
This error is strange. It seems that it's not caused by anything in Gretty sources. This stackoverflow thread gives a hint, that the problem is present in Jetty in general. Could you, please, try the following:
What is the result? Is error still there? |
BTW, are your web-apps using web-fragments? Is there a situation that web-apps A and B are both using the same web-fragment C? |
We have no web fragments. Adding the jetty.xml fixed the problem! ...however when opening the url in the browser I get org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required. I guess this would be something entirely different problem... |
I'm glad to hear this problem is solved 😄 |
Sadly I cannot reproduce the JasperException anymore. I'm just getting Exception in thread "qtp530608225-19" now, and no stack traces at all in the console. Any tips on where to look? |
Maybe, we should try to isolate the problem? Is "qtp" reproducible, if each web-app is started separately (by jettyRun)? |
We have about 10 subprojects in our project right now. I'm able to deploy three modules at the same time with no errors, which looks very promosing! And so when I add the fourth module, I suddenly get the NativeException from rubygrapefruit. |
Could you, please, you provide a stacktrace for NativeException from rubygrapefruit? |
This is all I get: :farmRun |
Hurray-hurray! I reproduced it on Windows 😄 |
Thanks a lot, you are a true life saver 😃 |
In the meantime the problem is fixed. New release comes in the next 30 minutes. |
When defining a farm extension with two or more webapps, it will deploy the first webapp just fine, but then it will throw an IllegalStateException for the rest of the webapps.
2014-05-23 11:54:34.320 WARN - Failed startup of context o.e.j.w.WebAppContext@44a02b9c{/webshop-car,file:/C:/workspace/webshop/PI/webshop-car/build/inplaceWebapp/,null}
java.lang.IllegalStateException: zip file closed
at java.util.zip.ZipFile.ensureOpen(ZipFile.java:634) ~[na:1.7.0_55]
at java.util.zip.ZipFile.getInputStream(ZipFile.java:347) ~[na:1.7.0_55]
at java.util.jar.JarFile.getInputStream(JarFile.java:409) ~[na:1.7.0_55]
at sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:162) ~[na:1.7.0_55]
at org.eclipse.jetty.util.resource.URLResource.getInputStream(URLResource.java:219) ~[jetty-util-9.1.0.v20131115.jar:9.1.0.v20131115]
at org.eclipse.jetty.util.resource.JarResource.getInputStream(JarResource.java:121) ~[jetty-util-9.1.0.v20131115.jar:9.1.0.v20131115]
at org.eclipse.jetty.webapp.Descriptor.parse(Descriptor.java:65) ~[jetty-webapp-9.1.0.v20131115.jar:9.1.0.v20131115]
at org.eclipse.jetty.webapp.WebDescriptor.parse(WebDescriptor.java:148) ~[jetty-webapp-9.1.0.v20131115.jar:9.1.0.v20131115]
at org.eclipse.jetty.webapp.FragmentDescriptor.parse(FragmentDescriptor.java:64) ~[jetty-webapp-9.1.0.v20131115.jar:9.1.0.v20131115]
at org.eclipse.jetty.webapp.MetaData.addFragment(MetaData.java:248) ~[jetty-webapp-9.1.0.v20131115.jar:9.1.0.v20131115]
at org.eclipse.jetty.webapp.FragmentConfiguration.findWebFragments(FragmentConfiguration.java:84) ~[jetty-webapp-9.1.0.v20131115.jar:9.1.0.v20131115]
at org.eclipse.jetty.webapp.FragmentConfiguration.preConfigure(FragmentConfiguration.java:44) ~[jetty-webapp-9.1.0.v20131115.jar:9.1.0.v20131115]
at org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:454) ~[jetty-webapp-9.1.0.v20131115.jar:9.1.0.v20131115]
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:490) ~[jetty-webapp-9.1.0.v20131115.jar:9.1.0.v20131115]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:69) [jetty-util-9.1.0.v20131115.jar:9.1.0.v20131115]
at org.eclipse.jettyomponent.ContainerLifeCycle.start(ContainerLifeCycle.java:117) [jetty-util-9.1.0.v20131115.jar:9.1.0.v20131115]
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:99) [jetty-util-9.1.0.v20131115.jar:9.1.0.v20131115]
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:60) [jetty-server-9.1.0.v20131115.jar:9.1.0.v20131115]
at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:154) [jetty-server-9.1.0.v20131115.jar:9.1.0.v20131115]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:69) [jetty-util-9.1.0.v20131115.jar:9.1.0.v20131115]
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:117) [jetty-util-9.1.0.v20131115.jar:9.1.0.v20131115]
at org.eclipse.jetty.server.Server.start(Server.java:355) [jetty-server-9.1.0.v20131115.jar:9.1.0.v20131115]
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:99) [jetty-util-9.1.0.v20131115.jar:9.1.0.v20131115]
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:60) [jetty-server-9.1.0.v20131115.jar:9.1.0.v20131115]
at org.eclipse.jetty.server.Server.doStart(Server.java:324) [jetty-server-9.1.0.v20131115.jar:9.1.0.v20131115]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:69) [jetty-util-9.1.0.v20131115.jar:9.1.0.v20131115]
at org.eclipse.jetty.util.component.LifeCycle$start.call(Unknown Source) [jetty-util-9.1.0.v20131115.jar:9.1.0.v20131115]
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42) [groovy-all-1.8.6.jar:1.8.6]
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) [groovy-all-1.8.6.jar:1.8.6]
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112) [groovy-all-1.8.6.jar:1.8.6]
at org.akhikhl.gretty.RunnerBase.startServer(RunnerBase.groovy:82) [gretty-helper-com0.19.jar:na]
at org.akhikhl.gretty.RunnerBase$startServer.call(Unknown Source) [gretty-helper-commons-0.0.19.jar:na]
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42) [groovy-all-1.8.6.jar:1.8.6]
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) [groovy-all-1.8.6.jar:1.8.6]
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112) [groovy-all-1.8.6.jar:1.8.6]
at org.akhikhl.gretty.RunnerThread.run(RunnerThread.groovy:28) [gretty-helper-commons-0.0.19.jar:na]
The text was updated successfully, but these errors were encountered: