tomcat error while deploying WAR file

后端 未结 10 528
梦如初夏
梦如初夏 2020-12-31 12:41

Please help me with the below exceptions that I obtain while trying to deploy a WAR file on Tomcat server.

07:46:50,076  WARN HostConfig:606 - Exception whil         


        
相关标签:
10条回答
  • 2020-12-31 13:22

    I was also getting this error. I copied a ~.m2/repository folder from my colleague and it solved my problem.

    0 讨论(0)
  • 2020-12-31 13:25

    I spent a lot of time to understand what can be the reason. Finally, for me it helps when I build the WAR and at the same time local tomcat is down. Otherwise I will see this error. Not sure why but something is preventing to build the proper WAR if local tomcat is UP (via IDE, not standalone). Reason can be IDE. Hope it helps to somebody.

    0 讨论(0)
  • 2020-12-31 13:26

    If you are deploying on Linux then make sure it is readable by the user that the tomcat process is running as. Run "chmod +r" to the war file to add read rights to everyone.

    0 讨论(0)
  • 2020-12-31 13:30

    I had the same problem and I just unzipped and zipped it again manually. That worked for me.

    0 讨论(0)
  • 2020-12-31 13:33

    I see this problem when auto-deploy is set to true and I am uploading the war file over a slow connection to a Linux server. For some reason, Tomcat attempts to deploy the WAR before it has finished uploading to the server. Turning off auto-deploy and doing it manually, or ftping the file to a directory on the server other then webapps and then moving it into webapps fixes the problem.

    Seems to be a problem with Tomcat not waiting until the file is finished being uploaded before trying to expand it.

    0 讨论(0)
  • 2020-12-31 13:33

    I too had the same issue. Changing the permission of the war file solved it

    0 讨论(0)
提交回复
热议问题