0
我在CentOS 6.2上運行Tomcat 7.0.23。我有一個WAR,我使用服務器特定的上下文XML文件進行部署。Tomcat7 WAR解壓縮不完整
的conf/server.xml中包含:
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">
的conf /卡塔利娜/本地主機/ MyWebapp.xml包含:
<Context docBase="/opt/apache-tomcat-7.0.23/MyWebapp.war" unpackWAR="true">
WAR文件包含(我的解壓驗證它它):
css/style.css
META-INF/MANIFEST.MF
META-INF/maven/...
WEB-INF/classes/... (the .class files)
WEB-INF/lib/... (some .jar files)
WEB-INF/resources/...
WEB-INF/web.xml
WEB-INF/log4j.xml
當部署在Tomcat中(使用熱部署或冷的部署,都與以前刪除MyWebapp文件夾)的工作/卡塔利娜/本地主機/ MyWebapp/文件夾中只包含:
WEB-INF/classes/...
WEB-INF/lib/...
的Tomcat 7 Host Documentation爲參數unpackWARs說:
Set to true if you want web applications that are placed in the appBase directory as web application archive (WAR) files to be unpacked into a corresponding disk directory structure, false to run such web applications directly from a WAR file.
所以它不是什麼它實際上解壓非常具體。
是否預期Tomcat沒有解包整個WAR文件的行爲?這是記錄在哪裏?我應該在哪裏放置資源文件?