3

我正在尝试使用 typesafe-platform,当我运行命令activator ui时,我得到了这个异常:

C:\activator-0.3.0>activator ui Found previous process id: 7552 Play server process ID is 3828 [info] play - Application started (Prod) 糟糕,无法启动服务器。

org.jboss.netty.channel.ChannelException: Failed to bind to: /127.0.0.1:8888
        at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:272)
        at play.core.server.NettyServer.<init>(NettyServer.scala:129)
        at play.core.server.NettyServer$.createServer(NettyServer.scala:229)
        at play.core.server.NettyServer$$anonfun$main$5.apply(NettyServer.scala:261)
        at play.core.server.NettyServer$$anonfun$main$5.apply(NettyServer.scala:260)
        at scala.Option.map(Option.scala:145)
        at play.core.server.NettyServer$.main(NettyServer.scala:260)
        at activator.UIMain$$anonfun$run$1.apply$mcV$sp(UIMain.scala:107)
        at activator.UIMain$$anonfun$run$1.app`enter code here`ly(UIMain.scala:107)
        at activator.UIMain$$anonfun$run$1.apply(UIMain.scala:107)
        at activator.UIMain.withContextClassloader(UIMain.scala:179)
        at activator.UIMain.run(UIMain.scala:107)
        at activator.UIMain.run(UIMain.scala:86)`enter code here`
        at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:57)
        at xsbt.boot.Launch$.withContextLoader(Launch.scala:77)
        at xsbt.boot.Launch$.run(Launch.scala:57)
        at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:45)
        at xsbt.boot.Launch$.launch(Launch.scala:65)
        at xsbt.boot.Launch$.apply(Launch.scala:16)
        at xsbt.boot.Boot$.runImpl(Boot.scala:31)
        at xsbt.boot.Boot$.main(Boot.scala:20)
        at xsbt.boot.Boot.main(Boot.scala)
Caused by: java.net.BindException: Address already in use: bind
        at sun.nio.ch.Net.bind0(Native Method)
        at sun.nio.ch.Net.bind(Net.java:444)
        at sun.nio.ch.Net.bind(Net.java:436)
        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214)
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
        at org.jboss.netty.channel.socket.nio.NioServerBoss$RegisterTask.run(NioServerBoss.java:193)
        at org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:366)
        at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:290)
        at org.jboss.netty.channel.socket.nio.NioServerBoss.run(NioServerBoss.java:42)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:724)

但是没有进程使用8888端口。

我正在使用带有 JDK 1.7 更新 25 64 位的 Windows 8 Pro

我在 PATH 环境变量中使用 Play 2.1.3

有人遇到过这个问题吗?

谢谢

4

1 回答 1

14

您现在可以使用http.portJava 参数覆盖默认端口。因此,要在端口上启动 UI,9999请执行以下操作:

activator -Dhttp.port=9999 ui
于 2013-12-24T21:05:24.330 回答