战争怎么可能不解压

战争怎么可能不解压

本文介绍了尽管 unpackWar 设置为 true,战争怎么可能不解压?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这让我感到困惑:尽管/etc/tomcat7/server.xml 中的 unpackWARs 设置为true",并且在其他任何地方都找不到 unpackWAR(包括 context.xml),但 WAR 仍然保持打包状态.它从不拆包!

this is puzzling me : although unpackWARs is set to 'true' in /etc/tomcat7/server.xml, and unpackWAR cannot be found anywhere else (including context.xml), the WAR keeps remaining packed. It does never unpack!

   <Host name="localhost"  appBase="webapps"
        unpackWARs="true" autoDeploy="true">

VM 是另一个克隆,只要 tomcat 启动,war 就会解压.因此,配置应该完全相同......我不明白为什么它在那里表现不同!

The VM is a clone from another one where the war unpacks as soon as tomcat starts. Thus, the configuration should be exactly the same... and I cannot understand why it acts differently there!

是否还有其他地方(但对于 server.xml 和 context.xml)说明战争是否应该解压?关于我应该去哪里寻找的任何提示,或者我如何确保战争被解开?

Is there another place (but for server.xml and context.xml) that states whether the wars should unpack or not?Any hint on where I should look, or how I can ensure the war is unpacked?

感谢您的阅读和帮助!

推荐答案

有点晚了,但可能会有所帮助.我检查了服务器配置.如果您使用 Eclipse,请双击此处.

Little late, but it might help. I checked server configuration.Double click here if you use eclipse.

您将找到如下所示的部署路径".如果不是webapps,如果你的配置设置为webapps,你应该把它改成webapps.(服务器.xml)我认为这是默认设置,因此您可能需要检查一下.

And you will find "Deploy path" as below. If it is not webapps, you should change it to webapps if your configuration is set as webapps. (server.xml)I think it is default setting so you might want to check.

这篇关于尽管 unpackWar 设置为 true,战争怎么可能不解压?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 08:35