[opencms-dev] Importing Cloned Module Resulting in Tomcat Failing to Deploy ROOT.war

Gratian Francis gfrancis2 at cancercare.mb.ca
Tue Aug 30 22:32:10 CEST 2016


Hello,
So I cloned the org.opencms.apollo.template.webform_10.0.0 demo module as I would like to use it in my project after modifying it to suit my needs a bit, however without having made any adjustments or modifications to the module beyond simply cloning the module, I noticed that if I import the cloned module into OpenCMS and then stop or restart Tomcat, Tomcat then fails to deploy ROOT.war resulting in the below alerts in tomcat's catalina log file:

30-Aug-2016 12:16:03.873 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version:        Apache Tomcat/8.0.32
30-Aug-2016 12:16:03.876 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          Mar 9 2016 10:57:11 UTC
30-Aug-2016 12:16:03.876 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number:         8.0.32.0
30-Aug-2016 12:16:03.877 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Linux
30-Aug-2016 12:16:03.877 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            3.12.59-60.45-default
30-Aug-2016 12:16:03.877 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          amd64
30-Aug-2016 12:16:03.878 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             /usr/lib64/jvm/java-1.8.0-openjdk-1.8.0/jre
30-Aug-2016 12:16:03.878 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           1.8.0_91-b14
30-Aug-2016 12:16:03.878 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation
30-Aug-2016 12:16:03.879 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         /usr/share/tomcat
30-Aug-2016 12:16:03.879 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         /usr/share/tomcat
30-Aug-2016 12:16:03.880 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/usr/share/tomcat
30-Aug-2016 12:16:03.880 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/share/tomcat
30-Aug-2016 12:16:03.881 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.endorsed.dirs=
30-Aug-2016 12:16:03.881 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/var/cache/tomcat/temp
30-Aug-2016 12:16:03.885 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/usr/share/tomcat/conf/logging.properties
30-Aug-2016 12:16:03.886 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
30-Aug-2016 12:16:03.886 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent An older version 1.1.32 of the APR based Apache Tomcat Native library is installed, while Tomcat recommends a minimum version of 1.1.33
30-Aug-2016 12:16:03.886 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library 1.1.32 using APR version 1.5.1.
30-Aug-2016 12:16:03.889 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
30-Aug-2016 12:16:03.973 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized (OpenSSL 1.0.1i 6 Aug 2014)
30-Aug-2016 12:16:04.099 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-apr-8080"]
30-Aug-2016 12:16:04.124 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-apr-8009"]
30-Aug-2016 12:16:04.126 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 977 ms
30-Aug-2016 12:16:04.162 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina
30-Aug-2016 12:16:04.170 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.32
30-Aug-2016 12:16:04.217 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive /srv/tomcat/webapps/ROOT.war
30-Aug-2016 12:16:04.559 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[]]
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)
                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:939)
                at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1812)
                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
                at java.util.concurrent.FutureTask.run(FutureTask.java:266)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
                at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [org.apache.catalina.webresources.StandardRoot at 54df23fa]
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)
                at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4928)
                at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5058)
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
                ... 10 more
Caused by: org.apache.catalina.LifecycleException: Failed to initialize component [org.apache.catalina.webresources.JarResourceSet at 154db8f3]
                at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106)
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:136)
                at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:699)
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
                ... 13 more
Caused by: java.lang.IllegalArgumentException: java.util.zip.ZipException: error in opening zip file
                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: error in opening zip file
                at java.util.zip.ZipFile.open(Native Method)
                at java.util.zip.ZipFile.<init>(ZipFile.java:219)
                at java.util.zip.ZipFile.<init>(ZipFile.java:149)
                at java.util.jar.JarFile.<init>(JarFile.java:166)
                at java.util.jar.JarFile.<init>(JarFile.java:103)
                at org.apache.catalina.webresources.JarResourceSet.initInternal(JarResourceSet.java:88)
                ... 17 more

30-Aug-2016 12:16:04.563 SEVERE [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Error deploying web application archive /srv/tomcat/webapps/ROOT.war
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
                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:939)
                at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1812)
                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
                at java.util.concurrent.FutureTask.run(FutureTask.java:266)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
                at java.lang.Thread.run(Thread.java:745)

30-Aug-2016 12:16:04.564 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive /srv/tomcat/webapps/ROOT.war has finished in 346 ms
30-Aug-2016 12:16:04.570 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-apr-8080"]
30-Aug-2016 12:16:04.593 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-apr-8009"]
30-Aug-2016 12:16:04.601 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 474 ms

This only happens if I import the cloned webform module as tomcat starts up and runs fine if I reinstall OpenCMS and import all my other modules and content while excluding the one I cloned from org.opencms.apollo.template.webform_10.0.0, is it possible that cloned module was simply corrupted in some way or not cloned properly? Has anyone else ran into a similar issue before?

Thanks,
Gratian Francis

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20160830/68fe1cb2/attachment.htm>
-------------- next part --------------
This email and/or any documents in this transmission is intended for the addressee(s) only and may contain legally privileged or confidential information.  Any unauthorized use, disclosure, distribution, copying or dissemination is strictly prohibited.  If you receive this transmission in error, please notify the sender immediately and return the original.

Ce courriel et tout document dans cette transmission est destiné à la personne ou aux personnes à qui il est adressé. Il peut contenir des informations privilégiées ou confidentielles. Toute utilisation, divulgation, distribution, copie, ou diffusion non autorisée est strictement défendue. Si vous n'êtes pas le destinataire de ce message, veuillez en informer l'expéditeur immédiatement et lui remettre l'original.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20160830/68fe1cb2/attachment-0001.htm>


More information about the opencms-dev mailing list