java 在 Tomcat 上部署 WAR 时出现“错误调用方法检查”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1536364/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
"Error invoking method check" when deploying a WAR on Tomcat
提问by Tami
When I deploy my WAR generated with Ant on my local system (copy/paste under /webapps), everything works fine.
当我在本地系统上部署使用 Ant 生成的 WAR(在 /webapps 下复制/粘贴)时,一切正常。
The thing is, when I deploy the WAR on a remote server for test purposes, I got this error message:
问题是,当我出于测试目的在远程服务器上部署 WAR 时,收到以下错误消息:
There was an error thrown by Tomcat during deployment: "Error invoking method check". This however may not mean that you application failed to deploy. Please check the status in the application list
部署过程中Tomcat抛出错误:“Error invoking method check”。然而,这可能并不意味着您的应用程序部署失败。请检查申请列表中的状态
But the application is not deployed at all. I have to use Probe (lambaprobe.org) to manage and deploy applications on Tomcat on the remote server I'm talking. And I don't have access to the filesystem, only probe.
但该应用程序根本没有部署。我必须使用 Probe (lambaprobe.org) 在我所说的远程服务器上的 Tomcat 上管理和部署应用程序。而且我无权访问文件系统,只能进行探测。
Any idea would be much appreciated!
任何想法将不胜感激!
Thanks
谢谢
采纳答案by Tami
Impossible to check the log... We managed to restart tomcat and it works now. Weird.
无法检查日志...我们设法重新启动了 tomcat,现在它可以工作了。奇怪的。
Thank you anyway!
不管怎样,谢谢你!
回答by Ilalaina
I often encountered this problem and after checking the log this was caused by an OutOfMemoryError with tomcat
我经常遇到这个问题,检查日志后这是由tomcat的OutOfMemoryError引起的
回答by Aaron Digulla
Check the log files of tomcat; they contain the full error message.
查看tomcat的日志文件;它们包含完整的错误消息。
If you can't access them easily, write a small webapp which allows you to browse and/or download the logs and deploy that.
如果您无法轻松访问它们,请编写一个小型 web 应用程序,它允许您浏览和/或下载日志并进行部署。

