From: Brett P. (JIRA) <ji...@co...> - 2006-08-30 13:17:53
|
[ http://jira.codehaus.org/browse/JETTY-103?page=comments#action_73665 ] Brett Porter commented on JETTY-103: ------------------------------------ its less frequent now thouggh - doesn't happen every time. When it did, I got this: 2006-08-30 23:14:59.278::WARN: failed ContextHandler@9b746f{/,file:/Users/brett/scm/maven/archiva/archiva-webapp/src/main/webapp/} Exception in thread "Thread-3" java.lang.InternalError: jzentry == 0, jzfile = 3286384, total = 52, name = /Users/brett/.m2/repository/org/apache/maven/archiva/archiva-indexer/1.0-SNAPSHOT/archiva-indexer-1.0-SNAPSHOT.jar, i = 3, message = invalid LOC header (bad signature) at java.util.zip.ZipFile$3.nextElement(ZipFile.java:429) at java.util.zip.ZipFile$3.nextElement(ZipFile.java:415) at java.util.jar.JarFile$1.nextElement(JarFile.java:217) at java.util.jar.JarFile$1.nextElement(JarFile.java:216) at org.mortbay.resource.JarFileResource.list(JarFileResource.java:241) at org.mortbay.jetty.webapp.TagLibConfiguration.findTLDs(TagLibConfiguration.java:124) at org.mortbay.jetty.webapp.TagLibConfiguration.configureWebApp(TagLibConfiguration.java:188) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1121) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:414) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:461) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38) at org.mortbay.jetty.plugin.Jetty6PluginWebApplication.start(Jetty6PluginWebApplication.java:137) at org.mortbay.jetty.plugin.AbstractJettyRunMojo$1.changesDetected(AbstractJettyRunMojo.java:354) at org.mortbay.jetty.plugin.util.Scanner.run(Scanner.java:158) > scanning for changed JARs fails on Mac > -------------------------------------- > > Key: JETTY-103 > URL: http://jira.codehaus.org/browse/JETTY-103 > Project: Jetty > Issue Type: Bug > Components: Maven2 > Affects Versions: 6.0.0RC0 > Environment: Mac OS X 10.4.7 > Reporter: Brett Porter > Assigned To: Jan Bartel > > This works on windows, but with a scanIntervalSeconds of 10 I always get this when it attempts to restart the webapp: > :WARN: failed ContextHandler@6ea3fe{/,file:/Users/brett/scm/maven/archiva/maven-repository-webapp/src/main/webapp/} > Exception in thread "Thread-3" java.lang.InternalError: jzentry == 0, > jzfile = 3270336, > total = 33, > name = /Users/brett/.m2/repository/org/apache/maven/repository/maven-repository-configuration/1.0-SNAPSHOT/maven-repository-configuration-1.0-SNAPSHOT.jar, > i = 33, > message = invalid LOC header (bad signature) > at java.util.zip.ZipFile$3.nextElement(ZipFile.java:429) > at java.util.zip.ZipFile$3.nextElement(ZipFile.java:415) > at java.util.jar.JarFile$1.nextElement(JarFile.java:217) > at java.util.jar.JarFile$1.nextElement(JarFile.java:216) > at org.mortbay.resource.JarFileResource.list(JarFileResource.java:233) > at org.mortbay.jetty.webapp.TagLibConfiguration.findTLDs(TagLibConfiguration.java:124) > at org.mortbay.jetty.webapp.TagLibConfiguration.configureWebApp(TagLibConfiguration.java:188) > at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1121) > at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:414) > at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:461) > at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38) > at org.mortbay.jetty.plugin.Jetty6PluginWebApplication.start(Jetty6PluginWebApplication.java:137) > at org.mortbay.jetty.plugin.AbstractJettyRunMojo$1.changesDetected(AbstractJettyRunMojo.java:354) > I know this was a known issue if the file changes while it is being deployed, but the file is never mid change when this happens, and it happens on every deploy. > Is it possible that it is because the file is open when it is copied over? > If there is nothing that can be done here in place, I'd suggest copying the jars to a temp location before adding them to the webapp, then monitoring the originals for modification and copying them again between the stop and start of the webapp. > wdyt? -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |