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 146960 - After autointedgration of Tomcat can not open attached project in browser
Summary: After autointedgration of Tomcat can not open attached project in browser
Status: RESOLVED WORKSFORME
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-11 15:00 UTC by Rashid Urusov
Modified: 2008-09-11 18:30 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 Rashid Urusov 2008-09-11 15:00:07 UTC
Product Version: NetBeans IDE Dev (Build 200809101401)
Java: 1.6.0_06; Java HotSpot(TM) Client VM 10.0-b22
System: Linux version 2.6.24-19-generic running on i386; UTF-8; en_US (nb)
Userdir: /home/tester/.netbeans/dev

Steps to reproduce:
-Run project to deploy on Tomcat server (I used WebApplication and full IDE with Tomcat installed)
-After application run invoke Stop on the server in Services | Servers node
-Invoke Attach Profiler action from ide's toolbar. Select Project: WebApplication and task Monitor Application,  
 enable Threads. Click "define..." link in the bottom 
-Select Target Type J2EE Web/App Server, J2EE Web/App Server Type Tomcat 5.5, Attach Method Local, Direct Attach        
 invocation. Press Next button two times, select Automatic integration and press Next button ,select path to  tomcat   
and press Next button. Check Automatically start the server checkbox and Finish the wizard.
-Invoke Attach button in Select Profiling Task dialog 

Threads and Telemetry overview graphs are live but when I type in browser http://localhost:8084/test
I've got message:
Failed to Connect 
Firefox can't establish a connection to the server at localhost:8084.
Comment 1 Jiri Sedlacek 2008-09-11 15:32:20 UTC
Product Version: NetBeans IDE Dev (Build 080911)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b15
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)

Works for me:

 1/ Started the IDE with a fresh userdir, registered Tomcat 5.5.9 in Services tab as a new server.
 2/ Created new sample project Servlet Examples, set it to run on the Tomcat registered in 1/
 3/ Invoked Run Main Project action, project has been deployed and opened in browser as http://localhost:8084/
 4/ Stopped Tomcat in Services tab
 5/ Invoked Attach Profiler... action, selected Servlet Examples project in the dropdown, selected Monitor mode with
threads monitoring enabled
 6/ In Attach Wizard selected J2EE Web/App server, Tomcat 5.5, Local Direct, Automatic integration, in Tomcat
Installation field typed full path to the Tomcat registered in 1/, performed integration, selected Automatically start
the server and finished the wizard.
 7/ Clicked Attach button, server started with the profiler attached, Servlet Examples worked fine at http://localhost:8084/

Please make sure you've pointed the Attach Wizard to the same Tomcat installation as registered in the IDE and that the
Catalina Base is the same when using the server from the IDE / Attach Wizard.
Comment 2 Jiri Sedlacek 2008-09-11 18:30:13 UTC
Product Version: NetBeans IDE Dev (Build 200809101401)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b15
System: Linux version 2.6.24-16-generic running on i386; UTF-8; en_ZA (nb)

I've checked once more on a configuration similar to yours - it looks like when Tomcat is installed together with the
IDE, customized Catalina Base is used (points to NetBeans userdir). Either use default Catalina Base in the IDE or
provide the customized one to the Attach Wizard and things will work as expected.