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
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.
Also look out for file permissions of the .war file you have deployed. For me that was the cause.
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.
also possibly because of an incorrect entry in solr.xml It must point to where the .war file is located.
In my case it was the manifest file.
Class-Path:
should followed by a whitespace.
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.