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 198035 - Running a Java Web App in NB using Tomcat shows wrong icons
Summary: Running a Java Web App in NB using Tomcat shows wrong icons
Status: RESOLVED WONTFIX
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords: TOMCAT
Depends on:
Blocks:
 
Reported: 2011-04-23 15:07 UTC by adam_myatt
Modified: 2011-04-26 13:37 UTC (History)
1 user (show)

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 adam_myatt 2011-04-23 15:07:49 UTC
Product Version = NetBeans IDE 7.0 (Build 201104080000)
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.6.0_24
Runtime = Java HotSpot(TM) Client VM 19.1-b02

In the last few versions of NB this has occurred, 6.8, 6.9, 6.9.1, and now 7.0...

I have downloaded NB Java SE version. I have 2 versions of Tomcat (5.5.30 and 6.0.18) installed already on my machine that work fine. After installing NB Java SE version, I use plugin manager to download Java Web App support plugins. After installing and restarting, I right-click on the Servers node in the Services window and register Tomcat 5.5, then later a register Tomcat 6.0. They both show up under the Servers node and work fine. When I run a Java web app in NB that uses either of the TOmcat server node, the icon next to BOTH Tomcat servers changes to green triangle indicating they are both running. However, only the original Tomcat version I picked to run with the web app actually is running.
Comment 1 Jiri Skrivanek 2011-04-26 11:27:38 UTC
I can't reproduce it. For me it works as expected. What happens if you try "Refresh" or "Stop" pop-up item on Tomcat instance which should not be running? Is there any error message in IDE log? What is Catalina home and base in Tomcat instance properties?
Comment 2 Petr Hejl 2011-04-26 11:33:50 UTC
There is no way how to distinguish which of the registered instances is running if these are configured to use the same port.
Comment 3 adam_myatt 2011-04-26 13:37:04 UTC
Tomcat 5.5 : 

Catalina Home : D:\java\tomcat-5-5-27

Catalina Base : D:\Documents and Settings\my-username-removed\.netbeans\7.0\apache-tomcat-5.5.27_base

Tomcat 6.0 : 

Catalina Home : D:\java\tomcat-6-0-18

Catalina Base : D:\Documents and Settings\my-username-removed\.netbeans\7.0\apache-tomcat-6.0.18_base


If I change the registered port on Tomcat 6 then when I run Tomcat 5 the icons work as expected. 

Perhaps as a workaround when you register a new Tomcat instance it can check and see if another server has already been registered with the same default port and if so warn/prompt you to change the port? Not sure if that's desired or not but figured I'd throw it out there.

Thanks.