在Grails应用程序被终止后,Grails 2.3.0 Tomcat进程生效 [英] Grails 2.3.0 Tomcat process lives after Grails application is killed

查看:138
本文介绍了在Grails应用程序被终止后,Grails 2.3.0 Tomcat进程生效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Grails 2.3.0遇到了一些令人讨厌的问题,其中最令人讨厌的是Tomcat拒绝死亡,当我杀死我的Grails应用程序时。如果我从命令行或GGTS运行我的Grails应用程序似乎没有关系,当我停止Grails应用程序Tomcat不会死的时候,所以下次尝试运行我的Grails应用程序时,出现以下警告:

  |错误服务器无法启动端口8080:地址已在使用中:JVM_Bind(使用--stacktrace查看完整跟踪)

我必须为Tomcat寻找进程并手动将其终止以释放端口。



我安装了XAMPP,但安装了Tomcat XAMPP没有运行。我重命名了XMAPP Tomcat目录以确保。奇怪的是,当我运行我的Grails应用程序(尽管停止按钮不起作用)时,XAMPP控制面板将Tomcat显示为已启动。 解决方案

XAMP附带一个 Apache http服务器,而不是 Tomcat ,它的停止按钮不会中止您的Grails应用程序。它可能显示为已启动,因为它检查 http:// localhost:8080 / 是否在线,但它不验证本地主机是否来自XAMP或其他服务器。



尝试使用 GGTS 中的红色按钮杀死应用程序确实会失败,这里有一个JIRA票据。同时,正确的流程是运行 stop-app 命令( ctrl + alt + 移动 + g )。

I'm experiencing several very annoying issues with Grails 2.3.0, the most annoying of which is Tomcat's refusal to die when I kill my Grails app. It doesn't seem to matter if I run my Grails app from the command line or GGTS, when I stop my Grails app Tomcat doesn't die, so the next time I try to run my Grails app I am presented with the following warning:

| Error Server failed to start for port 8080: Address already in use: JVM_Bind (Use --stacktrace to see the full trace)

I have to go hunt down the process for Tomcat and kill it manually to release the port.

I have XAMPP installed, but the Tomcat installation that comes with XAMPP is not running. I renamed the XMAPP Tomcat directory just to make sure. Curiously, the XAMPP control panel shows Tomcat as started when I run my Grails app (though the stop button does not work).

解决方案

XAMP comes with one Apache http server and not a Tomcat, the stop button of it will not kill your Grails application. It probably show's as started because it checks if http://localhost:8080/ is online but it not validate if the localhost is from XAMP or another server.

Trying to kill the application with the red button in GGTS will fail indeed, there's a JIRA ticket for this. In the mean time the correct flow is to run the stop-app command (ctrl+alt+shift+g).

这篇关于在Grails应用程序被终止后,Grails 2.3.0 Tomcat进程生效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆