---
title: "war包解压发布"
author: "xuhc"
date: "2008-06-05T17:25:18Z"
tags: []
slug: "war"
draft: false
lastmod: "2008-06-05T17:25:18Z"
id: 200601
url: "https://xuhc.iteye.com/blog/200601"
---

我把*.war包放在/Tomcat/webapps/目录下，比如examples.war放在/Tomcat/webapps/目录下，但是却不能访问.war包里的JSP，怎么回事啊？ 

手工解压: jar   cvf   *.war   *

在/Tomcat/webapps/目录下后，要重启Tomcat

手工解压我知道的，但是问题是重启Tomcat后，它没有自动解压啊，即没有产生examples目录。

tomcat的server.xml配置文件里有没有改过？   
    
加一条   
                  <Context   path="/examples"   docBase="examples"   debug="0"   
                                    reloadable="true"   crossContext="true">   
                  </Context>   
    
  试试：）