trouble deploying .WAR to tomcat

前端 未结 9 2172
滥情空心
滥情空心 2021-02-13 03:36

im having trouble deploying a war file on tomcat.

i have written a webapp in netbeans on my windows machine. it all runs fine. what i want to do is deploy the applicatio

相关标签:
9条回答
  • 2021-02-13 03:42

    I had the same problem, and rebuilding/uploading the war was NOT fixing the problem. What I ended up doing to fix it was uploading the war under a different name, then renaming the war once it had successfully deployed. A bit bizarre that this would work, but it was a better solution for me than restarting tomcat.

    0 讨论(0)
  • 2021-02-13 03:43

    Also look out for file permissions of the .war file you have deployed. For me that was the cause.

    0 讨论(0)
  • 2021-02-13 03:44

    It could be a file protection issue, which you can fix by issuing something like: chmod 755 webapp.war

    it happened to me that my sftp would just slap a 700 on the file transferred, causing that error.

    0 讨论(0)
  • 2021-02-13 03:46

    also possibly because of an incorrect entry in solr.xml It must point to where the .war file is located.

    0 讨论(0)
  • 2021-02-13 03:51

    In my case it was the manifest file.

    Class-Path: 
    

    should followed by a whitespace.

    0 讨论(0)
  • 2021-02-13 04:01

    the war archive is corrupt or invalid.

    check that the war generation procedure is not failing and that the war file is a valid zip file prior to copying to your pen drive etc.

    if you're on windows you can do this by changing the file extension to .zip and opening with a zip program such as winzip or winrar.

    if you're on another operating system you probably don't need to change the extension.

    if the war is a valid zip it's probably being corrupted as a result of your transfer process ie going onto or from your pen drive.

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