你说的情况肯定是不不正常的看看你的配置文件 是不是你当前的context 有一个reload="false"

解决方案 »

  1.   

    <Host name="localhost" appBase="webapps"
           unpackWARs="true" autoDeploy="true"
           xmlValidation="false" xmlNamespaceAware="false">确保
    autoDeploy="true"
      

  2.   

    我说错了。应该是二楼的兄弟讲对了的。我刚刚提到的那个,是是否自动展开war文件你看realoadable的解释reloadable Set to true if you want Catalina to monitor classes in /WEB-INF/classes/ and /WEB-INF/lib for changes, and automatically reload the web application if a change is detected. This feature is very useful during application development, but it requires significant runtime overhead and is not recommended for use on deployed production applications. You can use the Manager web application, however, to trigger reloads of deployed applications on demand.NOTE - The value for this property will be inherited from the reloadable attribute you set on the surrounding Context component, and any value you explicitly set here will be replaced.
      

  3.   

    from http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
      

  4.   

    Tomcat支持热部署的,对server.xml配置文件进行一下修改,他们写的都是正确的,关键是reload属性
    目前几乎WEB服务器都支持热部署
      

  5.   

    <Context  path="/mypro" docBase="f:\zhuang\webwork\mypro" debug="0"  reloadable="ture">
    </Context>以上是我的tomcat5.5中,server.xml 中的项目配置
    mypro是我的项目文件夹,你们看下哪里有不对的
      

  6.   

    就是你们所说的reload属性,是指的哪个配置文件?
    是服务器的配置,还是项目web.xml中的配置....
      

  7.   

    服务器的配置文件
    conf\server.xml
    修改它
      

  8.   

    你要访问一个web应用,这个应用总是被定义在某个虚拟主机的了吧?这个定义,可能在conf\server.xml。也可能在D:\apps\apache-tomcat-5.5.12\conf\Catalina\localhost\wap.xml里。
      

  9.   

    反正我觉得tomcat5.5版是垃圾.总是出现莫名其妙的问题,让人感觉像见了鬼.
    而换成tomcat4.1,在5.5中的一切问题就自动OK了
    事实说明,tomcat4.1比其以上的版本要隐定的多
    这是我切身体验过的