<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal">So I cloned the <b>org.opencms.apollo.template.webform_10.0.0
</b>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:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt">30-Aug-2016 12:16:03.873 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.0.32<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">30-Aug-2016 12:16:03.876 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Mar 9 2016 10:57:11 UTC<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">30-Aug-2016 12:16:03.876 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.0.32.0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">30-Aug-2016 12:16:03.877 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">30-Aug-2016 12:16:03.877 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 3.12.59-60.45-default<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">30-Aug-2016 12:16:03.877 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">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<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">30-Aug-2016 12:16:03.878 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_91-b14<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">30-Aug-2016 12:16:03.878 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">30-Aug-2016 12:16:03.879 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /usr/share/tomcat<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">30-Aug-2016 12:16:03.879 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /usr/share/tomcat<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">30-Aug-2016 12:16:03.880 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/usr/share/tomcat<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">30-Aug-2016 12:16:03.880 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/share/tomcat<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">30-Aug-2016 12:16:03.881 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.endorsed.dirs=<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">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<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">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<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">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<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">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<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">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].<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">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)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">30-Aug-2016 12:16:04.099 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-apr-8080"]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">30-Aug-2016 12:16:04.124 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-apr-8009"]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">30-Aug-2016 12:16:04.126 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 977 ms<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">30-Aug-2016 12:16:04.162 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">30-Aug-2016 12:16:04.170 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.32<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">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<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">30-Aug-2016 12:16:04.559 SEVERE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start:
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:939)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1812)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> at java.util.concurrent.FutureTask.run(FutureTask.java:266)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> at java.lang.Thread.run(Thread.java:745)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">Caused by: org.apache.catalina.LifecycleException: Failed to start component [org.apache.catalina.webresources.StandardRoot@54df23fa]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4928)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5058)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> ... 10 more<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">Caused by: org.apache.catalina.LifecycleException: Failed to initialize component [org.apache.catalina.webresources.JarResourceSet@154db8f3]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:136)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:699)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> ... 13 more<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">Caused by: java.lang.IllegalArgumentException: java.util.zip.ZipException: error in opening zip file<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> at org.apache.catalina.webresources.JarResourceSet.initInternal(JarResourceSet.java:96)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> ... 16 more<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">Caused by: java.util.zip.ZipException: error in opening zip file<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> at java.util.zip.ZipFile.open(Native Method)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> at java.util.zip.ZipFile.<init>(ZipFile.java:219)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> at java.util.zip.ZipFile.<init>(ZipFile.java:149)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> at java.util.jar.JarFile.<init>(JarFile.java:166)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> at java.util.jar.JarFile.<init>(JarFile.java:103)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> at org.apache.catalina.webresources.JarResourceSet.initInternal(JarResourceSet.java:88)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> ... 17 more<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">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<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:729)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:939)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1812)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> at java.util.concurrent.FutureTask.run(FutureTask.java:266)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> at java.lang.Thread.run(Thread.java:745)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">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<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">30-Aug-2016 12:16:04.570 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-apr-8080"]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">30-Aug-2016 12:16:04.593 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-apr-8009"]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">30-Aug-2016 12:16:04.601 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 474 ms<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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
<b>org.opencms.apollo.template.webform_10.0.0, </b>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?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Gratian Francis<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>