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.
Actually calling ArgumentsCookie.setArguments from within code (other than org.netbeans.core.execution.SetArgumentsAction) is generally wrong. Here it is definitely bizarre usage. "start" or "stop" should be passed as constructor args to TomcatFormat, and probably there should be no ArgumentsCookie used at all (and use of Tomcat40DataObject in TomcatFormat is probably unnecessary). Also using ProcessExecutor.Format.TAG_CLASSNAME here is probably wrong because the class name is not intended to be replaced at runtime by something based on the data object; org.apache.catalina.startup.Bootstrap should be hardcoded into the default NbProcessDescriptor strings in Tomcat40DataObject.
Changes integrated to trunk : Diffs : http://web.netbeans.org/source/browse/tomcatint/tomcat40/src/org/netbeans/modules/tomcat/tomcat40/Tomcat40DataObject.diff?r1=1.51&r2=1.52 http://web.netbeans.org/source/browse/tomcatint/tomcat40/src/org/netbeans/modules/tomcat/tomcat40/Tomcat40Installation.diff?r1=1.67&r2=1.68 http://web.netbeans.org/source/browse/tomcatint/tomcat40/src/org/netbeans/modules/tomcat/tomcat40/Bundle.properties.diff?r1=1.41&r2=1.42
Sorry for incorrect diff URLs. Diffs again : http://web.netbeans.org/source/browse/tomcatint/tomcat40/src/org/netbeans/modules/tomcat/tomcat40/Tomcat40Installation.java.diff?r1=1.67&r2=1.68 http://web.netbeans.org/source/browse/tomcatint/tomcat40/src/org/netbeans/modules/tomcat/tomcat40/Tomcat40DataObject.java.diff?r1=1.51&r2=1.52 http://web.netbeans.org/source/browse/tomcatint/tomcat40/src/org/netbeans/modules/tomcat/tomcat40/Bundle.properties.diff?r1=1.41&r2=1.42
See also original issue 32153.