重启tomcat时如何阻止Eclipse浏览器显示网页? [英] how to stop Eclipse browser from displaying web page upon restarting tomcat?

查看:252
本文介绍了重启tomcat时如何阻止Eclipse浏览器显示网页?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



情况:我停止tomcat server =>再次运行web应用程序=>获取浏览器窗口。问题是浏览器窗口在重新部署过程完成之前更早显示,所以每当我尝试关闭浏览器窗口(因为我喜欢在标准浏览器中打开Web应用程序,因为本机是缓慢而缓慢的),所以我的Eclipse挂起错误消息窗口:



脚本错误:此页面上的脚本发生错误



行:1



Char:1



错误:未指定的错误



URL:about:blank



您是否要继续在此页面上运行脚本?



是否



问题是应用程序挂起,窗口处于非活动状态,无法使此窗口处于活动状态。



要解决这个问题,我必须在.bat上手动结束进程并关闭tomcat。这是非常烦人的,当你每天重复大约十次。



如果我等到应用程序完全重新部署,但我有快乐的习惯,所以最终我在重新部署之前再关闭窗口。



帮助可以在:


  1. 如何在Web应用程序重新部署时禁止eclipse显示浏览器窗口选项卡?


  2. 或如何解决此错误?


谢谢你们,

解决方案

我有与你一样的经验。这是选择外部浏览器的一个答案:



您可以通过更改Eclipse中的首选项来选择其他浏览器作为默认浏览器。选择窗口>首选项>常规> Web浏览器。现在选择使用外部Web浏览器选项,并选中您在下面的框中使用的浏览器的复选框。


The old eclipse bug which is very annoying for me.

The situation: I stop tomcat server => run web application again => get browser window. The problem is that browser window is displayed earlier before the redeployment process finishes itself, so whenever I try to close the browser window(since I prefer to open web application in standard browser since the native is laggy and slow) in that short interval, my Eclipse hangs with error message window:

Script Error: An error has occurred in the script on this page

Line: 1

Char: 1

Error: Unspecified error

URL: about:blank

Do you want to continue running scripts on this page?

Yes No

The problem is that application hangs plus the window is inactive and I can't make this window active.

To fix this I have to end the process and shutdown tomcat manually on .bat. This is very annoying when you repeat this around ten times a day.

It doesnt happen if I wait till the application is completely redeployed, but I have habit of working fast, so eventually I close the window again before redeployment.

The help could be either in:

  1. how to forbid eclipse showing browser window tab when web application is redeployed?

  2. or how to fix this error?

Thank You guys,

解决方案

Aubergine, I've had the same experience as you. Here's one answer for selecting the external browser:

You can choose another browser as your default by changing preferences in Eclipse. Select Window > Preferences > General > Web Browser. Now choose the option "Use External Web Browser", and check the checkbox for the browser you use in the box below.

这篇关于重启tomcat时如何阻止Eclipse浏览器显示网页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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