我正在尝试使用typesafe-platform,当我运行命令 activator ui 时,我得到了这个例外:
C:\ activator-0.3.0>激活剂ui 找到之前的进程ID:7552 播放服务器进程ID为3828 [info] play - 应用程序启动(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端口的进程。
我正在使用Windows 8 Pro和JDK 1.7 Update 25 64位
我在PATH环境变量中使用Play 2.1.3
有人有这个问题吗?
由于
答案 0 :(得分:14)
现在可以使用http.port
Java参数覆盖默认端口。因此,要在端口9999
上启动UI,请执行:
activator -Dhttp.port=9999 ui