Unable to run Kunagi on Apache Tomcat 7.0.27

below is the exception I see in logs/catalina.out

Sep 12, 2012 5:18:43 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive /scratch/software/apache-tomcat-7.0.27/webapps/kunagi.war
Sep 12, 2012 5:18:43 PM org.apache.catalina.startup.ContextConfig init
SEVERE: Exception fixing docBase for context [/kunagi]
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:131)
        at java.util.jar.JarFile.<init>(JarFile.java:150)
        at java.util.jar.JarFile.<init>(JarFile.java:87)
        at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:90)
        at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:66)
        at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:86)
        at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:122)
        at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:89)
        at org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:112)
        at org.apache.catalina.startup.ContextConfig.fixDocBase(ContextConfig.java:697)
        at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:820)
        at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:363)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
        at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:401)
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:962)
        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1603)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:636)
Sep 12, 2012 5:18:43 PM org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Invalid or unreadable WAR file : error in opening zip file
        at org.apache.naming.resources.WARDirContext.setDocBase(WARDirContext.java:141)
        at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4894)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5074)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:962)
        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1603)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:636)
Sep 12, 2012 5:18:43 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error in resourceStart()
Sep 12, 2012 5:18:43 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error getConfigured
Sep 12, 2012 5:18:43 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/kunagi] startup failed due to previous errors

Status

Issue is closed.

Comments

Wed, Sep 12, 2012, 14:05 by Witek (SM,T)

Looks, like your Tomcat is unable to extract the kunagi.war file. Could you please verify, if the file is a valid zip file? Just rename it to kunagi.war.zip and try to extract it. If it fails, please try a new download.

Thu, Sep 13, 2012, 13:57 by anonymous

Thanks I downloaded a new file and it worked for me.

Post a comment



optional
optional