This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
[20040920] If you redeploy a web application it is stopped/started two times. You can simply verify it in the build output, or (if you still hesistate :-) ) create a new servlet, let it start on startup (<load-on-startup> element) and put some debug message into init() method. Then do redeploy and see that the servlet is initialized two times.
This is not a netbeans bug. If you try to deploy the web application directly using Tomcat Manager, it behaves the same way. To get rid of this "double deploy", it should suffice to set the "autoDeploy" attribute of the host element to "false" in tomcat's server.xml config file.
Bundled Tomcat has now the host's "autoDeploy" attribute preset to "false". In external Tomcat is this however still left up to the users. Commit log: Checking in src/org/netbeans/modules/tomcat5/resources/tomcat5_server.dtd; /cvs/tomcatint/tomcat5/src/org/netbeans/modules/tomcat5/resources/tomcat5_server.dtd,v <-- tomcat5_server.dtd new revision: 1.5; previous revision: 1.4 done Processing log script arguments... More commits to come... Checking in src/org/netbeans/modules/tomcat5/util/TomcatInstallUtil.java; /cvs/tomcatint/tomcat5/src/org/netbeans/modules/tomcat5/util/TomcatInstallUtil.java,v <-- TomcatInstallUtil.java new revision: 1.13; previous revision: 1.12 done
VERIFIED