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.
The resolved issues seem all to be on Windows system. I am on Mac OSX Yosemite 10.10.2. When I attempt to stop tomcat manually, the system reports the $CATALINA_PID is gone. So the IDE must use the system PID to kill the process. After starting the Tomcat server, by manually attempting to use the shutdown.sh script the following output is generated: Using CATALINA_PID: /usr/local/apache-tomcat-7.0.42/tomcat.pid $CATALINA_PID was set but the specified file does not exist. Is Tomcat running? Stop aborted. When I manually run the startup.sh script a .pid file is created and I can successfully use the shutdown.sh script to stop tomcat.
I added comments to my catalina scripts and noticed NetBeans uses the script to start the server, but no call appears to be made to the shutdown/catalina scripts to stop the server. Hope that helps.
So your installation of tomcat is writing to /usr/local is it running as root? That might cause troubles. Does it work for you for Tomcat installed from zip (tgz) to your home folder?
I will try that, thanks for the idea.
Let us know about your observations.
Hello, Thank you for the reminder. My computer had to be re-imaged recently, and I had to re-install NetBeans, etc. I have the following configuration for reference (from NetBeans About) NetBeans IDE 8.0.2 (Build 201411181905) NetBeans IDE is updated to version NetBeans 8.0.2 Patch 1 Java: 1.8.0_40; Java HotSpot(TM) 64-Bit Server VM 25.40-b25 Runtime: Java(TM) SE Runtime Environment 1.8.0_40-b26 Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb) I am using a locally installed apache tomcat. I added environment variables for JAVA_HOME and CATALINA_HOME. At this time, I can start and stop the tomcat server via the UI. Please mark this issue as you see fit - resolved or if you would like any further information, please let me know. Thanks again!
Ok, marking as WORKSFORME.
I can replicate the problem: 1. Separate CATALINA_HOME and CATALINA_BASE; 2. Customize $CATALINA_BASE/bin/setenv.sh by adding following line: CATALINA_PID=${CATALINA_BASE}/temp/tomcat.pid Now you should be able to start Tomcat, but shutdown will fail. Please use a version prior to tomcat 8.5.3 to avoid another issue in netbeans during startup. I will post a separate bug in relation to that issue.