I'm having problems shutting down Tomcat on my Windows 7 Home Premium laptop. I tried Tomcat 6.0.29, 6.0.32, 7.0.14 and 7.0.16 and all give the same result. Basically, Tomcat starts fine, either from the DOS command line or from Eclipse. The problem is when I shutdown the server, I receive WARNING: StandardServer.await: Invalid command 'SHUTDOW' received. This happens from a default Tomcat installation (unzipped the package), no changes to the server.xml file or any other files. Seems that there is something trimming the last byte from the command. If I run the server in DOS, I can execute shutdown.bat over and over again until the server catches the command properly (See catalina log, the server responded on the 14th shutdown command). It's intermittent too. Sometimes, the server responds properly on the second or third command but never on the first one.
I tried the following:
- changed the admin port (8005) to something else, 55551 for example, but still gives the problem.
- I turned off my Avast resident shields and firewall to no avail.
- Using Putty telnet, if I connect to port 8005 (or whatever I changed it to) in raw mode and type SHUTDOWN, it works just fine.
- I used netstat -an | find "8005" and only see one process LISTENING
- Tried using JDK1.5.0_22 instead of JDK1.6.0_25 to no avail.
- Cleaned out event viewer and don't see any new entries appearing.
I tried the same tomcat releases on two different Windows XP desktops and a mac and there is no such problems. I'm thinking it has to do with Windows 7 or something else running on my laptop. Anyone else has this kind of problem or could someone provide me with some tips on how I could solve this? I've tried Geronimo-Jetty and Glassfish and don't seem to have any problems shutting those down.