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 114820

Summary: External Running Tomcat Not Recognized by the IDE
Product: serverplugins Reporter: William Leonard <bleonard>
Component: TomcatAssignee: Petr Hejl <phejl>
Status: RESOLVED WORKSFORME    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: Macintosh   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description William Leonard 2007-09-05 22:43:41 UTC
If I start Tomcat outside of NetBeans, NetBeans does not detect Tomcat is running and tries to start Tomcat itself,
which of course fails with a port in use error. This is different from how the SJSAS integration works, which will
detect and use an instance started outside of NetBeans.

My purpose for this is for better NetBeans integration with other IDEs such as Eclipse, such that if I'm working on a
Tomcat project in both Eclipse and NetBeans, NetBeans can share the instance of Tomcat started by Eclipse. See:
http://wiki.netbeans.org/wiki/view/SharingProjectNetBeansEclipse for an example of what I'm trying to accomplish.
Comment 1 Petr Hejl 2007-09-07 09:54:39 UTC
Are you sure, that instance registered in NB has the correctly configured port (to those that is used by eclipse)?
Eclipse is using its own CATALINA_BASE directory, that is usually located in workspace directory
.metadata/.plugins/org.eclipse.wst.server.core/tmpX.

The detection works fine for me...
(BTW netbeans is using tomcat manager application, but it is not deployed in instance created by eclipse. You should
deploy it to those instance to see useful things - copying conf/Catalina/localhost/manager.xml from CATALINA_HOME to
.metadata/.plugins/org.eclipse.wst.server.core/tmpX/conf/Catalina/localhost/manager.xml should be enough).
Comment 2 Petr Hejl 2007-09-21 10:11:37 UTC
No response, closing as WORKSFORME.