tomcatctl fails to stop Tomcat
Guy Davis
davis at guydavis.ca
Wed Jun 25 13:24:00 PDT 2008
Hi Ryan,
Thanks. Those worked with the -w switch after the load/unload. I've aliased
them as tomcatstart and tomcatstop in my .profile and I won't use tomcatctl.
Guy
On Wed, Jun 25, 2008 at 1:56 PM, Ryan Schmidt <ryandesign at macports.org>
wrote:
> On Jun 25, 2008, at 14:08, Guy Davis wrote:
>
> Hi, I'm moving from a Fedora Core system for my JSP-based web site to Mac
>> OSX
>> 10.5. I just installed Apache, mod_jk, and Tomcat 5 using MacPorts.
>> However, even though Tomcat's server.xml file has the following:
>>
>> <Server port="8005" shutdown="SHUTDOWN">
>>
>> a quick netstat shows that Tomcat is not actually listening to 8005 when
>> it
>> starts. So when I run:
>>
>> sudo tomcatctl stop
>>
>> I get this on the console:
>>
>> Stopping Tomcat...(pid 3468)............... giving up.
>>
>> and this in catalina.2008-06-25.log:
>>
>> Jun 24, 2008 9:37:20 PM org.apache.catalina.startup
>> .Catalina stopServer
>> SEVERE: Catalina.stop:
>> java.net.ConnectException: Connection refused
>> ...
>>
>> Any ideas? How are people currently stopping tomcat? Right now all I can
>> do is 'kill PID' and then it is restarted (by daemondo?)
>>
>
> Have you tried:
>
> sudo launchctl -w unload /Library/LaunchDaemons/org.macports.tomcat5.plist
>
> That would be the usual way to stop any launchd-managed process. To start
> it again:
>
> sudo launchctl -w load /Library/LaunchDaemons/org.macports.tomcat5.plist
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-users/attachments/20080625/190a455e/attachment.htm
More information about the macports-users
mailing list