我的环境 myelicpse6.5部署是用的配置 相信都知道就是在那个server.xml里面写我看过这个文件http://www.blogjava.net/bjtdeyx/articles/370501.html
     <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">
        <Context path="/webapp" docBase="F:/workspace/StaMaterial/WebContent"  reloadable="true">
        </Context>
      </Host>
上面是我的配置 server.xml中网上都这么说 这样配就好了  他妹的 我就不行 一改类 就自动重启了 我还是用的debug

解决方案 »

  1.   

    F:/workspace/StaMaterial/WebContent网上说的/应该是\这样的斜杠哦
      

  2.   

    有可能是你把编译好的.class放错了位置,还有就是web.xml关于servlet的url设置了吗?
      

  3.   

    我还是会说斜杠,别外
    F:/workspace/StaMaterial/WebContent
    你去看看你的是WebContent还是WebRoot,对照好点哦,怕是写错了的
      

  4.   

     <Context path="" reloadable="true" docBase="D:\\apache-tomcat-6.0.26\\webapps\\1station"
                    workDir="D:\\apache-tomcat-6.0.26\\webapps\\1station" />我的是这样配置的,希望能给你帮助。
      

  5.   

    <Host name="localhost"  appBase="webapps"     //name的值可以写成localhost,是域名
                        unpackWARs="true" autoDeploy="true"
                       xmlValidation="false" xmlNamespaceAware="false">
            <Alias>*****</Alias>                    //<Alias>..</Alias>为可选域名都可以        <Context path="" reloadable="true" docBase="D:\\apache-tomcat-6.0.26\\webapps\\1station"
                    workDir="D:\\apache-tomcat-6.0.26\\webapps\\1station" />
             .......
          </Host>
      

  6.   

    Tomcat没有热部署能力,reloadable="true"只是对此应用自动重载,也就是检测到此应用的类发生改变时,自动重新发布此应用。对于调试WEB应用这真的很头痛。我以前用过JRebel作为插件可以使Tomcat支持热布署,但它是收费的,而且它对注解和泛型支持也不太好,好象最新版本已修正了这些问题。
      

  7.   

         <Host name="localhost"  appBase="webapps"
                unpackWARs="true" autoDeploy="true"
                xmlValidation="false" xmlNamespaceAware="false">
            <Context path="/webapp" docBase="F:\workspace\StaMaterial\WebContent"  reloadable="true">
            </Context>
          </Host>
    这样应该是OK的。不重启tomact但是修改java文件得重启下浏览器。你试试看OK不!
      

  8.   

    换个服务器,干嘛非得用tomcat。
      

  9.   

    说reloadable="false",完全是胡说,不要误导他人,这是TOMCAT的官方文档的说明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. That's why the default setting for this attribute is false. You can use the Manager web application, however, to trigger reloads of deployed applications on demand.不懂的参考下
    http://tomcat.apache.org/tomcat-6.0-doc/config/context.html
      

  10.   

    reloadable="true"这不就是说自动重启的意思吗,改成false就不自动重启
      

  11.   

    LZ是问如何修改类 不重启tomcat。其实问的是TOMCAT如何实现热部署。
      

  12.   


    经过楼上的同志的回答,你应该知道怎么配置tomcat了,,弱弱地说一下,无论怎么配置,修改了方法,参数,属性是必须要重新加载的
      

  13.   

    经过这么多人的评论 现在我公布答了 在debug模式下 确实是不会重启了 reloadable="flase" 然后改了一下类确实有用 不要重启。