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 67523 - Profiler doesn't stop and then restart Tomcat
Summary: Profiler doesn't stop and then restart Tomcat
Status: CLOSED DUPLICATE of bug 66716
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-25 20:33 UTC by _ gsporar
Modified: 2007-02-20 18:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ gsporar 2005-10-25 20:33:36 UTC
Using dev. builds of NB and the Profiler from 2005-10-24 on JDK5U5, WinXP.

Using the exercise2 project that is included with the Profiler Tutorial
(http://www.netbeans.org/kb/articles/nb-profiler-tutor-8.html), I tried the
following:

1. Start NB.
2. Clean and build the project
3. Run the project.
4. After the browser display's the application's page, switch back to NB.
5. Choose Profile > Profile Main Project

An error message was displayed that said Tomcat could not be started because
port 8084 was already in use.  

I was eventually able to get the Profiler to work, but only after manually
stopping Tomcat over in the Runtime tab.

This seems like a regression - in NB 4.1 didn't this result in the Profiler
being smart enough to figure out that it should stop Tomcat and then restart it
in profiling mode?

If this is *not* a regression, then please change this IZ to be an ENHANCEMENT,
thanks.
Comment 1 Jiri Sedlacek 2005-10-26 09:41:05 UTC
In NB 5.0 new API was created and is used to profile web applications. The 
problem reported is a known bug in nbstartprofiledserver ant task from this 
API, which doesn't correcty stop the server if running before profiling session.

There is already filed Issue 66716 about it. The only workaround for now is to 
stop the server manually from Runtime tab before starting new profiling session.

*** This issue has been marked as a duplicate of 66716 ***
Comment 2 ehucka 2006-10-09 12:10:37 UTC
Verification of old issues.
Comment 3 Alexander Kouznetsov 2007-02-20 10:21:33 UTC
Closing old issues
Comment 4 Alexander Kouznetsov 2007-02-20 18:08:57 UTC
Reverting to original Target Milestone value changed by mistake. Sorry for
inconvenience.