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 187321 - compile on save starts a stopped tomcat
Summary: compile on save starts a stopped tomcat
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-08 11:37 UTC by roti
Modified: 2010-10-01 08:04 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 roti 2010-06-08 11:37:15 UTC
When compile on save is enabled on a project using tomcat, the save will start the tomcat even if it is stopped by me.

Maybe a checkbox "Force start server" should be good when CoS enabled.

Didn't try with glassfish.
Comment 1 roti 2010-06-08 11:50:16 UTC
It would be useful on cases when I work on more new/old files on more (maven)modules. In this case I want to disable CoS globally by stopping tomcat. Without it, I should disable CoS on every modul.
Comment 2 David Konecny 2010-06-09 01:07:40 UTC
Tomcat should not start just because of CoS enabled and project was compiled.
Comment 3 roti 2010-06-09 10:01:10 UTC
I see that when I open NB, and the porject group, and save a file wont start tomcat. It only happens after I "Run" the web app which uses "mvn -Dnetbeans.deploy=true -Dnetbeans.execution=true package". After that I stop tomcat, but saving a java file will start tomcat.
Comment 4 Petr Hejl 2010-09-23 13:32:04 UTC
There has to be something specific for your configuration. I can't reproduce it myself. Do you stop the server from the IDE or externaly? Any other details about your configuration?
Comment 5 roti 2010-10-01 07:44:41 UTC
my settings

Tomcat:
Netbeans/servers/tomcat6

connection:
 catalina home: /usr/local/apache-tomcat-6
 catalina base: /home/roti/apache-tomcat-6_base
 user/pass: ide/xxx
 port: 8080
 shutdown port: 8025
 http monitor disabled

startup:
 don't use use custom catalina script, but I have this in /usr/local/apache-tomcat-6/bin/catalina.sh

CATALINA_OPTS="-Xms150m -Xmx450m -XX:MaxPermSize=450m -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"

platform:
 defaultJDK6, use ide proxy settings

deployment:
 tinmeout: 120
 enable jdbc driver deployment


projects:
 type: maven web project
 build/compile/cos: both
 run: tomcat6
Comment 6 roti 2010-10-01 08:04:55 UTC
I re-tested it and it is woring now.

Product Version: NetBeans IDE 6.9 (Build 201007282301)
jdk: 1.6.0_21
tomcat: 6.0.29