Re: Intermittent failure while deploying war file on Tomcat 8.0.24
Its on local disk. On Fri, Sep 11, 2015 at 12:31 PM, Mark Thomas wrote: > On 11/09/2015 19:50, prashant gothi wrote: > > Thanks Martijn and Markt for reply. > > > >> What happens if you do not use a symbolic link? > > Not tried, as issue is intermittent its would be hard to say. For upgrade > > purpose we want to use symbolic link. > > > > Is there a known issue with symbolic link, or symbolic link is > discouraged? > > > >> Are you deploying with the manager web-app? > > > > No, we are not using web-app manager. At the time of symbolic link > creation > > tomcat is stopped. Tomcat is started once link is created. > > Is the symbolic link to a location on local disk or to some network > location? > > Mark > > > > > > > > > > > On Fri, Sep 11, 2015 at 12:38 AM, Martijn Bos wrote: > > > >> What happens if you do not use a symbolic link? > >> Are you deploying with the manager web-app? > >> > >> Best regards, > >> Martijn > >> > >> > >> > >> On 11-09-15 03:31, prashant gothi wrote: > >>> Tomcat version: 8.0.24 > >>> OS RHEL 6.6 > >>> > >>> > >>> Just one war file (ascws.war) is deployed under it. We are seeing > >>> intermittent failure while deploying war file, tomcat logs indicates > (zip > >>> file is empty) exception is mentioned below. > >>> > >>> We have verified file is correct (non zero), and only way to recover > from > >>> error is manually delete ascws folder (from webapp folder) and restart > >>> tomcat. > >>> > >>> FYI.. ascws.war is a symbolic link to other location. > >>> > >>> ascws is a spring boot based application. > >>> > >>> We are not able to figure out what is wrong, any help is much > >> appreciated. > >>> > >>> == > >>> 10-Sep-2015 09:47:32.488 INFO [localhost-startStop-1] > >>> org.apache.catalina.startup.HostConfig.deployWAR Deploying web > >> application > >>> archive /opt/apache-tomcat/webapps/ascws.war > >>> 10-Sep-2015 09:47:32.628 SEVERE [localhost-startStop-1] > >>> org.apache.catalina.core.ContainerBase.addChildInternal > >>> ContainerBase.addChild: start: > >>> org.apache.catalina.LifecycleException: Failed to start component > >>> > >> > [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ascws]] > >>> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) > >>> at > >>> > >> > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725) > >>> at > >> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) > >>> at > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) > >>> at > org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:945) > >>> at > >>> > >> > org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1768) > >>> at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) > >>> at java.util.concurrent.FutureTask.run(Unknown Source) > >>> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) > >>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) > >>> at java.lang.Thread.run(Unknown Source) > >>> Caused by: org.apache.catalina.LifecycleException: Failed to start > >>> component [org.apache.catalina.webresources.StandardRoot@1690212] > >>> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) > >>> at > >>> > >> > org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4845) > >>> at > >>> > >> > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4975) > >>> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) > >>> ... 10 more > >>> Caused by: org.apache.catalina.LifecycleException: Failed to initialize > >>> component [org.apache.catalina.webresources.JarResourceSet@5dd3221b] > >>> at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106) > >>> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139) > >>> at > >>> > >> > org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:699) > >>> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) > >>> ... 13 more > >>> Caused by: java.lang.IllegalArgumentException: > >> java.util.zip.ZipException: > >>> zip file is empty > >>> at > >>> > >> > org.apache.catalina.webresources.JarResourceSet.initInternal(JarResourceSet.java:96) > >>> at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) > >>> ... 16 more > >>> Caused by: java.util.zip.ZipException: zip file is empty > >>> at java.util.zip.ZipFile.open(Native Method) > >>> at java.util.zip.ZipFile.(Unknown Source) > >>> at java.util.zip.ZipFile.(Unknown Source) > >>> at java.util.jar.JarFile.(Unknown Source) > >>> at java.util.jar.JarFile.(Unknown Source) > >>> at > >>> > >> > org.apache.catalina.webresources.JarResourceSet.initInternal(JarResourceSet.java:88) > >>> ... 17 more > >>> > >>> 10-Sep-2015 09:47:32.630 SEVERE [localhost-startStop-1] > >>> org.apache.catalina.startup.HostConfig.deployWAR Error deploying web > >>> application arc
Re: Intermittent failure while deploying war file on Tomcat 8.0.24
On 11/09/2015 19:50, prashant gothi wrote: > Thanks Martijn and Markt for reply. > >> What happens if you do not use a symbolic link? > Not tried, as issue is intermittent its would be hard to say. For upgrade > purpose we want to use symbolic link. > > Is there a known issue with symbolic link, or symbolic link is discouraged? > >> Are you deploying with the manager web-app? > > No, we are not using web-app manager. At the time of symbolic link creation > tomcat is stopped. Tomcat is started once link is created. Is the symbolic link to a location on local disk or to some network location? Mark > > > > > On Fri, Sep 11, 2015 at 12:38 AM, Martijn Bos wrote: > >> What happens if you do not use a symbolic link? >> Are you deploying with the manager web-app? >> >> Best regards, >> Martijn >> >> >> >> On 11-09-15 03:31, prashant gothi wrote: >>> Tomcat version: 8.0.24 >>> OS RHEL 6.6 >>> >>> >>> Just one war file (ascws.war) is deployed under it. We are seeing >>> intermittent failure while deploying war file, tomcat logs indicates (zip >>> file is empty) exception is mentioned below. >>> >>> We have verified file is correct (non zero), and only way to recover from >>> error is manually delete ascws folder (from webapp folder) and restart >>> tomcat. >>> >>> FYI.. ascws.war is a symbolic link to other location. >>> >>> ascws is a spring boot based application. >>> >>> We are not able to figure out what is wrong, any help is much >> appreciated. >>> >>> == >>> 10-Sep-2015 09:47:32.488 INFO [localhost-startStop-1] >>> org.apache.catalina.startup.HostConfig.deployWAR Deploying web >> application >>> archive /opt/apache-tomcat/webapps/ascws.war >>> 10-Sep-2015 09:47:32.628 SEVERE [localhost-startStop-1] >>> org.apache.catalina.core.ContainerBase.addChildInternal >>> ContainerBase.addChild: start: >>> org.apache.catalina.LifecycleException: Failed to start component >>> >> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ascws]] >>> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) >>> at >>> >> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725) >>> at >> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) >>> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) >>> at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:945) >>> at >>> >> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1768) >>> at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) >>> at java.util.concurrent.FutureTask.run(Unknown Source) >>> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) >>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) >>> at java.lang.Thread.run(Unknown Source) >>> Caused by: org.apache.catalina.LifecycleException: Failed to start >>> component [org.apache.catalina.webresources.StandardRoot@1690212] >>> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) >>> at >>> >> org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4845) >>> at >>> >> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4975) >>> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) >>> ... 10 more >>> Caused by: org.apache.catalina.LifecycleException: Failed to initialize >>> component [org.apache.catalina.webresources.JarResourceSet@5dd3221b] >>> at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106) >>> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139) >>> at >>> >> org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:699) >>> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) >>> ... 13 more >>> Caused by: java.lang.IllegalArgumentException: >> java.util.zip.ZipException: >>> zip file is empty >>> at >>> >> org.apache.catalina.webresources.JarResourceSet.initInternal(JarResourceSet.java:96) >>> at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) >>> ... 16 more >>> Caused by: java.util.zip.ZipException: zip file is empty >>> at java.util.zip.ZipFile.open(Native Method) >>> at java.util.zip.ZipFile.(Unknown Source) >>> at java.util.zip.ZipFile.(Unknown Source) >>> at java.util.jar.JarFile.(Unknown Source) >>> at java.util.jar.JarFile.(Unknown Source) >>> at >>> >> org.apache.catalina.webresources.JarResourceSet.initInternal(JarResourceSet.java:88) >>> ... 17 more >>> >>> 10-Sep-2015 09:47:32.630 SEVERE [localhost-startStop-1] >>> org.apache.catalina.startup.HostConfig.deployWAR Error deploying web >>> application archive /opt/apache-tomcat/webapps/ascws.war >>> java.lang.IllegalStateException: ContainerBase.addChild: start: >>> org.apache.catalina.LifecycleException: Failed to start component >>> >> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ascws]] >>> at >>> >> org.apache.catalina.core.ContainerBase.addChildInternal(Co
Re: Intermittent failure while deploying war file on Tomcat 8.0.24
On 9/11/2015 2:51 PM, prashant gothi wrote: Hi Mark, what is slow uploads? I google it couldn't find anything relevant. It means the process of copying the .war file to the appBase location is slow enough that TC tries to load it before the copy is done. Regards, Prashant On Fri, Sep 11, 2015 at 1:11 AM, Mark Thomas wrote: On 11/09/2015 08:38, Martijn Bos wrote: What happens if you do not use a symbolic link? Are you deploying with the manager web-app? Good questions. Slow uploads directly to the appBase can cause this sort of issue. Mark Best regards, Martijn On 11-09-15 03:31, prashant gothi wrote: Tomcat version: 8.0.24 OS RHEL 6.6 Just one war file (ascws.war) is deployed under it. We are seeing intermittent failure while deploying war file, tomcat logs indicates (zip file is empty) exception is mentioned below. We have verified file is correct (non zero), and only way to recover from error is manually delete ascws folder (from webapp folder) and restart tomcat. FYI.. ascws.war is a symbolic link to other location. ascws is a spring boot based application. We are not able to figure out what is wrong, any help is much appreciated. == 10-Sep-2015 09:47:32.488 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive /opt/apache-tomcat/webapps/ascws.war 10-Sep-2015 09:47:32.628 SEVERE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ascws]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:945) at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1768) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: org.apache.catalina.LifecycleException: Failed to start component [org.apache.catalina.webresources.StandardRoot@1690212] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4845) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4975) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 10 more Caused by: org.apache.catalina.LifecycleException: Failed to initialize component [org.apache.catalina.webresources.JarResourceSet@5dd3221b] at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139) at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:699) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 13 more Caused by: java.lang.IllegalArgumentException: java.util.zip.ZipException: zip file is empty at org.apache.catalina.webresources.JarResourceSet.initInternal(JarResourceSet.java:96) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) ... 16 more Caused by: java.util.zip.ZipException: zip file is empty at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.(Unknown Source) at java.util.zip.ZipFile.(Unknown Source) at java.util.jar.JarFile.(Unknown Source) at java.util.jar.JarFile.(Unknown Source) at org.apache.catalina.webresources.JarResourceSet.initInternal(JarResourceSet.java:88) ... 17 more 10-Sep-2015 09:47:32.630 SEVERE [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Error deploying web application archive /opt/apache-tomcat/webapps/ascws.war java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ascws]] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:729) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:945) at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1768) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurr
Re: Intermittent failure while deploying war file on Tomcat 8.0.24
Hi Mark, what is slow uploads? I google it couldn't find anything relevant. Regards, Prashant On Fri, Sep 11, 2015 at 1:11 AM, Mark Thomas wrote: > On 11/09/2015 08:38, Martijn Bos wrote: > > What happens if you do not use a symbolic link? > > Are you deploying with the manager web-app? > > Good questions. > > Slow uploads directly to the appBase can cause this sort of issue. > > Mark > > > > > > Best regards, > > Martijn > > > > > > > > On 11-09-15 03:31, prashant gothi wrote: > >> Tomcat version: 8.0.24 > >> OS RHEL 6.6 > >> > >> > >> Just one war file (ascws.war) is deployed under it. We are seeing > >> intermittent failure while deploying war file, tomcat logs indicates > (zip > >> file is empty) exception is mentioned below. > >> > >> We have verified file is correct (non zero), and only way to recover > from > >> error is manually delete ascws folder (from webapp folder) and restart > >> tomcat. > >> > >> FYI.. ascws.war is a symbolic link to other location. > >> > >> ascws is a spring boot based application. > >> > >> We are not able to figure out what is wrong, any help is much > appreciated. > >> > >> == > >> 10-Sep-2015 09:47:32.488 INFO [localhost-startStop-1] > >> org.apache.catalina.startup.HostConfig.deployWAR Deploying web > application > >> archive /opt/apache-tomcat/webapps/ascws.war > >> 10-Sep-2015 09:47:32.628 SEVERE [localhost-startStop-1] > >> org.apache.catalina.core.ContainerBase.addChildInternal > >> ContainerBase.addChild: start: > >> org.apache.catalina.LifecycleException: Failed to start component > >> > [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ascws]] > >> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) > >> at > >> > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725) > >> at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) > >> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) > >> at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:945) > >> at > >> > org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1768) > >> at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) > >> at java.util.concurrent.FutureTask.run(Unknown Source) > >> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) > >> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) > >> at java.lang.Thread.run(Unknown Source) > >> Caused by: org.apache.catalina.LifecycleException: Failed to start > >> component [org.apache.catalina.webresources.StandardRoot@1690212] > >> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) > >> at > >> > org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4845) > >> at > >> > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4975) > >> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) > >> ... 10 more > >> Caused by: org.apache.catalina.LifecycleException: Failed to initialize > >> component [org.apache.catalina.webresources.JarResourceSet@5dd3221b] > >> at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106) > >> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139) > >> at > >> > org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:699) > >> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) > >> ... 13 more > >> Caused by: java.lang.IllegalArgumentException: > java.util.zip.ZipException: > >> zip file is empty > >> at > >> > org.apache.catalina.webresources.JarResourceSet.initInternal(JarResourceSet.java:96) > >> at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) > >> ... 16 more > >> Caused by: java.util.zip.ZipException: zip file is empty > >> at java.util.zip.ZipFile.open(Native Method) > >> at java.util.zip.ZipFile.(Unknown Source) > >> at java.util.zip.ZipFile.(Unknown Source) > >> at java.util.jar.JarFile.(Unknown Source) > >> at java.util.jar.JarFile.(Unknown Source) > >> at > >> > org.apache.catalina.webresources.JarResourceSet.initInternal(JarResourceSet.java:88) > >> ... 17 more > >> > >> 10-Sep-2015 09:47:32.630 SEVERE [localhost-startStop-1] > >> org.apache.catalina.startup.HostConfig.deployWAR Error deploying web > >> application archive /opt/apache-tomcat/webapps/ascws.war > >> java.lang.IllegalStateException: ContainerBase.addChild: start: > >> org.apache.catalina.LifecycleException: Failed to start component > >> > [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ascws]] > >> at > >> > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:729) > >> at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) > >> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) > >> at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:945) > >> at > >> > org.apache.catalina.startup.H
Re: Intermittent failure while deploying war file on Tomcat 8.0.24
Thanks Martijn and Markt for reply. > What happens if you do not use a symbolic link? Not tried, as issue is intermittent its would be hard to say. For upgrade purpose we want to use symbolic link. Is there a known issue with symbolic link, or symbolic link is discouraged? > Are you deploying with the manager web-app? No, we are not using web-app manager. At the time of symbolic link creation tomcat is stopped. Tomcat is started once link is created. On Fri, Sep 11, 2015 at 12:38 AM, Martijn Bos wrote: > What happens if you do not use a symbolic link? > Are you deploying with the manager web-app? > > Best regards, > Martijn > > > > On 11-09-15 03:31, prashant gothi wrote: > > Tomcat version: 8.0.24 > > OS RHEL 6.6 > > > > > > Just one war file (ascws.war) is deployed under it. We are seeing > > intermittent failure while deploying war file, tomcat logs indicates (zip > > file is empty) exception is mentioned below. > > > > We have verified file is correct (non zero), and only way to recover from > > error is manually delete ascws folder (from webapp folder) and restart > > tomcat. > > > > FYI.. ascws.war is a symbolic link to other location. > > > > ascws is a spring boot based application. > > > > We are not able to figure out what is wrong, any help is much > appreciated. > > > > == > > 10-Sep-2015 09:47:32.488 INFO [localhost-startStop-1] > > org.apache.catalina.startup.HostConfig.deployWAR Deploying web > application > > archive /opt/apache-tomcat/webapps/ascws.war > > 10-Sep-2015 09:47:32.628 SEVERE [localhost-startStop-1] > > org.apache.catalina.core.ContainerBase.addChildInternal > > ContainerBase.addChild: start: > > org.apache.catalina.LifecycleException: Failed to start component > > > [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ascws]] > > at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) > > at > > > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725) > > at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) > > at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) > > at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:945) > > at > > > org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1768) > > at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) > > at java.util.concurrent.FutureTask.run(Unknown Source) > > at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) > > at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) > > at java.lang.Thread.run(Unknown Source) > > Caused by: org.apache.catalina.LifecycleException: Failed to start > > component [org.apache.catalina.webresources.StandardRoot@1690212] > > at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) > > at > > > org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4845) > > at > > > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4975) > > at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) > > ... 10 more > > Caused by: org.apache.catalina.LifecycleException: Failed to initialize > > component [org.apache.catalina.webresources.JarResourceSet@5dd3221b] > > at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106) > > at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139) > > at > > > org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:699) > > at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) > > ... 13 more > > Caused by: java.lang.IllegalArgumentException: > java.util.zip.ZipException: > > zip file is empty > > at > > > org.apache.catalina.webresources.JarResourceSet.initInternal(JarResourceSet.java:96) > > at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) > > ... 16 more > > Caused by: java.util.zip.ZipException: zip file is empty > > at java.util.zip.ZipFile.open(Native Method) > > at java.util.zip.ZipFile.(Unknown Source) > > at java.util.zip.ZipFile.(Unknown Source) > > at java.util.jar.JarFile.(Unknown Source) > > at java.util.jar.JarFile.(Unknown Source) > > at > > > org.apache.catalina.webresources.JarResourceSet.initInternal(JarResourceSet.java:88) > > ... 17 more > > > > 10-Sep-2015 09:47:32.630 SEVERE [localhost-startStop-1] > > org.apache.catalina.startup.HostConfig.deployWAR Error deploying web > > application archive /opt/apache-tomcat/webapps/ascws.war > > java.lang.IllegalStateException: ContainerBase.addChild: start: > > org.apache.catalina.LifecycleException: Failed to start component > > > [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ascws]] > > at > > > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:729) > > at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) > > at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) > > at
Re: Intermittent failure while deploying war file on Tomcat 8.0.24
On 11/09/2015 08:38, Martijn Bos wrote: > What happens if you do not use a symbolic link? > Are you deploying with the manager web-app? Good questions. Slow uploads directly to the appBase can cause this sort of issue. Mark > > Best regards, > Martijn > > > > On 11-09-15 03:31, prashant gothi wrote: >> Tomcat version: 8.0.24 >> OS RHEL 6.6 >> >> >> Just one war file (ascws.war) is deployed under it. We are seeing >> intermittent failure while deploying war file, tomcat logs indicates (zip >> file is empty) exception is mentioned below. >> >> We have verified file is correct (non zero), and only way to recover from >> error is manually delete ascws folder (from webapp folder) and restart >> tomcat. >> >> FYI.. ascws.war is a symbolic link to other location. >> >> ascws is a spring boot based application. >> >> We are not able to figure out what is wrong, any help is much appreciated. >> >> == >> 10-Sep-2015 09:47:32.488 INFO [localhost-startStop-1] >> org.apache.catalina.startup.HostConfig.deployWAR Deploying web application >> archive /opt/apache-tomcat/webapps/ascws.war >> 10-Sep-2015 09:47:32.628 SEVERE [localhost-startStop-1] >> org.apache.catalina.core.ContainerBase.addChildInternal >> ContainerBase.addChild: start: >> org.apache.catalina.LifecycleException: Failed to start component >> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ascws]] >> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) >> at >> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725) >> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) >> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) >> at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:945) >> at >> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1768) >> at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) >> at java.util.concurrent.FutureTask.run(Unknown Source) >> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) >> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) >> at java.lang.Thread.run(Unknown Source) >> Caused by: org.apache.catalina.LifecycleException: Failed to start >> component [org.apache.catalina.webresources.StandardRoot@1690212] >> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) >> at >> org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4845) >> at >> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4975) >> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) >> ... 10 more >> Caused by: org.apache.catalina.LifecycleException: Failed to initialize >> component [org.apache.catalina.webresources.JarResourceSet@5dd3221b] >> at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106) >> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139) >> at >> org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:699) >> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) >> ... 13 more >> Caused by: java.lang.IllegalArgumentException: java.util.zip.ZipException: >> zip file is empty >> at >> org.apache.catalina.webresources.JarResourceSet.initInternal(JarResourceSet.java:96) >> at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) >> ... 16 more >> Caused by: java.util.zip.ZipException: zip file is empty >> at java.util.zip.ZipFile.open(Native Method) >> at java.util.zip.ZipFile.(Unknown Source) >> at java.util.zip.ZipFile.(Unknown Source) >> at java.util.jar.JarFile.(Unknown Source) >> at java.util.jar.JarFile.(Unknown Source) >> at >> org.apache.catalina.webresources.JarResourceSet.initInternal(JarResourceSet.java:88) >> ... 17 more >> >> 10-Sep-2015 09:47:32.630 SEVERE [localhost-startStop-1] >> org.apache.catalina.startup.HostConfig.deployWAR Error deploying web >> application archive /opt/apache-tomcat/webapps/ascws.war >> java.lang.IllegalStateException: ContainerBase.addChild: start: >> org.apache.catalina.LifecycleException: Failed to start component >> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ascws]] >> at >> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:729) >> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) >> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) >> at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:945) >> at >> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1768) >> at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) >> at java.util.concurrent.FutureTask.run(Unknown Source) >> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) >> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) >> at java.lang.Thread.run(Unknown Source) >> >> 10-Sep-2015 09
Re: Intermittent failure while deploying war file on Tomcat 8.0.24
What happens if you do not use a symbolic link? Are you deploying with the manager web-app? Best regards, Martijn On 11-09-15 03:31, prashant gothi wrote: > Tomcat version: 8.0.24 > OS RHEL 6.6 > > > Just one war file (ascws.war) is deployed under it. We are seeing > intermittent failure while deploying war file, tomcat logs indicates (zip > file is empty) exception is mentioned below. > > We have verified file is correct (non zero), and only way to recover from > error is manually delete ascws folder (from webapp folder) and restart > tomcat. > > FYI.. ascws.war is a symbolic link to other location. > > ascws is a spring boot based application. > > We are not able to figure out what is wrong, any help is much appreciated. > > == > 10-Sep-2015 09:47:32.488 INFO [localhost-startStop-1] > org.apache.catalina.startup.HostConfig.deployWAR Deploying web application > archive /opt/apache-tomcat/webapps/ascws.war > 10-Sep-2015 09:47:32.628 SEVERE [localhost-startStop-1] > org.apache.catalina.core.ContainerBase.addChildInternal > ContainerBase.addChild: start: > org.apache.catalina.LifecycleException: Failed to start component > [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ascws]] > at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) > at > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725) > at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) > at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) > at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:945) > at > org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1768) > at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) > at java.util.concurrent.FutureTask.run(Unknown Source) > at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) > at java.lang.Thread.run(Unknown Source) > Caused by: org.apache.catalina.LifecycleException: Failed to start > component [org.apache.catalina.webresources.StandardRoot@1690212] > at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) > at > org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4845) > at > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4975) > at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) > ... 10 more > Caused by: org.apache.catalina.LifecycleException: Failed to initialize > component [org.apache.catalina.webresources.JarResourceSet@5dd3221b] > at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106) > at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139) > at > org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:699) > at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) > ... 13 more > Caused by: java.lang.IllegalArgumentException: java.util.zip.ZipException: > zip file is empty > at > org.apache.catalina.webresources.JarResourceSet.initInternal(JarResourceSet.java:96) > at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) > ... 16 more > Caused by: java.util.zip.ZipException: zip file is empty > at java.util.zip.ZipFile.open(Native Method) > at java.util.zip.ZipFile.(Unknown Source) > at java.util.zip.ZipFile.(Unknown Source) > at java.util.jar.JarFile.(Unknown Source) > at java.util.jar.JarFile.(Unknown Source) > at > org.apache.catalina.webresources.JarResourceSet.initInternal(JarResourceSet.java:88) > ... 17 more > > 10-Sep-2015 09:47:32.630 SEVERE [localhost-startStop-1] > org.apache.catalina.startup.HostConfig.deployWAR Error deploying web > application archive /opt/apache-tomcat/webapps/ascws.war > java.lang.IllegalStateException: ContainerBase.addChild: start: > org.apache.catalina.LifecycleException: Failed to start component > [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ascws]] > at > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:729) > at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) > at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) > at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:945) > at > org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1768) > at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) > at java.util.concurrent.FutureTask.run(Unknown Source) > at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) > at java.lang.Thread.run(Unknown Source) > > 10-Sep-2015 09:47:32.631 INFO [localhost-startStop-1] > org.apache.catalina.startup.HostConfig.deployWAR Deployment of web > application archive /opt/apache-tomcat/webapps/ascws.war has finished in > 142 ms > > > > == > > > > > Regard
Intermittent failure while deploying war file on Tomcat 8.0.24
Tomcat version: 8.0.24 OS RHEL 6.6 Just one war file (ascws.war) is deployed under it. We are seeing intermittent failure while deploying war file, tomcat logs indicates (zip file is empty) exception is mentioned below. We have verified file is correct (non zero), and only way to recover from error is manually delete ascws folder (from webapp folder) and restart tomcat. FYI.. ascws.war is a symbolic link to other location. ascws is a spring boot based application. We are not able to figure out what is wrong, any help is much appreciated. == 10-Sep-2015 09:47:32.488 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive /opt/apache-tomcat/webapps/ascws.war 10-Sep-2015 09:47:32.628 SEVERE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ascws]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:945) at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1768) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: org.apache.catalina.LifecycleException: Failed to start component [org.apache.catalina.webresources.StandardRoot@1690212] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4845) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4975) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 10 more Caused by: org.apache.catalina.LifecycleException: Failed to initialize component [org.apache.catalina.webresources.JarResourceSet@5dd3221b] at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139) at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:699) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 13 more Caused by: java.lang.IllegalArgumentException: java.util.zip.ZipException: zip file is empty at org.apache.catalina.webresources.JarResourceSet.initInternal(JarResourceSet.java:96) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) ... 16 more Caused by: java.util.zip.ZipException: zip file is empty at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.(Unknown Source) at java.util.zip.ZipFile.(Unknown Source) at java.util.jar.JarFile.(Unknown Source) at java.util.jar.JarFile.(Unknown Source) at org.apache.catalina.webresources.JarResourceSet.initInternal(JarResourceSet.java:88) ... 17 more 10-Sep-2015 09:47:32.630 SEVERE [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Error deploying web application archive /opt/apache-tomcat/webapps/ascws.war java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ascws]] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:729) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:945) at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1768) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) 10-Sep-2015 09:47:32.631 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive /opt/apache-tomcat/webapps/ascws.war has finished in 142 ms == Regards, Prashant