Its on local disk.

On Fri, Sep 11, 2015 at 12:31 PM, Mark Thomas <ma...@apache.org> 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 <mart...@maboc.nl> 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.<init>(Unknown Source)
> >>> at java.util.zip.ZipFile.<init>(Unknown Source)
> >>> at java.util.jar.JarFile.<init>(Unknown Source)
> >>> at java.util.jar.JarFile.<init>(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
> >>>
> >>
> >>
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to