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.

Bug 32506 - Improper use of ArgumentsCookie
Summary: Improper use of ArgumentsCookie
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-31 11:20 UTC by Milan Kuchtiak
Modified: 2003-12-11 14:26 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Kuchtiak 2003-03-31 11:20:31 UTC
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.
Comment 3 psuk 2003-03-31 17:48:01 UTC
See also original issue 32153.