安装PlayFramework时出错

时间:2015-09-21 14:38:00

标签: scala playframework

H朋友,

命令“activator ui”它下载了很多文件,最后它抛出了一些异常。错误的PFB

Error Message:
======================================================
https://repo.typesafe.com/typesafe/releases/com/typesafe/sbt/client-all-2-11/0.3.5/client-all-2-11-0.3.5.jar ..
        [SUCCESSFUL ] com.typesafe.sbt#client-all-2-11;0.3.5!client-all-2-11.jar (10156ms)
:: retrieving :: org.scala-sbt#boot-app
        confs: [default]
        91 artifacts copied, 0 already retrieved (79872kB/287ms)
Local repository: activator-launcher-local @ file:////C:/Users/xxx/activator-1.3.6-minimal/repository
Play server process ID is 6124
[info] play - Application started (Prod)
Oops, cannot start the server.
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$$anonfun$8.apply(NettyServer.scala:138)
        at play.core.server.NettyServer$$anonfun$8.apply(NettyServer.scala:135)
        at scala.Option.map(Option.scala:146)
        at play.core.server.NettyServer.<init>(NettyServer.scala:135)
        at play.core.server.NettyServer$.createServer(NettyServer.scala:252)
        at play.core.server.NettyServer$$anonfun$main$3.apply(NettyServer.scala:289)
        at play.core.server.NettyServer$$anonfun$main$3.apply(NettyServer.scala:284)
        at scala.Option.map(Option.scala:146)
        at play.core.server.NettyServer$.main(NettyServer.scala:284)
        at activator.UIMain$$anonfun$run$1.apply$mcV$sp(UIMain.scala:106)
        at activator.UIMain$$anonfun$run$1.apply(UIMain.scala:106)
        at activator.UIMain$$anonfun$run$1.apply(UIMain.scala:106)
        at activator.UIMain.withContextClassloader(UIMain.scala:217)
        at activator.UIMain.run(UIMain.scala:106)
        at activator.UIMain.run(UIMain.scala:86)
        at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109)
        at xsbt.boot.Launch$.withContextLoader(Launch.scala:128)
        at xsbt.boot.Launch$.run(Launch.scala:109)
        at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35)
        at xsbt.boot.Launch$.launch(Launch.scala:117)
        at xsbt.boot.Launch$.apply(Launch.scala:18)
        at xsbt.boot.Boot$.runImpl(Boot.scala:41)
        at xsbt.boot.Boot$.main(Boot.scala:17)
        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(Unknown Source)
        at sun.nio.ch.Net.bind(Unknown Source)
        at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
        at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
        at org.jboss.netty.channel.socket.nio.NioServerBoss$RegisterTask.run(NioServerBoss.java:193)
        at org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:391)
        at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:315)
        at org.jboss.netty.channel.socket.nio.NioServerBoss.run(NioServerBoss.java:42)
        at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
        at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

我检查了之前的问题,但它们并不像我的问题

1 个答案:

答案 0 :(得分:1)

您的进程已在使用该端口。您需要杀死该进程以释放它:

在mac上:

lsof -i tcp:3000找到这个过程。然后,

kill -9 <PID>杀死进程

在Windows上:

netstat -a -n -o | find "<PORT>"找到这个过程。然后,

taskkill /pid <PID>