tomcat6.0咱不自动部署war包,当改了server.xml时  

tomcat6.0咱不自动部署war包,当改了server.xml时


在网上查了很久,没找到办法,在这麻烦大伙了,帮忙看看,呵呵,先谢了!

用的是tomcat6.0,如果不改server.xml,copy一rms.war到tomcat-6.0.18\webapps下,当启动tomcat时,rms.war会自动部署,把rms.war解包。
但我对server.xml加了如下路径改动,
<Context docBase="rms/WebContent" path="/rms" reloadable="false" crossContext="true">
  <Resource name="jdbc/rms" auth="Container" debug="0" reloadable="true"
          type="javax.sql.DataSource"    driverClassName="org.postgresql.Driver"
          url="jdbcostgresql://10.50.0.236:5432/rmsqa"
         
  username="rmsqa" password="rmsqa" maxActive="20" maxIdle="10" maxWait="-1"
          removeAbandoned="true"  removeAbandonedTimeout="60" logAbandone="true" />
</Context>
在启动tomcat时xx.war不自动解包了,而且包如下错误(因不解包,故找不到路径):

java.lang.IllegalArgumentException: Document base D:\apache-tomcat-6.0.18\webapps\rms\WebContent does not exist or is not a readable directory
        at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:141)
        at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3957)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4126)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at org.apache.catalina.core.StandardService.start(StandardService.java:516)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)