我想将一个战争文件部署到MyEclipse的tomcat中。我尝试Add Deployment
tomcat,但它只能部署MyEclipse的项目。然后我尝试将战争文件导入到项目中,但 MyEclipse 导入中没有战争文件选项。
如何让战争文件在 MyEclipse tomcat 服务器中运行?
如果你想在
tomcat eclipse中运行战争文件,你只需将你的战争文件放在tomcatwebapps文件夹中。
请按照以下步骤操作:
1) Stop Tomcat.
2) Delete existing deployment. If you have previously deployed "foo.war" in TOMCAT_HOME/webapps, then it has been unpacked into webapps/foo/... You must delete this directory and all its contents. On Unix, this can be done with
rm -r $TOMCAT_HOME/webapps/foo
3) Copy WAR file to TOMCAT_HOME/webapps/.
4) Start Tomcat.
有关此类问题的更多文档,请单击此处