在intellij中没有为Play2启动nettyserver

时间:2016-04-04 15:51:09

标签: intellij-idea playframework netty

我是Intellij IDEA for Play / Scala的新手,显然需要在运行项目时做一些事情来启动NettyServer。我的运行配置运行一次就OK了。然后我杀死了服务器,进行了一些更改并尝试再次运行:

/Library/Java/JavaVirtualMachines/jdk1.8.0_73.jdk/Contents/Home/bin/java -Dfile.encoding=UTF8 -Djline.terminal=none -Dsbt.log.noformat=true -Dsbt.global.base=/private/var/folders/97/16yb2phd7sz78q0sf5wl7z200000gn/T/sbt-global-pluginstub -Xms512M -Xmx1024M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M -classpath "/Users/j/Library/Application Support/IntelliJIdea2016.1/Scala/launcher/sbt-launch.jar" xsbt.boot.Boot run
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0
[info] Loading project definition from /Users/jch/IdeaProjects/editor/project
[info] Set current project to ...

--- (Running the application, auto-reloading is enabled) ---

[error] p.c.s.NettyServer - Failed to listen for HTTP on /0.0.0.0:9000!
[error] (compile:run) play.runsupport.ServerStartException
[error] Total time: 3 s, completed Apr 4, 2016 11:24:31 AM

Process finished with exit code 1

我错过了什么?

我的错误。 - 显然NettyServer因为已经运行而无法启动。当我浏览到localhost:9000时,它就会出现。更好的错误消息会有所帮助,由于NettyServer退出代码,IDEA显然没有自动加载到我的浏览器中。

0 个答案:

没有答案