GWT eclipse 插件问题
我在 Linux 盒子 (opensuse 11.4) 中一直遇到 GWT eclipse (helios) 插件问题。
有时,如果我停止开发模式服务器,然后尝试“运行为 - > Web应用程序”,它会给我以下错误。有时这不会给出错误,并且开发模式应用程序由 gwt eclipse 插件启动。
也许在我用“开发模式”视图选项卡右侧的红色按钮停止它后,开发模式服务器仍会运行一段时间。知道这个问题是关于什么的吗?
Starting Jetty on port 8888
Port 127.0.0.1:8888 is already is use; you probably still have another session active [WARN] failed [email protected]:8888
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:137)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:77)
at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:205)
at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:304)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at org.mortbay.jetty.Server.doStart(Server.java:233)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:565)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:494)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1058)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:800)
at com.google.gwt.dev.DevMode.main(DevMode.java:304)
[WARN] failed Server@1f34a6
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:137)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:77)
at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:205)
at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:304)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at org.mortbay.jetty.Server.doStart(Server.java:233)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:565)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:494)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1058)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:800)
at com.google.gwt.dev.DevMode.main(DevMode.java:304)
[ERROR] shell failed in doStartupServer method
i keep having an issue with GWT eclipse (helios) plugin in Linux box (opensuse 11.4).
sometimes if i stop the dev mode server and then try "Run as-> web Application" it gives me the below error. sometimes this doesn't give error and the dev mode app is started by the gwt eclipse plugin.
maybe the dev mode server remains running for sometime after i stop it with red button at right of "development mode" view tab. any Idea what this problem is about?
Starting Jetty on port 8888
Port 127.0.0.1:8888 is already is use; you probably still have another session active [WARN] failed [email protected]:8888
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:137)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:77)
at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:205)
at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:304)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at org.mortbay.jetty.Server.doStart(Server.java:233)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:565)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:494)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1058)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:800)
at com.google.gwt.dev.DevMode.main(DevMode.java:304)
[WARN] failed Server@1f34a6
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:137)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:77)
at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:205)
at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:304)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at org.mortbay.jetty.Server.doStart(Server.java:233)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:565)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:494)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1058)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:800)
at com.google.gwt.dev.DevMode.main(DevMode.java:304)
[ERROR] shell failed in doStartupServer method
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
更多
发布评论
评论(5)
GWT 开发模式的一个常见问题是在一个开发模式会话已经运行时启动第二个开发模式会话。解决方案通常是在开始新的开发模式会话之前停止所有开发模式会话(点击“开发模式”选项卡上的红色停止按钮)。然后,我通常点击“X”或“XX”按钮来关闭该分层窗口。
虽然我很少想这样做,但可以同时运行多个开发模式会话,但您需要编辑启动配置并将开发模式和代码服务器的端口更改为除默认值为 8888 和 9997。
A common issue with GWT development mode is starting a second development mode session while one is already running. The solution usually is to just stop all Development mode sessions before starting a new one (hit the red stop button on the Development mode tab). Then, I usually hit the 'X' or 'XX' button to dismiss that layered window.
Although I've only rarely wanted to do this, it is possible to run more than one development mode session simultaneously, but you'll need to edit the launch config and change the ports of the development mode and code server to something other than the defaults of 8888 and 9997.
我不了解你的系统,但在我看来,你的某些程序正在使用 8888 端口。您可以更改下的 prot
I don't know your system, but it looks to me like some program of you is using the 8888 port to. You can change the prot under
我经常看到此错误,并且我 100% 确定我没有运行第二个实例。
通常,在 Eclipse 中,即使我按下红色方形按钮来停止 devmode 服务器,它也会继续运行。这种情况经常发生,因此我创建了这个脚本,从任务栏上的图标启动它:
!/bin/bash
devmode=$(jps | grep DevMode)
[! “$devmode”] &&退出
pid=$(echo $devmode | cols 1)
回显$pid
kill -9 $pid
但即使这样,我仍然经常遇到同样的错误。我什至检查端口 8888 上是否没有任何东西正在侦听。什么也没有。还是这个错误。
再加上这个长时间的延迟“等待启动 URL...”。它在做什么?告诉 Google 我正在运行一个应用程序?
我认为 GWT 很棒,但这些小故障令人沮丧!
I frequently see this error, and I'm 100% sure that I'm not running a second instance.
Often, in Eclipse, even though I pressed the red square button to stop the devmode server, it keeps on running. This happens so often that I created this script which I launch from an icon on the task bar:
!/bin/bash
devmode=$(jps | grep DevMode)
[ ! "$devmode" ] && exit
pid=$(echo $devmode | cols 1)
echo $pid
kill -9 $pid
But even THEN, STILL I often get this same error. I even check if nothing is listening on port 8888. Nothing. Yet this error.
Plus this LONG delay "Waiting for launch URLs...". What's it doing? Telling Google that I'm running an app?
I think GWT is amazing, but these little glitches are frustrating!
我一次又一次地遇到这个错误。如果我在点击 Eclipse 中的停止按钮之前关闭浏览器,就会发生这种情况。我唯一的解决方案是关闭并重新启动 Eclipse。这是对此的常见建议。这是解决方案:
右键单击您的项目。
选择运行方式...运行配置。
选择“服务器”选项卡。
选中“自动选择未使用的端口”旁边的复选框
单击“运行”
I ran into this error over and over again. It would happen if I closed my browser before hitting the stop button in Eclipse. The only solution I had was to close and restart Eclipse. That is a common recommendation for this. Here's the solution:
Right-click on your project.
Select Run As...Run Configurations.
Select "Server" tab.
Place a Check next to "Automatically select an unused port"
Click "Run"
这是大多数 IDE 的常见问题。尝试访问任务管理器,并终止所有 java.exe JVM 进程。这应该释放端口。通常,IDE 和服务器(例如 tomcat)在它们自己的 exe 文件中运行。
了解通过终止所有 java.exe 进程,您将终止任何正在运行的基于 JVM 的程序,因此仅当您认为可以时才这样做。
This is a common problem with most IDEs. Try accessing the task manager, and kill all the java.exe JVM processes. This should free up the port. IDE's and servers like tomcat run in their own exe files, usually.
Understand that by killing all java.exe processes, you are killing off any running JVM based program, so do so only if that is okay for you.