Not able to deploy ROOT.war in tomcat 7

  • Posted on February 16, 2014
  • kagarwal4Asked by kagarwal4

I have purchased DigitalOcean server and I am trying to run a java application. I am using ubuntu OS and tomcat 7 server where my webapps folder is located in :


Now, I have scp my ROOT.war in the folder and restarted tomcat server and apache. But my application is not running. In the file catalina.2014-02-09.log, it shows:

 Unable to create the directory [/usr/share/tomcat7/webapps/ROOT/META-INF]
    at org.apache.catalina.startup.ExpandWar.expand(
    at org.apache.catalina.startup.ContextConfig.fixDocBase(
    at org.apache.catalina.startup.ContextConfig.init(
    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(
    at org.apache.catalina.util.LifecycleBase.setStateInternal(
    at org.apache.catalina.util.LifecycleBase.init(
    at org.apache.catalina.util.LifecycleBase.start(
    at org.apache.catalina.core.ContainerBase.addChildInternal(

One more error I see in the same log is :

    at org.apache.catalina.loader.WebappClassLoader.loadClass(
    at org.apache.catalina.loader.WebappClassLoader.loadClass(
    at org.hibernate.dialect.MySQLDialect$1.convert( at          org.hibernate.exception.internal.StandardSQLExceptionConverter.conver

I am not able to understand what can be the cause of this issue? As per , I have configured server.xml for unpack war as

      <Host name="localhost"  appBase="/usr/share/tomcat7/webapps"
        unpackWARs="true" autoDeploy="true">

But still no results. Please help me out here. Any suggestions can be helpful.

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This comment has been deleted

This comment has been deleted

I have the same problem, with a clean tomcat installation server is not starting. any clues?